![使用 storcli 扩展 raid6 阵列时出现问题](https://linux22.com/image/756791/%E4%BD%BF%E7%94%A8%20storcli%20%E6%89%A9%E5%B1%95%20raid6%20%E9%98%B5%E5%88%97%E6%97%B6%E5%87%BA%E7%8E%B0%E9%97%AE%E9%A2%98.png)
我有一张 RAID 930-16i 4GB RAID 卡。
我最初使用由 RAID6 中的 4 个 SSD 组成的单个 vd
-------------------------------------------------------------
DG/VD TYPE State Access Consist Cache Cac sCC Size Name
-------------------------------------------------------------
0/0 RAID6 Optl RW Yes NRWBD - ON 6.984 TB VD_1
-------------------------------------------------------------
我的系统中总共有 6 个磁盘
---------------------------------------------------------------------------------------------------
EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp Type
---------------------------------------------------------------------------------------------------
134:0 1 Onln 0 3.492 TB SATA SSD N N 512B MTFDDAK3T8TDT-1AW1ZA 02JG547D7A44712LEN U -
134:1 2 Onln 0 3.492 TB SATA SSD N N 512B MTFDDAK3T8TDT-1AW1ZA 02JG547D7A44712LEN U -
134:2 0 Onln 0 3.492 TB SATA SSD N N 512B MTFDDAK3T8TDT-1AW1ZA 02JG547D7A44712LEN U -
134:3 3 Onln 0 3.492 TB SATA SSD N N 512B MTFDDAK3T8TDT-1AW1ZA 02JG547D7A44712LEN U -
134:4 4 UGood - 3.492 TB SATA SSD N N 512B MTFDDAK3T8TDT-1AW1ZA 02JG547D7A44712LEN U -
134:5 5 UGood - 3.492 TB SATA SSD N N 512B MTFDDAK3T8TDT-1AW1ZA 02JG547D7A44712LEN U -
---------------------------------------------------------------------------------------------------
因此我添加了第 5 个磁盘(134:4)来在线扩展 RAID 阵列,并成功完成:
./storcli /c0/v0 start migrate type=raid6 option=add drives=134:4
我现在想添加第 6 个磁盘。但是,当我尝试添加它时,出现错误:
./storcli /c0/v0 start migrate type=raid6 option=add drives=134:5
CLI Version = 007.1325.0000.0000 June 19, 2020
Operating system = VMkernel 6.7.0
Controller = 0
Status = Failure
Description = None
Detailed Status :
===============
------------------------------------------------------
VD Operation Status ErrCd ErrMsg
------------------------------------------------------
0 Migrate Failed 255 Start Migrate not possible.
------------------------------------------------------
知道上次磁盘扩展成功时为什么会出现错误消息吗?
答案1
我遇到了与 OP 相同的问题,也很难诊断。在第一次成功扩展后,我尝试使用以下命令添加其他磁盘:
./storcli64 /c0/v0 start migrate type=raid6 option=add drives=0:6-7
其回应是:
------------------------------------------------------
VD Operation Status ErrCd ErrMsg
------------------------------------------------------
0 Migrate Failed 255 Start Migrate not possible.
------------------------------------------------------
我找不到简单的方法来诊断实际故障。唯一可能出现问题的线索是以下命令:
./storcli64 /c0/v0 show all
您也应该获得类似的输出:
VD0 Properties :
==============
Strip Size = 256 KB
Number of Blocks = 125002842112
VD has Emulated PD = Yes
Span Depth = 1
Number of Drives Per Span = 6
Write Cache(initial setting) = WriteBack
Disk Cache Policy = Disk's Default
Encryption = None
Data Protection = Disabled
Active Operations = Background Initialization (89%)
Exposed to OS = Yes
OS Drive Name = /dev/sda
Creation Date = 13-07-2021
Creation Time = 05:45:51 AM
Emulation type = default
Cachebypass size = Cachebypass-64k
Cachebypass Mode = Cachebypass Intelligent
Is LD Ready for OS Requests = Yes
SCSI NAA Id = 600304802411a602287fe50f14e63699
Unmap Enabled = N/A
就我的情况来说,你可以看到:
Active Operations = Background Initialization (89%)
要获取更多详细信息,请执行:
./storcli64 /c0/v0 show bgi
这应该会给出与迁移类似的输出:
-------------------------------------------------------
VD Operation Progress% Status Estimated Time Left
-------------------------------------------------------
0 BGI 89 In progress 17 Hours 53 Minutes
-------------------------------------------------------
看来,一旦迁移完成,并不意味着控制器已准备就绪,它必须运行后台初始化步骤。
答案2
好的。我不知道自我发帖以来的 1 小时内发生了什么变化,但我再次执行了该命令(与我原始帖子中的命令相同)
./storcli /c0/v0 start migrate type=raid6 option=add drives=134:5
并且它正在运行——显示扩展完成前还剩约 24 小时。