2009年7月8日 星期三

rebuild freebsd soft raid

(2) 如果 mirror 中某一個硬碟壞掉了,怎麼辦?

# gmirror remove gm0 ad0    # 移除 mirror 壞掉的 ad0

# gmirror forget gm0   # 忽略 mirror 中之前存在,而現在不存在的裝置

# shutdown -h now      # 關機拔掉壞掉那棵 HD 假設壞掉的是 ad0 更換新的 HD 接著重開 gm0 就會使用 ad1 進入 OS 可看看是否正常運作

# shutdown -h now    # 再次關機接上新的硬碟

# gmirror insert gm0 /dev/ad0     # 重開後再 insert 新的硬碟

 

http://freebsd.ntut.idv.tw/document/freebsd_software_raid_geom.html

 

沒有留言: