User Tools

Site Tools


wiki:megacli_commands

This is an old revision of the document!


megacli commands

Info

megacli -LDInfo -Lall -aAll
megacli -AdpAllInfo -aALL
megacli -PDList -aALL

Check disk for predictive error count

megacli -PDList -aAll | egrep "Enclosure Device ID:|Slot Number:|Inquiry Data:|Error Count:|state|Device Id:"

Rebuild drive

megacli -PDRbld -ShowProg -PhysDrv[252:1] -a0

Check battery (BBU)

megacli -AdpBbuCmd -aALL

Delete virtual drive 1

megacli -CfgLdDel -L1 -a0

No writeback cache

megacli -LDSetProp -NoCachedBadBBU -Immediate -Lall -aAll

ROM flash

megacli -adpfwflash -f imr_fw.rom -a0

Create raid 1

megacli -CfgLdAdd -r1 [32:0,32:1] WB NORA Direct NoCachedBadBBU -strpsz64 -a0

Create raid 10

megacli -CfgSpanAdd -R10 -Array0 [252:4,252:5] -Array1 [252:6,252:7] WB NORA Direct -strpsz64 -a0

Tested on

See also

References

wiki/megacli_commands.1621603132.txt.gz · Last modified: 2021/05/21 15:18 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki