0% found this document useful (0 votes)
110 views

Megacli Command Guide GitHub PDF

This document provides commands for obtaining information and managing drives and controllers using the MegaCli storage controller management utility. It includes commands to get information on the controller, enclosure, virtual drives, physical drives, and battery backup. It also lists commands for silencing alarms, enabling/disabling alarms, taking physical drives offline or online, marking drives as missing, preparing drives for removal, replacing missing drives, rebuilding drives, clearing drives, and marking bad drives as good. The document concludes with a walkthrough for changing or replacing a drive.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
110 views

Megacli Command Guide GitHub PDF

This document provides commands for obtaining information and managing drives and controllers using the MegaCli storage controller management utility. It includes commands to get information on the controller, enclosure, virtual drives, physical drives, and battery backup. It also lists commands for silencing alarms, enabling/disabling alarms, taking physical drives offline or online, marking drives as missing, preparing drives for removal, replacing missing drives, rebuilding drives, clearing drives, and marking bad drives as good. The document concludes with a walkthrough for changing or replacing a drive.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Controller information

MegaCli -AdpAllInfo -aALL


MegaCli -CfgDsply -aALL
MegaCli -AdpEventLog -GetEvents -f events.log -aALL && cat events.log

Enclosure information

MegaCli -EncInfo -aALL

Virtual drive information

MegaCli -LDInfo -Lall -aALL

Physical drive information

MegaCli -PDList -aALL


MegaCli -PDInfo -PhysDrv [E:S] -aALL

Battery backup information

MegaCli -AdpBbuCmd -aALL

Controller management

Silence active alarm

MegaCli -AdpSetProp AlarmSilence -aALL

Disable alarm

MegaCli -AdpSetProp AlarmDsbl -aALL

Enable alarm

MegaCli -AdpSetProp AlarmEnbl -aALL

Physical drive management

Set state to offline

MegaCli -PDOffline -PhysDrv [E:S] -aN

Set state to online

MegaCli -PDOnline -PhysDrv [E:S] -aN

Mark as missing

MegaCli -PDMarkMissing -PhysDrv [E:S] -aN

Prepare for removal

MegaCli -PdPrpRmv -PhysDrv [E:S] -aN

Replace missing drive

MegaCli -PdReplaceMissing -PhysDrv [E:S] -ArrayN -rowN -aN

The number N of the array parameter is the Span Reference you get using “MegaCli -CfgDsply -aALL” and the number N of the row parameter is the Physical Disk in that span or array starting with zero (it’s not the p
Rebuild drive

MegaCli -PDRbld -Start -PhysDrv [E:S] -aN


MegaCli -PDRbld -Stop -PhysDrv [E:S] -aN
MegaCli -PDRbld -ShowProg -PhysDrv [E:S] -aN

Clear drive

MegaCli -PDClear -Start -PhysDrv [E:S] -aN


MegaCli -PDClear -Stop -PhysDrv [E:S] -aN
MegaCli -PDClear -ShowProg -PhysDrv [E:S] -aN

Bad to good (or back to good as I like to call it)

MegaCli -PDMakeGood -PhysDrv[E:S] -aN

This changes drive in state Unconfigured-Bad to Unconfigured-Good.

Walkthrough: Change/replace a drive

Set the drive offline, if it is not already offline due to an error

MegaCli -PDOffline -PhysDrv [E:S] -aN

You might also like