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>
RAID 故障
適用於 Mandrake Linux 10.0 official
Mandrake Linux 10.0 official
[root@linux home]# cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md0 : active raid1 ide/host0/bus0/target0/lun0/part1[0]
20201600 blocks [2/1] [U_]
unused devices: <none>
# 先檢查有沒有raid 的bash, 如果沒有就urpmi dmraid 以及 urpmi raidtools
先移除有問題的裝置, 再add回來!
raidhotremove /dev/md0 /dev/hdb1
raidhotadd --all /dev/md0 /dev/hdb1
[root@linux root]# cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md0 : active raid1 ide/host0/bus0/target1/lun0/part1[2] ide/host0/bus0/target0/lun0/part1[0]
20201600 blocks [2/1] [U_]
[>....................] recovery = 0.2% (54064/20201600) finish=24.8min speed=13516K/sec
unused devices: <none>
[root@linux home]# cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md0 : active raid1 ide/host0/bus0/target0/lun0/part1[0]
20201600 blocks [2/1] [U_]
unused devices: <none>
# 先檢查有沒有raid 的bash, 如果沒有就urpmi dmraid 以及 urpmi raidtools
先移除有問題的裝置, 再add回來!
raidhotremove /dev/md0 /dev/hdb1
raidhotadd --all /dev/md0 /dev/hdb1
[root@linux root]# cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md0 : active raid1 ide/host0/bus0/target1/lun0/part1[2] ide/host0/bus0/target0/lun0/part1[0]
20201600 blocks [2/1] [U_]
[>....................] recovery = 0.2% (54064/20201600) finish=24.8min speed=13516K/sec
unused devices: <none>