EMC损坏硬盘更换及恢复过程
更换EMC损坏的磁盘以后,盘阵会自动开始把hot spare备份的数据恢复过来。
然后把启用的hot spare盘恢复到初始备用状态。
我们可以通过命令来观察这一过程,首先看新换上来的硬盘,注意此时的状态为Equalizing,也就是正在进行平衡的过程:
# navicli -h 172.16.9.5 getdisk 1_0_1 Bus 1 Enclosure 0 Disk 1 Vendor Id: SEAGATE Product Id: ST373307 CLAR72 Product Revision: 7A0A Lun: 6 Type: 6: RAID5 State: EqualizingHot Spare: 6: NO Prct Rebuilt: 6: 100 Prct Bound: 6: 100 Serial Number: 3HZ6TL7F Sectors: 139681792 (68204) Capacity: 68238 Private: 6: 69704 Bind Signature: 0x5cf2, 0, 1 Hard Read Errors: 0 Hard Write Errors: 0 Soft Read Errors: 0 Soft Write Errors: 0 Read Retries: N/A Write Retries: N/A Remapped Sectors: N/A Number of Reads: 980562 Number of Writes: 1107168 Number of Luns: 1 Raid Group ID: 3 Clariion Part Number: DG118032459 Request Service Time: N/A Read Requests: 980562 Write Requests: 1107168 Kbytes Read: 99788880 Kbytes Written: 70098518 Stripe Boundary Crossing: 2704586
此时hot spare盘的状态为Enabled,其替代的硬盘为:1_0_1
# navicli -h 172.16.9.5 getdisk 1_0_14 Bus 1 Enclosure 0 Disk 14 Vendor Id: SEAGATE Product Id: ST314680 CLAR72 Product Revision: 7A0A Lun: 102 Type: 102: Hot Spare State: EnabledHot Spare: 102: YES Hot Spare Replacing: 1_0_1 ....
当重算完成以后,1_0_1的状态变为Enabled
# navicli -h 172.16.9.5 getdisk 1_0_1 Bus 1 Enclosure 0 Disk 1 Vendor Id: SEAGATE Product Id: ST373307 CLAR72 Product Revision: 7A0A Lun: 6 Type: 6: RAID5 State: EnabledHot Spare: 6: NO ......
而此时的hot spare盘状态重新变为:Hot Spare Ready,至此恢复过程彻底完成。
# navicli -h 172.16.9.5 getdisk 1_0_14 Bus 1 Enclosure 0 Disk 14 Vendor Id: SEAGATE Product Id: ST314680 CLAR72 Product Revision: 7A0A Lun: 102 Type: 102: Hot Spare State: Hot Spare ReadyHot Spare: 102: YES Hot Spare Replacing: Inactive....