atrull / ephemeral_raid_cookbook Goto Github PK
View Code? Open in Web Editor NEWThis project forked from mdsol/ephemeral_raid_cookbook
A cookbook to dynamically create Ephemeral Raids in EC2 environments.
License: Other
This project forked from mdsol/ephemeral_raid_cookbook
A cookbook to dynamically create Ephemeral Raids in EC2 environments.
License: Other
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?
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.