大网数据广告活动
服务器运维问答

Error: (CLI:144) Invalid drive(s) specified when trying to rebuild 3ware RAID

· 52CE 我爱测

We have a RAID 5 using a 3ware 9550SX RAID controller that shows one degraded disk. There is a spare drive configured for the array, but it wasn't used automatically as intended. The current array status is the following: > /c0 s…

问题原文

原帖链接 · user17363 · CC BY-SA 3.0

We have a RAID 5 using a 3ware 9550SX RAID controller that shows one degraded disk. There is a spare drive configured for the array, but it wasn't used automatically as intended.

The current array status is the following:

> /c0 show

Unit  UnitType  Status         %RCmpl  %V/I/M  Stripe  Size(GB)  Cache  AVrfy
------------------------------------------------------------------------------
u0    RAID-5    DEGRADED       -       -       64K     11175.8   OFF    OFF
u1    SPARE     OK             -       -       -       1863.01   -      OFF

Port   Status           Unit   Size        Blocks        Serial
---------------------------------------------------------------
p0     OK               u0     1.82 TB     3907029168    WD-WMAY0108****
p1     OK               u0     1.82 TB     3907029168    WD-WMAY0080****
p2     OK               u0     1.82 TB     3907029168    WD-WMAY0109****
p3     OK               u0     1.82 TB     3907029168    WD-WMAY0080****
p4     DEVICE-ERROR     u0     1.82 TB     3907029168    WD-WMAY0108****
p5     OK               u0     1.82 TB     3907029168    WD-WMAY0109****
p6     OK               u0     1.82 TB     3907029168    WD-WMAY0080****
p7     OK               u1     1.82 TB     3907029168    WD-WCAY0188****

Name  OnlineState  BBUReady  Status    Volt     Temp     Hours  LastCapTest
---------------------------------------------------------------------------
bbu   On           Yes       OK        OK       OK       0      xx-xxx-xxxx

> /c0/u1 show

Unit     UnitType  Status         %RCmpl  %V/I/M  Port  Stripe  Size(GB)
------------------------------------------------------------------------
u1       SPARE     OK             -       -       p7    -       1863.01

> /c0/u0 show

Unit     UnitType  Status         %RCmpl  %V/I/M  Port  Stripe  Size(GB)
------------------------------------------------------------------------
u0       RAID-5    DEGRADED*      -       -       -     64K     11175.8
u0-0     DISK      OK             -       -       p6    -       1862.63
u0-1     DISK      OK             -       -       p5    -       1862.63
u0-2     DISK      DEGRADED       -       -       p4    -       1862.63
u0-3     DISK      OK             -       -       p3    -       1862.63
u0-4     DISK      OK             -       -       p2    -       1862.63
u0-5     DISK      OK             -       -       p1    -       1862.63
u0-6     DISK      OK             -       -       p0    -       1862.63
u0/v0    Volume    -              -       -       -     -       11175.8

When trying to manually trigger a rebuild with tw_cli we encountered the following error:

> /c0/u0 start rebuild disk=p7
Error: (CLI:144) Invalid drive(s) specified.

We tried a few more variations of that command (/c0/u0 start rebuild disk=7 and maint rebuild c0 u0 p7), but it does not seem to be a syntax error or a mistake in specifying the drive. For some reason the RAID controller doesn't want to use this specific drive to rebuild.

Does the spare drive have to be in the same unit? Or could it be an issue that the spare is from a different batch? How can I get the array to use the spare we have to rebuild the array?

已采纳解答

原帖链接 · Mikhail Khirgiy · CC BY-SA 3.0

Before start rebuilding of array, you need configure controller settings. This command will enable automatic rebuilding:

> /c0 set autorebuild=on

Remove bad disk 4 from array:

> /c0/p4 remove

Use next command to identify bad disk by led indicator:

> /c0/p4 set identify=on

Eject bad disk from server and drop it into recycle bin. If array rebuilding won't start automatically then start it manually:

> /c0/u0 start rebuild disk=7

When you will insert new disk as hot spare enter these commands:

> /c0 rescan
> /c0/p4 add type=spare

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-08-31)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。