RAID - Storcli - 如何移除坏磁盘并重新组织 RAID

RAID - Storcli - 如何移除坏磁盘并重新组织 RAID

突袭状态如下:

~$ sudo storcli /c0 restart
Controller = 0
Status = Success
Description = Adapter Restart in progress wait for few moments

Detailed Status :
===============

---------------------------
Ctrl Property        Value
---------------------------
   0 Adapter Restart     0
---------------------------


$ sudo storcli /c0/e8/sall show
Controller = 0
Status = Success
Description = Show Drive Information Succeeded.


Drive Information :
=================

----------------------------------------------------------------------------------------
EID:Slt DID State DG       Size Intf Med SED PI SeSz Model                      Sp Type
----------------------------------------------------------------------------------------
8:0       9 Onln   0 446.625 GB SATA SSD N   N  512B SAMSUNG MZ7KM480HMHQ-00005 U  -
8:1      13 Onln   1   1.745 TB SATA SSD N   N  512B SAMSUNG MZ7LM1T9HMJP-00005 U  -
8:2      10 Onln   1   1.745 TB SATA SSD N   N  512B SAMSUNG MZ7LM1T9HMJP-00005 U  -
8:3      12 UGood  -   1.745 TB SATA SSD N   N  512B SAMSUNG MZ7LM1T9HMJP-00005 U  -
8:4      11 Onln   1   1.745 TB SATA SSD N   N  512B SAMSUNG MZ7LM1T9HMJP-00005 U  -
----------------------------------------------------------------------------------------

EID-Enclosure Device ID|Slt-Slot No.|DID-Device ID|DG-DriveGroup
DHS-Dedicated Hot Spare|UGood-Unconfigured Good|GHS-Global Hotspare
UBad-Unconfigured Bad|Onln-Online|Offln-Offline|Intf-Interface
Med-Media Type|SED-Self Encryptive Drive|PI-Protection Info
SeSz-Sector Size|Sp-Spun|U-Up|D-Down|T-Transition|F-Foreign
UGUnsp-Unsupported|UGShld-UnConfigured shielded|HSPShld-Hotspare shielded
CFShld-Configured shielded|Cpybck-CopyBack|CBShld-Copyback Shielded

挂载路径出现以下错误:

$ sudo ls /raid/
ls: reading directory '/raid/': Input/output error

我怀疑下面某个磁盘有问题:

8:3      12 UGood  -   1.745 TB SATA SSD N   N  512B SAMSUNG MZ7LM1T9HMJP-00005 U  -

该磁盘的状态最初是乌巴德我只是跟着这个关联将其标记为“未配置良好”。我的问题是如何移除该磁盘并使用其余磁盘恢复 RAID?提前致谢!

答案1

尝试添加热备用 (= 驱动器发生故障时使用的磁盘)。如果您认为机柜 8、插槽 3 中的磁盘仍然良好,请将其变为热备用:

storcli /c0/e8/s3 add hotsparedrive

或者添加一个全新的磁盘。使用问题中的 show 命令来确定新磁盘的插槽并将add hotsparedrive其指定为热备用。

此操作应触发重建。您可以使用以下命令进行检查:

storcli /c0/eall/sall show rebuild

如果重建没有自动开始,请检查

storcli /call 显示自动重建

要强制重建,请使用

storcli /c0/e8/s# start rebuild

#用阵列中某个磁盘的插槽替换;我不知道是否必须是特定的磁盘)。

最好始终在磁盘阵列中保持一个活动热备份,以防问题在夜间或周末发生。

相关内容