Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"invalid number of raid devices: 0" #173

Open
joshbronson opened this issue Sep 27, 2012 · 0 comments
Open

"invalid number of raid devices: 0" #173

joshbronson opened this issue Sep 27, 2012 · 0 comments

Comments

@joshbronson
Copy link
Contributor

mdadm is complaining that it has an invalid number of raid devices. Here is the chef stacktrace

Generated at 2012-09-27 22:28:17 +0000
Chef::Exceptions::ShellCommandFailed: mdadm[/dev/md0](volumes::build_raid line 54) had an error: Expected process to exit with [0], but received '2'
---- Begin output of yes | mdadm --create /dev/md0 --chunk=16 --level 0 --raid-devices 0 ----
STDOUT:
STDERR: mdadm: invalid number of raid devices: 0
---- End output of yes | mdadm --create /dev/md0 --chunk=16 --level 0 --raid-devices 0 ----
Ran yes | mdadm --create /dev/md0 --chunk=16 --level 0 --raid-devices 0 returned 2
/usr/lib/ruby/gems/1.9.2-p290/gems/chef-0.10.4/lib/chef/shell_out.rb:207:in invalid!' /usr/lib/ruby/gems/1.9.2-p290/gems/chef-0.10.4/lib/chef/shell_out.rb:193:inerror!'
/usr/lib/ruby/gems/1.9.2-p290/gems/chef-0.10.4/lib/chef/mixin/shell_out.rb:36:in shell_out!' /usr/lib/ruby/gems/1.9.2-p290/gems/chef-0.10.4/lib/chef/provider/mdadm.rb:57:inaction_create'
/usr/lib/ruby/gems/1.9.2-p290/gems/chef-0.10.4/lib/chef/resource.rb:437:in run_action' /var/chef/cache/cookbooks/volumes/recipes/build_raid.rb:59:inblock in from_file'
/var/chef/cache/cookbooks/volumes/recipes/build_raid.rb:32:in each' /var/chef/cache/cookbooks/volumes/recipes/build_raid.rb:32:infrom_file'
/usr/lib/ruby/gems/1.9.2-p290/gems/chef-0.10.4/lib/chef/mixin/from_file.rb:30:in instance_eval' /usr/lib/ruby/gems/1.9.2-p290/gems/chef-0.10.4/lib/chef/mixin/from_file.rb:30:infrom_file'
/usr/lib/ruby/gems/1.9.2-p290/gems/chef-0.10.4/lib/chef/cookbook_version.rb:578:in load_recipe' /usr/lib/ruby/gems/1.9.2-p290/gems/chef-0.10.4/lib/chef/mixin/language_include_recipe.rb:40:inblock in include_recipe'
/usr/lib/ruby/gems/1.9.2-p290/gems/chef-0.10.4/lib/chef/mixin/language_include_recipe.rb:27:in each' /usr/lib/ruby/gems/1.9.2-p290/gems/chef-0.10.4/lib/chef/mixin/language_include_recipe.rb:27:ininclude_recipe'
/usr/lib/ruby/gems/1.9.2-p290/gems/chef-0.10.4/lib/chef/run_context.rb:72:in block in load' /usr/lib/ruby/gems/1.9.2-p290/gems/chef-0.10.4/lib/chef/run_context.rb:69:ineach'
/usr/lib/ruby/gems/1.9.2-p290/gems/chef-0.10.4/lib/chef/run_context.rb:69:in load' /usr/lib/ruby/gems/1.9.2-p290/gems/chef-0.10.4/lib/chef/client.rb:195:insetup_run_context'
/usr/lib/ruby/gems/1.9.2-p290/gems/chef-0.10.4/lib/chef/client.rb:159:in run' /usr/lib/ruby/gems/1.9.2-p290/gems/chef-0.10.4/lib/chef/application/client.rb:239:inblock in run_application'
/usr/lib/ruby/gems/1.9.2-p290/gems/chef-0.10.4/lib/chef/application/client.rb:229:in loop' /usr/lib/ruby/gems/1.9.2-p290/gems/chef-0.10.4/lib/chef/application/client.rb:229:inrun_application'
/usr/lib/ruby/gems/1.9.2-p290/gems/chef-0.10.4/lib/chef/application.rb:67:in run' /usr/lib/ruby/gems/1.9.2-p290/gems/chef-0.10.4/bin/chef-client:26:in<top (required)>'
/usr/bin/chef-client:19:in `load'

I've pushed the tonia cluster definition into infochimps-homebase. commit 2ef44dbb07f9f93bfcbb3bf161d60d954cb6bd9d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants