mdadm - RAID5 to RAID6, Spare won't become Active
Hi all,
I've been playing with this for hours, and have been unable to figure it out. I tried to convert my RAID5 array of 4 active disks and 1 spare to a RAID6 with 5 active disks. I did this: Code:
mdadm --grow /dev/md4 --raid-devices 5 --level 6 Code:
/dev/sde1 active Code:
State: active, degraded, Not Started Code:
mdadm --manage /dev/md4 --remove /dev/sdh5 Code:
mdadm --fail /dev/md4 /dev/sdh5 Code:
mdadm --stop /dev/md4 Where should I go from here? Thanks, B. |
OK, I've tried a few other things, still no success.
Code:
mdadm --manage /dev/md4 --remove /dev/sdh5 Code:
mdadm --manage /dev/md4 --remove /dev/sdh5 |
And to add icing on the cake, I just tried to add the new drive WHILE the spare was already there, and now I have two spares. *sigh*
|
Sorry to keep posting in my own thread over and over again, but I rebooted and found another peice of potentially useful information. When booting, it says:
Code:
raid5: Failed to run raid set md4 |
Maybe this reading this will help (basically HOWTO for RAID conversions); it says you need 2 hot spares to grow from raid5 -> raid6 ... http://blog.serverhorror.com/2011/01...ux-with-mdadm/
|
Quote:
Code:
[root@tvserver ~]# mdadm --grow /dev/md4 --raid-devices 6 --level 6 |
It looks like the array needs to be running so that /sys/block/md4/md/stripe_cache_size will be created, and thats the reason for the sysfs problem.
However, I can't start the array because it's degraded.. |
OK, for anyone else who runs into this problem. I figured it out. It's an oddity with mdadm. I had to do the following:
The array is currently rebuilding. Thanks, B. |
All times are GMT -5. The time now is 05:08 PM. |