Auto-rebuild RAID6 with MDADM
- by user65632
Hello everybody,
i'm new in this forum, and because I see that a lot of people get helped here, i'll ask my question here!
I have a openSUSE 11.3 Linux computer with 5 disks of 1TB (WD enterprise disks) in it. with mdadm I configured an RAID6 device.
Now, after a lot of thorough testing, i've noticed that when the computer goes down unsuspectedly it could happen (1 time out of 10) that while booting, the md0 device isn't recognised, and then the machine goes in "recovery mode", which means that i have to 'CTRL + C' it so it can boot to openSUSE. Once in openSUSE i have to readd the drive manually with 'mdadm /dev/md0 --add /dev/sdX'. After this everything works back fine (after resynching).
So my question is: Is there a way to auto-rebuild the RAID6 device when there are problems?
and how can I stop this "recovery mode" from happening. Because the computer will be in a place I can't go to, to connect a keyboard, 'CTRL + C' it just to get in openSUSE.
If you could help me, I would be a very very very! happy man! :-)
thanks in advance!
Mikhail