Raid10環境下的硬盤替換

Raid10環境下換硬盤還是很簡單的,支持熱插拔,直接拔下換掉就可以了,下面是操作步驟。

1. 主要環境:

服務器: R720
系統: CentOS7

2. 首先查看硬盤信息

# /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aAll -NoLog

Enclosure Device ID: 32
Slot Number: 3
Drive's position: DiskGroup: 0, Span: 1, Arm: 1
Enclosure position: 1
Device Id: 3
WWN: 5000c500400af8dd
Sequence Number: 3
Media Error Count: 0
Other Error Count: 11
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA

Raw Size: 1.819 TB [0xe8e088b0 Sectors]
Non Coerced Size: 1.818 TB [0xe8d088b0 Sectors]
Coerced Size: 1.818 TB [0xe8d00000 Sectors]
Sector Size:  0
Firmware state: Failed
Device Firmware Level: PA03

3. 卸載故障硬盤

# /opt/MegaRAID/MegaCli/MegaCli64 -PDOffline -PhysDrv[32:3] -a0

32和3的對應關係:

    Enclosure Device ID: 32
    Slot Number: 3

4. 替換故障硬盤

此時故障硬盤已經OFFLINE,在服務器現場查看時,故障硬盤閃爍的是黃燈,正常硬盤的綠燈;
拔下故障硬盤,插上好硬盤,硬盤燈閃爍爲綠色,並硬盤快速旋轉,表示硬盤正在rebuild狀態,如下:

# /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aAll -NoLog
...
Enclosure Device ID: 32
Slot Number: 3
...
Firmware state: Rebuild
...

5. 查看rebuild進度

# /opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -ShowProg -PhysDrv[32:3] -aAll

Rebuild Progress on Device at Enclosure 32, Slot 3 Completed 16% in 94 Minutes.

6. 換盤完成

# /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aAll -NoLog | grep 'Firmware state'
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
Firmware state: Online, Spun Up
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章