MegaCLI 常用命令速查

/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 【查raid级别】

/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aALL 【查raid卡信息】

/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL 查看【硬盘信息】

/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -aAll 【查看电池信息】

/opt/MegaRAID/MegaCli/MegaCli64 -FwTermLog -Dsply -aALL 【查看raid卡日志】

/opt/MegaRAID/MegaCli/MegaCli64 -adpCount 【显示适配器个数】

/opt/MegaRAID/MegaCli/MegaCli64 -AdpGetTime –aALL 【显示适配器时间】

/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aAll 【显示所有适配器信息】

/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -LALL -aAll 【显示所有逻辑磁盘组信息】

/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aAll 【显示所有的物理信息】

/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuStatus -aALL |grep ‘Charger Status’ 【查看充电状态】

/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuStatus -aALL【显示BBU状态信息】

/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuCapacityInfo -aALL【显示BBU容量信息】

/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuDesignInfo -aALL 【显示BBU设计参数】

/opt/MegaRAID/MegaCli/MegaCli64 -AdpBbuCmd -GetBbuProperties -aALL 【显示当前BBU属性】

/opt/MegaRAID/MegaCli/MegaCli64 -cfgdsply -aALL 【显示Raid卡型号,Raid设置,Disk相关信息】

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:

参考链接(maths.cam.ac.uk)

参考链接(erikimh.com)

参考链接(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

2 次浏览 更新于 2026-11-04

同组文章阵列卡命令行工具

查看本组全部 11 篇

没有找到想要的答案?

上传日志让 AI 帮你诊断,或者在控制台里直接向 AI 提问。