MegaCLI Common Command Quick Reference

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

/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -aALL

/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aALL

/opt/MegaRAID/MegaCli/MegaCli64 -FwTermLog -Dsply -aALL

/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -aALL [Check RAID level]

/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aALL [Check RAID controller information]

/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL View [Hard disk information]

/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -aAll [Check battery information]

/opt/MegaRAID/MegaCli/MegaCli64 -FwTermLog -Dsply -aALL [Check RAID controller logs]

/opt/MegaRAID/MegaCli/MegaCli64 -adpCount [Display adapter count]

/opt/MegaRAID/MegaCli/MegaCli64 -AdpGetTime –aALL [Display adapter time]

/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aAll [Display all adapter information]

/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -LALL -aAll [Display all logical drive group information]

/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aAll [Display all physical information]

/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuStatus -aALL |grep 'Charger Status' [Check charging status]

/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuStatus -aALL[Display BBU status information]

/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuCapacityInfo -aALL[Display BBU capacity information]

/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuDesignInfo -aALL [Display BBU design parameters]

/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuProperties -aALL [Display current BBU properties]

/opt/MegaRAID/MegaCli/MegaCli64 -cfgdsply -aALL [Display RAID controller model, RAID settings, and Disk-related information]

Check

/opt/MegaRAID/MegaCli/MegaCli64 -LdPdInfo -aALL

/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -aALL

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

/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aALLww

/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -aALL

/opt/MegaRAID/MegaCli/MegaCli64 -CfgDsply -aALL

/opt/MegaRAID/MegaCli/MegaCli64 -EncInfo -aALL

/opt/MegaRAID/MegaCli/MegaCli64 -FwTermLog -Dsply -aALL

MegaCli Commands:

Reference link (maths.cam.ac.uk)

Reference link (erikimh.com)

Reference link (maths.cam.ac.uk)

Replace

MegaCli -PDList -a0
MegaCli -PDOffline -PhysDrv[252:3] -a0
MegaCli -PDMarkMissing -PhysDrv [252:3] -a0
MegaCli -PDPrpRmv -PhysDrv [252:3] -a0
MegaCli -PDHSP -Set -PhysDrv[252:3] -a0
MegaCli -PDRbld -ShowProg -PhysDrv[252:3] -a0

In case you’re not working with hot spares, you must re-add the new drive to your RAID virtual drive and start the rebuilding

MegaCli -PdReplaceMissing -PhysDrv[252:3] -Array0 -row0 -a0
MegaCli -PDRbld -Start -PhysDrv[252:3] -a0
MegaCli -PDRbld -ShowProg -PhysDrv[252:3] -a0

How to Rebuild a Drive That is Marked as "Foreign" When Inserted:

MegaCli -PDMakeGood -PhysDrv[252:5] -a0
MegaCli -CfgForeign -Clear -aALL
MegaCli -PDHSP -Set -PhysDrv[252:6] -a0

/opt/MegaRAID/MegaCli/MegaCli -PDMakeGood -PhysDrv[64:2] -force -a0

/opt/MegaRAID/MegaCli/MegaCli -PDHSP -Set -PhysDrv[64:2] -a0

/opt/MegaRAID/MegaCli/MegaCli -PDRbld -ShowProg -PhysDrv[64:0] -a0

9 views Updated 2026-11-07

More in this groupRAID Card CLI Tools

View all 10 in this group

Can't find an answer?

Upload a log for AI diagnosis, or ask the AI assistant directly in the console.