RAID 故障
發表於 : 2006-07-19 14:16:00
Mandrake Linux 2005LE
設定檔
[root@server etc]# cat /etc/mdadm.conf
DEVICE /dev/sda5 /dev/sdb5
ARRAY /dev/md0 UUID=f9d44896:1a3da93e:5828eda1:aa41350e auto=yes
raid 狀態
[root@server etc]# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sda5[0] sdb5[2](F)
77079744 blocks [2/1] [U_]
卸下
[root@server etc]# mdadm --manage /dev/md0 -r /dev/sdb5
mdadm: hot removed /dev/sdb5
掛上
[root@server etc]# mdadm --manage /dev/md0 -a /dev/sdb5
mdadm: hot added /dev/sdb5
看是否有重建
[root@server etc]# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sdb5[2] sda5[0]
77079744 blocks [2/1] [U_]
[>....................] recovery = 0.4% (333440/77079744) finish=26.8min speed=47634K/sec
unused devices: <none>
設定檔
[root@server etc]# cat /etc/mdadm.conf
DEVICE /dev/sda5 /dev/sdb5
ARRAY /dev/md0 UUID=f9d44896:1a3da93e:5828eda1:aa41350e auto=yes
raid 狀態
[root@server etc]# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sda5[0] sdb5[2](F)
77079744 blocks [2/1] [U_]
卸下
[root@server etc]# mdadm --manage /dev/md0 -r /dev/sdb5
mdadm: hot removed /dev/sdb5
掛上
[root@server etc]# mdadm --manage /dev/md0 -a /dev/sdb5
mdadm: hot added /dev/sdb5
看是否有重建
[root@server etc]# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sdb5[2] sda5[0]
77079744 blocks [2/1] [U_]
[>....................] recovery = 0.4% (333440/77079744) finish=26.8min speed=47634K/sec
unused devices: <none>