This article contains the steps to identify drives using the
MegaCli64 command when troubleshooting.
The
MegaCli64 command is in the following directory on SIEM:
/opt/MegaRAID/MegaCli/MegaCli64
Identify a failed drive:
- To identify a failed drive, type the following command and press Enter:
MegaCli64 -CfgDsply -aAll
- In the output generated, search for Firmware state. In the example below, the state shows:
Failed.Raw Size: 1.819 TB [0xe8e088b0 Sectors]
Non Coerced Size: 1.818 TB [0xe8d088b0 Sectors]
Coerced Size: 1.818 TB [0xe8d00000 Sectors]
Sector Size: 0
Logical Sector Size: 0
Physical Sector Size: 0
Firmware state: Failed
Commissioned Spare: No
Emergency Spare: No
Device Firmware Level: SN03
Shield Counter: 0
Successful diagnostics completion on: N/A
SAS Address(0): 0x50030480019d34cc
Connected Port Number: 1(path0)
Inquiry Data: Z1P2H1SAST2000NM0011 SN03
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: None
Device Speed: 6.0 Gb/s
Link Speed: 6.0 Gb/s
Media Type: Hard Disk Device
Drive: Not Certified
Drive Temperature: 37C (98.60 F)
PI Eligibility: No
Drive is formatted for PI information: No
PI: No PI
Port-0:
Port status: Active
Port's Linkspeed: 6.0 Gb/s
Drive has flagged a S.M.A.R.T alert: No
Locate the physical drive:
You need the device enclosure ID and slot number to perform these steps.
- To find them, look at the megacli output from megacli64 -AdpAlILog -a0 and find the PD 0b(e0x04/s5) address.
- For example, if it's enclosure 4 and slot 5, megacli64 -pdInfo -PhysDrv \[4:5\] -aALL displays the disk. Displaying the disk allows a user to make sure that the enclosure and slot numbers are correct.
1. Locate the physical drive on the device. Type the following command and press Enter.
MegaCli64 -PdLocate -start -physdrv [Enclosure Device ID:Slot] -aAll
For example, enclosure 4 and slot 5 would be
megacli64 -PdLocate -start -PhysDrv \[4:5\] -aALL
NOTE: Running this command causes the drive to start blinking, making identification easier.
2. To stop the drive blinking, type the following command:
MegaCli64 -PdLocate -stop -physdrv [Enclosure Device ID:Slot] -aAll
3. To silence the alarm, type the command below:
MegaCli64 -AdpSetProp -AlarmSilence -aAll
4. To add the drive back into the RAID, type the following command:
MegaCli64 -PDHSP -Set -PhysDrv [Enclosure Device ID:Slot] -aAll