Diagnosing a degraded RAID 1 array
- dangerous message upon RAID assembly:
Starting RAID: mdadm: /dev/md0 has been started with 1 drive (out of 2).
- this means, 1 out of 2 drives is bad
- stop all reading and writing to/from the RAID!
- see http://nwlinux.com/diagnosing-a-degraded-ubuntu-raid-1-array/
$ cat /proc/mdstat Personalities : [raid1] md0 : active raid1 sdc1 488382841 blocks super 1.2 [2/1] [_U] unused devices: <none> * [_U] means 1 drive bad, 1 drive good * see also: http://www.howtoforge.com/replacing_hard_disks_in_a_raid1_array === Solution === * mark degraded drive as faulty $ mdadm --manage /dev/md0 --fail /dev/sdb1
- remove the degraded drive from RAID array
$ mdadm --manage /dev/md0 --remove /dev/sdb1 * if you get something, like ''"...failed: No such device"'' or ''"... being an active member ... but re-add failed."'', maybe you got [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=651880 this mdadm 3.2.3 bug] => try downgrading to mdadm 3.1.4 then, that worked for me * get a new drive, in case it's damaged * re-add it and wait, until the RAID has recovered $ mdadm --manage /dev/md0 --add /dev/sdb1 mdadm: added /dev/sdb1 $ cat /proc/mdstat Personalities : [raid1] md0 : active raid1 sdb1 sdc1 488382841 blocks super 1.2 [2/1] [_U] [>....................] recovery = 0.1% (725312/488382841) finish=438.5min speed=18531K/sec unused devices: <none>
Diese Kategorie enthält zurzeit keine Seiten oder Medien.