DELL PERC5/i Integrated (LSI Logic MegaRAID) Emergency Cheat Sheet
|
Adapter parameter -aN
|
|
The parameter -aN (where N is a number starting with zero or the string ALL) specifies the PERC5/i adapter ID. If you have only one controller it’s safe to use ALL instead of a specific ID, but you’re encouraged to use the ID for everything that makes changes to your RAID configuration.
|
|
Physical drive parameter -PhysDrv [E:S]
|
|
For commands that operate on one or more pysical drives, the -PhysDrv [E:S] parameter is used, where E is the enclosure device ID in which the drive resides and S the slot number (starting with zero). You can get the enclosure device ID using „MegaCli -EncInfo -aALL“. The E:S syntax is also used for specifying the physical drives when creating a new RAID virtual drive (see 5).
|
|
Virtual drive parameter -Lx
|
|
The parameter -Lx is used for specifying the virtual drive (where x is a number starting with zero or the string all).
|
|
Adapter information
|
|
MegaCli -AdpAllInfo -aALL
|
|
Configuration information
|
|
MegaCli -CfgDsply -aALL
|
|
Events Information
|
|
MegaCli -AdpEventLog -GetEvents -f events.log -aALL && cat events.log
|
|
Enclosure information
|
|
MegaCli -EncInfo -aALL
|
|
Virtual drive information
|
|
MegaCli -LDInfo -Lall -aALL
|
|
Physical drive list
|
|
MegaCli -PDList -aALL
|
|
Physical drive list
|
|
MegaCli -PDInfo -PhysDrv [E:S] -aALL
|
|
Battery backup information
|
|
MegaCli -AdpBbuCmd -aALL
|
|
Silence active alarm
|
|
MegaCli -AdpSetProp AlarmSilence -aALL
|
|
Disable alarm
|
|
MegaCli -AdpSetProp AlarmDsbl -aALL
|
|
Enable alarm
|
|
MegaCli -AdpSetProp AlarmEnbl -aALL
|
|
Create RAID 0, 1, 5 drive
|
|
MegaCli -CfgLdAdd -r(0|1|5) [E:S, E:S, ...] -aN
|
|
Create RAID 10 drive
|
|
MegaCli -CfgSpanAdd -r10 -Array0[E:S,E:S] -Array1[E:S,E:S] -aN
|
|
Remove drive
|
|
MegaCli -CfgLdDel -Lx -aN
|
|
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
|
|
Rebuild drive start
|
|
MegaCli -PDRbld -Start -PhysDrv [E:S] -aN
|
|
Rebuild drive stop
|
|
MegaCli -PDRbld -Stop -PhysDrv [E:S] -aN
|
|
Rebuild drive progress
|
|
MegaCli -PDRbld -ShowProg -PhysDrv [E:S] -aN
|
|
Clear drive start
|
|
MegaCli -PDClear -Start -PhysDrv [E:S] -aN
|
|
Clear drive stop
|
|
MegaCli -PDClear -Stop -PhysDrv [E:S] -aN
|
|
Clear drive progress
|
|
MegaCli -PDClear -ShowProg -PhysDrv [E:S] -aN
|
|
Bad to good
|
|
MegaCli -PDMakeGood -PhysDrv[E:S] -aN
|
|
Set global hot spare
|
|
MegaCli -PDHSP -Set -PhysDrv [E:S] -aN
|
|
Remove hot spare
|
|
MegaCli -PDHSP -Rmv -PhysDrv [E:S] -aN
|
|
Set dedicated hot spare
|
|
MegaCli -PDHSP -Set -Dedicated -ArrayN,M,... -PhysDrv [E:S] -aN
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.