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.
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).
Controller information
MegaCli -AdpAllInfo -aALLEnclosure information
MegaCli -CfgDsply -aALL
MegaCli -AdpEventLog -GetEvents -f events.log -aALL && cat events.log
MegaCli -EncInfo -aALLVirtual drive information
MegaCli -LDInfo -Lall -aALLPhysical drive information
MegaCli -PDList -aALLBattery backup information
MegaCli -PDInfo -PhysDrv [E:S] -aALL
MegaCli -AdpBbuCmd -aALLController management
Silence active alarm
MegaCli -AdpSetProp AlarmSilence -aALLDisable alarm
MegaCli -AdpSetProp AlarmDsbl -aALLEnable alarm
MegaCli -AdpSetProp AlarmEnbl -aALLPhysical drive management
Set state to offline
MegaCli -PDOffline -PhysDrv [E:S] -aNSet state to online
MegaCli -PDOnline -PhysDrv [E:S] -aNMark as missing
MegaCli -PDMarkMissing -PhysDrv [E:S] -aNPrepare for removal
MegaCli -PdPrpRmv -PhysDrv [E:S] -aNReplace missing drive
MegaCli -PdReplaceMissing -PhysDrv [E:S] -ArrayN -rowN -aNThe 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 physical disk’s slot!).
Rebuild drive
MegaCli -PDRbld -Start -PhysDrv [E:S] -aNClear drive
MegaCli -PDRbld -Stop -PhysDrv [E:S] -aN
MegaCli -PDRbld -ShowProg -PhysDrv [E:S] -aN
MegaCli -PDClear -Start -PhysDrv [E:S] -aNBad to good (or back to good as I like to call it)
MegaCli -PDClear -Stop -PhysDrv [E:S] -aN
MegaCli -PDClear -ShowProg -PhysDrv [E:S] -aN
MegaCli -PDMakeGood -PhysDrv[E:S] -aNThis 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] -aNMark the drive as missing
MegaCli -PDMarkMissing -PhysDrv [E:S] -aNPrepare drive for removal
MegaCli -PDPrpRmv -PhysDrv [E:S] -aNChange/replace the drive
If you’re using hot spares then the replaced drive should become your new hot spare drive:
MegaCli -PDHSP -Set -PhysDrv [E:S] -aNIn 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 [E:S] -ArrayN -rowN -aN
MegaCli -PDRbld -Start -PhysDrv [E:S] -aN
Source: Taken from the net.
Regards
Gurudatta N.R
No comments:
Post a Comment