Code Monkey home page Code Monkey logo

ephemeral_raid_cookbook's People

Contributors

ajorgensen avatar gerilya avatar ispringer avatar kjwierenga avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

ephemeral_raid_cookbook's Issues

documentation seems to be ambigous in regards to 'block-device-mapping'

i don't get what this means:

When you run your instances or create your autoscaling configuration, in the following case for EC2 m1.xlarge instances, you must specify the four free emphemeral devices like so:

--block-device-mapping "/dev/xvdb=ephemeral0,/dev/xvdc=ephemeral1,/dev/xvdd=ephemeral2,/dev/xvde=ephemeral3"

where to pass this parameter in the context of this cookbook?

instances of MonoLogger passed to call of mdadm

cookbook 0.0.9 on chef-12.5.1 on ubuntu-12.04 on EC2 c3.4xlarge: seems like something goes really wrong

           Error executing action `create` on resource 'mdadm[/dev/md0]'
           ================================================================================

           Mixlib::ShellOut::ShellCommandFailed
           ------------------------------------
           Expected process to exit with [0], but received '1'
           ---- Begin output of yes | mdadm --create /dev/md0 --level 0 --chunk=256 --metadata=0.90 --raid-devices 4 /dev/xvdb /dev/xvdc #<MonoLogger:0x000000046e5358> #<MonoLogger:0x000000046e5358> ----
       STDOUT:
           STDERR: mdadm: You haven't given enough devices (real or missing) to create this array
           ---- End output of yes | mdadm --create /dev/md0 --level 0 --chunk=256 --metadata=0.90 --raid-devices 4 /dev/xvdb /dev/xvdc #<MonoLogger:0x000000046e5358> #<MonoLogger:0x000000046e5358> ----
       Ran yes | mdadm --create /dev/md0 --level 0 --chunk=256 --metadata=0.90 --raid-devices 4 /dev/xvdb /dev/xvdc #<MonoLogger:0x000000046e5358> #<MonoLogger:0x000000046e5358> returned 1

           Resource Declaration:
           ---------------------
           # In /tmp/kitchen/cache/cookbooks/ephemeral_raid/recipes/makeraid.rb

            36:   mdadm "#{node[:ephemeral][:raid][:device]}" do
            37:     devices ephemeral_devices
            38:     chunk node[:ephemeral][:raid][:chunk_size] if node[:ephemeral][:raid][:chunk_size]
        39:     level 0
            40:     action :create
        41:     notifies :run, "execute[set_readahead_on_device_after_creation]", :immediately
        42:     only_if "which mdadm"
            43:   end
            44: else

           Compiled Resource:
           ------------------
           # Declared in /tmp/kitchen/cache/cookbooks/ephemeral_raid/recipes/makeraid.rb:36:in `from_file'

           mdadm("/dev/md0") do
             action [:create]
             retries 0
         retry_delay 2
             default_guard_interpreter :default
             chunk 256
         devices ["/dev/xvdb", "/dev/xvdc", [#<MonoLogger:0x000000046e5358 @progname=nil, @level=2, @default_formatter=#<Logger::Formatter:0x000000046e5560 @datetime_format=nil>, @formatter=#<Mixlib::Log::Formatter:0x000000046e7b30 @datetime_format=nil>, @logdev=#<MonoLogger::LocklessLogDevice:0x000000046e5628 @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#<IO:<STDOUT>>>>], [#<MonoLogger:0x000000046e5358 @progname=nil, @level=2, @default_formatter=#<Logger::Formatter:0x000000046e5560 @datetime_format=nil>, @formatter=#<Mixlib::Log::Formatter:0x000000046e7b30 @datetime_format=nil>, @logdev=#<MonoLogger::LocklessLogDevice:0x000000046e5628 @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#<IO:<STDOUT>>>>]]
         level 0
             metadata "0.90"
             raid_device "/dev/md0"
         declared_type :mdadm
             cookbook_name "ephemeral_raid"
             recipe_name "makeraid"
         only_if "which mdadm"
           end

Please explain --block-device-mapping

I do no understand (from: https://github.com/atrull/ephemeral_raid_cookbook/blob/master/README.md#usage)

When you run your instances or create your autoscaling configuration, in the following case for EC2 m1.xlarge instances, you must specify the four free emphemeral devices like so:

--block-device-mapping "/dev/xvdb=ephemeral0,/dev/xvdc=ephemeral1,/dev/xvdd=ephemeral2,/dev/xvde=ephemeral3"

I have read #4 but still don't get it. Can you please explain this better?

I have an i3.4xlarge instance that I am trying to bootstrap, but it is failing. I'm wondering if I have created it wrong. Feels like a major weakness that I'd like to work around.

This is what my instance looks like right now:

bbronosky@prodcass002:~$ ll /dev/md* /dev/nv*
crw------- 1 root root 248, 0 Jul  2 08:19 /dev/nvme0
brw-rw---- 1 root disk 259, 1 Jul  2 08:19 /dev/nvme0n1
crw------- 1 root root 248, 1 Jul  2 08:19 /dev/nvme1
brw-rw---- 1 root disk 259, 0 Jul  2 08:19 /dev/nvme1n1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.