RAID 故障

回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

RAID 故障

文章 yehlu »

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>
schumi
Site Admin
文章: 696
註冊時間: 2004-04-15 14:30:34

適用於 Mandrake Linux 10.0 official

文章 schumi »

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>
schumi
Site Admin
文章: 696
註冊時間: 2004-04-15 14:30:34

Ubuntu 7.10

文章 schumi »

from https://help.ubuntu.com/community/Insta ... /RAID1+LVM

mdadm --manage --add /dev/md0 /dev/hdb1
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

Re: RAID 故障

文章 yehlu »

移除

代碼: 選擇全部

mdadm --manage -r /dev/md1 /dev/sdd
加入

代碼: 選擇全部

mdadm --manage -a /dev/md1 /dev/sdd
回覆文章

回到「Linux」