以下是 -PDList -a0 结果的一部分:
Enclosure Device ID: 252
Slot Number: 4
Drive's position: DiskGroup: 0, Span: 0, Arm: 0
Enclosure position: N/A
Device Id: 12
Sequence Number: 3
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA
Raw Size: 931.512 GB [0x74706db0 Sectors]
Non Coerced Size: 931.012 GB [0x74606db0 Sectors]
Coerced Size: 931.0 GB [0x74600000 Sectors]
Sector Size: 0
Firmware state: Failed
Commissioned Spare : No
Emergency Spare : No
Device Firmware Level: A750
Shield Counter: 0
Successful diagnostics completion on : N/A
SAS Address(0): 0x4433221104000000
Connected Port Number: 0(path0)
Inquiry Data: DT01ACA100 MS2OA750
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0Gb/s
Link Speed: 6.0Gb/s
Media Type: Hard Disk Device
Drive: Not Certified
Drive Temperature : N/A
PI Eligibility: No
Drive is formatted for PI information: No
PI: No PI
Drive's NCQ setting : N/A
Port-0 :
Port status: Active
Port's Linkspeed: 6.0Gb/s
Drive has flagged a S.M.A.R.T alert : No
我目前使用的是 LSI 9260-8i,当我尝试设置 RAID 10 时,一切看起来都很好,但重新启动后,RAID 卡开始发出哔哔声,MegaCli 显示“固件状态:失败”。最奇怪的是,所有错误计数均为零,但失败了。我更新了 RAID 卡固件,但没有任何变化。
或者这从一开始就有问题?
答案1
这样你就可以从Firmware state: Failed
到Unconfigured(good)
PHYSDRV=X # set to right slot, be careful
DEVID=$(megacli -EncInfo -aALL | grep 'Device ID' | awk '{print $4}')
megacli -PdMarkMissing -PhysDrv [$DEVID:$PHYSDRV] -a $ADAPTER -NoLog
megacli -PdPrpRmv -PhysDrv [$DEVID:$PHYSDRV] -a $ADAPTER -NoLog # no problem if fails
megacli -PDMakeGood -PhysDrv [$DEVID:$PHYSDRV] -a $ADAPTER -NoLog