PowerFlex storcli add vd 命令抱怨「硬碟沒有適當的屬性」

Summary: Storcli 新增 vd 命令抱怨「硬碟沒有適當的屬性」

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

案例

將磁碟從機櫃拉出並放回,卻未遵循正確程序時,就會發生此情況。

這可能發生在 VxRack Node 和其他使用 LSI 控制器和 storcli 的系統上。

症狀

storcli 上的錯誤會新增 vd 命令:

 # /opt/MegaRAID/storcli/storcli64 /c0 add vd type=raid0 drives=252:2 direct wb ra
Controller = 0
Status = Failure
Description = physical disk does not have appropriate attributes

在「storcli /c0 show」輸出中,252:2 的狀態為「UBad」,DG 為「F」:

 # /opt/MegaRAID/storcli/storcli64 /c0 show
...
PD LIST :
=======
----------------------------------------------------------------------------
EID:Slt DID State DG Size Intf Med SED PI SeSz Model Sp
----------------------------------------------------------------------------
252:0 13 Onln 4 372.093 GB SATA SSD N N 512B INTEL SSDSC2BA400G3 U
252:1 12 Onln 0 837.843 GB SAS HDD Y N 512B ST900MM0026 U
252:2 11 UBad F 837.843 GB SAS HDD Y N 512B ST900MM0026 U
252:4  8 Onln 1 837.843 GB SAS HDD Y N 512B ST900MM0026 U
252:5  9 Onln 2 837.843 GB SAS HDD Y N 512B ST900MM0026 U
252:6 10 Onln 3 837.843 GB SAS HDD Y N 512B ST900MM0026 U

 

影響

無法使用磁碟。

Cause

將磁碟提取並放回時,控制器可能會將此磁碟的配置視為「外部」(DG=F)。這可防止控制器使用磁碟,嘗試在此 PD 上新增 VD 將會失敗。

 

Resolution

必須先刪除外部配置,然後控制器才能使用 PD。

注意:此操作會使磁碟上的數據失效。這應該不會對 ScaleIO 造成問題,因為所有資料都會有兩個複本。

1.清除 PD 的「Ubad」狀態 (如果有):

# /opt/MegaRAID/storcli/storcli64 /c0/e252/s2 set good
Controller = 0
Status = Success
Description = Set Drive Good Succeeded.

2.使用「storcli /c0/fall show」驗證外部組態

# /opt/MegaRAID/storcli/storcli64 /c0/fall show
Controller = 0
Status = Success
Description = Operation on foreign configuration Succeeded
FOREIGN CONFIGURATION :
=====================
-----------------------------------------
DG EID:Slot Type  State       Size NoVDs
-----------------------------------------
 0 -        RAID0 Frgn  837.843 GB     1
-----------------------------------------
NoVDs - Number of VDs in disk group|DG - Diskgroup
Total foreign drive groups = 1

3.刪除含有「storcli /c0/fall del」的外部組態

# /opt/MegaRAID/storcli/storcli64 /c0/fall del
Controller = 0
Status = Success
Description = Successfully deleted foreign configuration

之後,「storcli /c0 show」會以有效的 DG 編號顯示處於 UGood 狀態的 PD,且 PD 可再次用於「add vd」命令。

Affected Products

PowerFlex appliance connectivity
Article Properties
Article Number: 000281642
Article Type: Solution
Last Modified: 06 Feb 2025
Version:  1
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.