Software RAID unter Linux mit MDADM
Erfahrungssammlung:
Problem:
Server ist abestürtzt (defekte Festplatte eines anderen Raids)
$cat /proc/mdstat: md5 : inactive hdc1[2](S) hdd1[3](S) sdb1[1](S) sda1[0](S) -> also alle werden als "Spares" erkannt ?!
Ein
$mdadm -v --assemble /dev/md5 /dev/hdc1 /dev/hdd1 /dev/sdb1 /dev/sda1
ergab die Fehlermeldung:
"mdadm: /dev/md5 assembled from 2 drives - not enough to start the array." -> Was soll denn das, es werden doch alle Festplatten erkannt ?!
Lösung (Tipp aus dem Internet)
$mdadm --run /dev/md5
gibt natürlich ne Fehlermeldung: mdadm: failed to run array /dev/md5: Input/output error
Mal schaun wies jetzt ausschaut:
md5 : inactive hdc1[2] hdd1[3] -> sehr seltsam...
Jetzt isses nimmer schwer, einfach alle andere Festplatten mit "--add" wieder hinzugefügt und dann nochmal ein: $mdadm --run /dev/md5
Tada:
md5 : active raid5 sdb1[1] sda1[0] hdc1[2] hdd1[3]
1465151808 blocks level 5, 64k chunk, algorithm 2 [4/4] [UUUU]
[===>.................] resync = 17.3% (84550684/488383936) finish=96.0min speed=70055K/sec