我有带 RAID 配置的系统 FreeBSD 9.0
# mfiutil show config
mfi0 Configuration: 2 arrays, 2 volumes, 0 spares
array 0 of 2 drives:
drive 4 ( 558G) ONLINE <SEAGATE ST3600057SS 0008 serial=6SL3ZTFP> SAS
drive 5 ( 558G) ONLINE <SEAGATE ST3600057SS 0008 serial=6SL3YNB7> SAS
array 1 of 2 drives:
drive 6 ( 558G) ONLINE <SEAGATE ST3600057SS 0008 serial=6SL3YNK3> SAS
drive 7 ( 558G) ONLINE <SEAGATE ST3600057SS 0008 serial=6SL3YQNJ> SAS
volume mfid0 (557G) RAID-1 64k OPTIMAL spans:
array 0
volume mfid1 (1115G) RAID-0 64k OPTIMAL spans:
array 1
上次我看到驱动器 PD 05(raid-1 的一部分)的许多警告记录
89584 (Fri Apr 27 20:33:16 ALMT 2018/DRIVE/WARN) - Predictive failure: PD 05(e0xfc/s1)
89906 (Sat Apr 28 20:33:16 ALMT 2018/DRIVE/WARN) - Predictive failure: PD 05(e0xfc/s1)
89907 (Sun Apr 29 20:33:16 ALMT 2018/DRIVE/WARN) - Predictive failure: PD 05(e0xfc/s1)
89908 (Mon Apr 30 20:33:16 ALMT 2018/DRIVE/WARN) - Predictive failure: PD 05(e0xfc/s1)
89909 (Tue May 1 20:33:16 ALMT 2018/DRIVE/WARN) - Predictive failure: PD 05(e0xfc/s1)
系统安装在raid-1上
# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/mfid0p2 544G 381G 119G 76% /
devfs 1.0k 1.0k 0B 100% /dev
/dev/mfid1s2 972G 408G 486G 46% /home2
/dev/md2 31M 56k 28M 0% /tmp/mem
现在我购买了新驱动器 ST3600057SS 并计划热更换驱动器
1) mfiutil fail 5
2) mfiutil locate 5 on
3) replace drive
4) mfiutil rebuild 5
5) mfiutil start rebuild 5
我不太确定,有人能告诉我,我的计划中的所有步骤都是正确的吗?
感谢您的关注!
答案1
更换驱动器的操作顺利完成!更换驱动器后,raid-1 将进行重建,耗时约 1 小时
mfi0: 90563 (579439206s/0x0002/info) - State change on PD 05(e0xfc/s1) from ONLINE(18) to FAILED(11)
mfi0: 90564 (579439206s/0x0001/info) - State change on VD 00/0 from OPTIMAL(3) to DEGRADED(2)
mfi0: 90565 (579439206s/0x0001/CRIT) - VD 00/0 is now DEGRADED
mfi0: 90566 (579439279s/0x0002/WARN) - Removed: PD 05(e0xfc/s1)
mfi0: 90567 (579439279s/0x0002/info) - Removed: PD 05(e0xfc/s1) Info: enclPd=fc, scsiType=0, portMap=01, sasAddr=5000c5004cd40ca5,0000000000000000
mfi0: 90568 (579439279s/0x0002/info) - State change on PD 05(e0xfc/s1) from FAILED(11) to UNCONFIGURED_BAD(1)
mfi0: 90569 (579439450s/0x0002/info) - Inserted: PD 08(e0xfc/s1)
mfi0: 90570 (579439450s/0x0002/info) - Inserted: PD 08(e0xfc/s1) Info: enclPd=fc, scsiType=0, portMap=01, sasAddr=5000c50088a32c3d,0000000000000000
mfi0: 90571 (579439450s/0x0002/info) - State change on PD 08(e0xfc/s1) from UNCONFIGURED_GOOD(0) to OFFLINE(10)
mfi0: 90572 (579439450s/0x0002/info) - Rebuild automatically started on PD 08(e0xfc/s1)
mfi0: 90573 (579439450s/0x0002/info) - State change on PD 08(e0xfc/s1) from OFFLINE(10) to REBUILD(14)
mfi0 Configuration: 2 arrays, 2 volumes, 0 spares
array 0 of 2 drives:
drive 4 ( 559G) ONLINE <SEAGATE ST3600057SS 0008 serial=6SL3ZTFP> SAS
drive 8 ( 559G) REBUILD <SEAGATE ST3600057SS 000B serial=6SLA5GTM> SAS
array 1 of 2 drives:
drive 6 ( 559G) ONLINE <SEAGATE ST3600057SS 0008 serial=6SL3YNK3> SAS
drive 7 ( 559G) ONLINE <SEAGATE ST3600057SS 0008 serial=6SL3YQNJ> SAS
volume mfid0 (558G) RAID-1 64K DEGRADED spans:
array 0
volume mfid1 (1116G) RAID-0 64K OPTIMAL spans:
array 1
谢谢你!