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

你可能感兴趣的:(centos,硬盘,raid,raid10,换盘,系统运维)