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

Strange udev issues when restarting RAID on ephemeral drives #220

Open
temujin9 opened this issue Dec 10, 2012 · 0 comments
Open

Strange udev issues when restarting RAID on ephemeral drives #220

temujin9 opened this issue Dec 10, 2012 · 0 comments

Comments

@temujin9
Copy link
Contributor

Restarting a computer using the raid recipe will fail on reassembling the RAID:

sudo mdadm --create /dev/md0 --chunk=16 --level 0 --raid-devices 4 /dev/xvdb /dev/xvdc /dev/xvdd /dev/xvde
mdadm: device /dev/xvdb not suitable for any style of array

The core of the problem is described here: http://dev.bizo.com/2012/07/mdadm-device-or-resource-busy.html

Solution is:

udevadm control --stop-exec-queue
mdadm --create /dev/md0 --run --level=0 --raid-devices=4 ...
udevadm control --start-exec-queue

sudo mdadm --manage --stop /dev/md127 may also be necessary before the create will work correctly.

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

1 participant