Friday, 14 October 2016

MEGA RAID CLI - DISK FAILURE


List  the disk status:

[04:16:27] XYZ:~ # 

/opt/MegaRAID/MegaCli/MegaCli64 -PDList -a0 -NoLog | grep "Inquiry\|Firmware\|Foreign"

Firmware state: Online, Spun UpDevice 

Firmware Level: B63EInquiry 

Data: IBM-ESXSST9300653SS     B63E6XN4XXHP0806B63E

Foreign State: NoneFirmware 

state: Online, Spun UpDevice 

Firmware Level: B63

EInquiry Data: IBM-ESXSST9300653SS     B63E6XN4Y1KR0806B63E

Foreign State: None

Firmware state: Online, Spun UpDevice 

Firmware Level: F6C2Inquiry 

Data: SmrtStorSDLKOCDM800G5CA1F6C2FG00FG04F6C2F6C2F300

Foreign State: N

MegaRaid Disk Failure



To list all the Physical Disks


#/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL 


To know the rebuild status

./MegaCli64 -AdpAllinfo  -aALL  | grep -i rebuild

./MegaCli64 -PDRbld -ShowProg -PhysDrv [252:0] -aALL ./MegaCli64 -PDList -a0


To list complete details

./MegaCli -AdpSetProp \{RebuildRate -60\} -aALL


Get all Events to one file.


./MegaCli64 -AdpEventLog -GetEvents -f /dumps/events -aAll && tail -n 300 /dumps/events /opt/MegaRAID
To know the firmware status and slot number.


./MegaCli/MegaCli64 -PDList -aALL | grep "Firmware\|Slot"


List all the drive under this RAID controller.

./MegaCli64 -PDList -a0




No comments:

Post a Comment