Useful LSI MegaCli64 Commands

Ivan Lawrence -

Using the MegaCli64 utility you can find a lot of info about the RAID adapters and disks.  

LSI replaced MegaCli with StorCLI / StorCLI64 and some command syntax has changed.  See the storcli article in this help center. 
http://support.dvsus.com/hc/en-us/articles/115000636106-LSI-storcli64-examples

Embedded MegaRAID Software User Guide:
www.dvsus.com/gold/san/LSI/48712-00B_EmbMRAID_SWUG.pdf

Failed drive(s):

/opt/MegaRAID/MegaCli/MegaCli64 -LDPDInfo -aAll | grep -i 'inquiry\|firmware state'

NOTE: This will output two lines for each disk; "status" followed by the disk serial, model, and firmware info. 

Firmware state: Online, Spun Up
Inquiry Data:       PK2361PAGB31UWHitachi HUS724040ALE640                 MJAOA3B0
Firmware state: Online, Spun Up
Inquiry Data:       PK2361PAGB3A5WHitachi HUS724040ALE640                 MJAOA3B0
Firmware state: Online, Spun Up
Inquiry Data:       PK2361PAGB3LLWHitachi HUS724040ALE640                 MJAOA3B0
Firmware state: Online, Spun Up
Inquiry Data:       PK2361PAGB3DVWHitachi HUS724040ALE640                 MJAOA3B0
Firmware state: Online, Spun Up
Inquiry Data:       PK2361PAGB33ZWHitachi HUS724040ALE640                 MJAOA3B0
Firmware state: Online, Spun Up
Inquiry Data:       PK2361PAGB5N3WHitachi HUS724040ALE640                 MJAOA3B0
Firmware state: Online, Spun Up
Inquiry Data:       PK2361PAGB39MWHitachi HUS724040ALE640                 MJAOA3B0
Firmware state: Online, Spun Up
Inquiry Data:       PK2361PAGAZ0PWHitachi HUS724040ALE640                 MJAOA3B0
Firmware state: Online, Spun Up
Inquiry Data:       PK2331PAG5AT2THitachi HUS724040ALE640                 MJAOA3B0
Firmware state: Failed
Inquiry Data:       PK2331PAG52RYTHitachi HUS724040ALE640                 MJAOA3B0
Firmware state: Online, Spun Up
Inquiry Data:       PK2361PAGB3NBWHitachi HUS724040ALE640                 MJAOA3B0
Firmware state: Online, Spun Up
Inquiry Data:       PK2361PAGB5NEWHitachi HUS724040ALE640                 MJAOA3B0
Firmware state: Online, Spun Up
Inquiry Data:       PK2331PAG5ASATHitachi HUS724040ALE640                 MJAOA3B0
Firmware state: Online, Spun Up
Inquiry Data:       PK2331PAG5BD7THitachi HUS724040ALE640                 MJAOA3B0
Firmware state: Online, Spun Up
Inquiry Data:       PK2361PAGA892WHitachi HUS724040ALE640                 MJAOA3B0
Firmware state: Online, Spun Up
Inquiry Data:       PK2361PAGB3NYWHitachi HUS724040ALE640                 MJAOA3B0
Firmware state: Online, Spun Up
Inquiry Data:            32NFP14ZTTOSHIBA MK5061GSYB                      ME0A    
Firmware state: Online, Spun Up
Inquiry Data:            32NFP14DTTOSHIBA MK5061GSYB                      ME0A    
Firmware state: Online, Spun Up
Inquiry Data:       PK2361PAGB5SYWHitachi HUS724040ALE640                 MJAOA3B0
Firmware state: Online, Spun Up
Inquiry Data:       PK2361PAGB338WHitachi HUS724040ALE640                 MJAOA3B0
Firmware state: Online, Spun Up
Inquiry Data:       PK2361PAGB3L6WHitachi HUS724040ALE640                 MJAOA3B0
Firmware state: Online, Spun Up
Inquiry Data:       PK2361PAGAHDNWHitachi HUS724040ALE640                 MJAOA3B0
Firmware state: Online, Spun Up
Inquiry Data:       PK2361PAGA8ADWHitachi HUS724040ALE640                 MJAOA3B0
Firmware state: Online, Spun Up
Inquiry Data:       PK2361PAGB3LVWHitachi HUS724040ALE640                 MJAOA3B0
Firmware state: Online, Spun Up
Inquiry Data:       PK2361PAGB312WHitachi HUS724040ALE640                 MJAOA3B0
Firmware state: Online, Spun Up
Inquiry Data:       PK2361PAGA89NWHitachi HUS724040ALE640                 MJAOA3B0
Firmware state: Online, Spun Up
Inquiry Data: CVCV251505C9240CGN  INTEL SSDSC2CW240A3                     400i    
Firmware state: Online, Spun Up
Inquiry Data: CVCV2515021D240CGN  INTEL SSDSC2CW240A3                     400i    

Logical Disks and Physical Disks:

/opt/MegaRAID/MegaCli/MegaCli64 -LdPdInfo -aAll

Catch all commands:

/opt/MegaRAID/MegaCli/MegaCli64 -ShowSummary -aAll
/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aAll
/opt/MegaRAID/MegaCli/MegaCli64 -EncInfo -aAll

Current Events:

/opt/MegaRAID/MegaCli/MegaCli64 -AdpEventLog -GetEventLogInfo -aAll
/opt/MegaRAID/MegaCli/MegaCli64 -AdpEventLog -GetEvents

Battery (BBU):

/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -aAll
/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuStatus -a2
/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuDesignInfo -a2

 

 

 

 

 

 

Have more questions? Submit a request

0 Comments

Article is closed for comments.