I have an openSUSE 11.3 Linux computer with 5 disks of 1TB (WD enterprise disks) in it. With
mdadm I configured a 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 re-add 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.
cat /etc/mdadm.conf DEVICE containers partitions ARRAY /dev/md0 UUID=d300b3c5:553c4f26:ce909d5a:0f456417
cat /proc/mdstat Personalities : [raid6] [raid5] [raid4] md0 : active raid6 sdb1 sdf1 sde1 sdd1 sdc1 2930281728 blocks super 1.0 level 6, 128k chunk, algorithm 2 [5/5] [UUUUU] bitmap: 0/466 pages [0KB], 1024KB chunk unused devices: <none>
cat /etc/fstab /dev/disk/by-id/ata-ST3500418AS_9VM6LN3Y-part1 swap swap defaults 0 0 /dev/disk/by-id/ata-ST3500418AS_9VM6LN3Y-part2 / ext4 acl,user_xattr 1 1 /dev/disk/by-id/ata-ST3500418AS_9VM6LN3Y-part3 /home ext4 acl,user_xattr 1 2 proc /proc proc defaults 0 0 sysfs /sys sysfs noauto 0 0 debugfs /sys/kernel/debug debugfs noauto 0 0 usbfs /proc/bus/usb usbfs noauto 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 /dev/disk/by-id/md-uuid-d300b3c5:553c4f26:ce909d5a:0f456417 /home/mobotix ext4 acl,user_xattr 1 2