Raid10环境下换硬盘还是很简单的,支持热插拔,直接拔下换掉就可以了,下面是操作步骤。
1. 主要环境:
服务器: R720
系统: CentOS7
2. 首先查看硬盘信息
# /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aAll -NoLogEnclosure Device ID: 32Slot Number: 3Drive's position: DiskGroup: 0, Span: 1, Arm: 1Enclosure position: 1Device Id: 3WWN: 5000c500400af8ddSequence Number: 3Media Error Count: 0Other Error Count: 11Predictive Failure Count: 0Last Predictive Failure Event Seq Number: 0PD Type: SATARaw Size: 1.819 TB [0xe8e088b0 Sectors]Non Coerced Size: 1.818 TB [0xe8d088b0 Sectors]Coerced Size: 1.818 TB [0xe8d00000 Sectors]Sector Size: 0Firmware state: FailedDevice 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: 32Slot Number: 3...Firmware state: Rebuild...
5. 查看rebuild进度
# /opt/MegaRAID/MegaCli/MegaCli64 -PDRbld -ShowProg -PhysDrv[32:3] -aAllRebuild 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 UpFirmware state: Online, Spun UpFirmware state: Online, Spun UpFirmware state: Online, Spun Up
本文转自 Tenderrain 51CTO博客,原文链接:http://blog.51cto.com/tenderrain/1876052