LSI Corporation
- 394 -
12Gb/s MegaRAID SAS Software User Guide
March 2014
Appendix C: MegaCLI Commands to StorCLI Command Conversion
Battery Commands
C.8 Physical Drive Commands
Table 77 Physical Drive Commands
Description MegaCLI Command StorCLI Command
Show drive information. MegaCli -pdInfo
-PhysDrv[E0:S0,E1:S1,...]
-aN|-a0,1,2|-aALL
storcli /cx/ex/sx show
storcli /cx/ex/sx show all
Start, stop, pause, resume, or
show the progress of a rebuild
operation.
MegaCLI PDRbld -Start|-Stop
|-Suspend|-Resume|-ShowProg
|-ProgDsply -PhysDrv
[E0:S0,E1:S1,...]
-aN|-a0,1,2|-aALL
storcli /cx/ex/sx start rebuild
storcli /cx/ex/sx stop rebuild
storcli /cx/ex/sx pause rebuild
storcli /cx/ex/sx resume rebuild
storcli /cx/ex/sx shnow rebuild
Start, stop, pause, resume, or
show the progress of a
copyback operation.
MegaCLI PDCpyBk -Start|-Stop
|-Suspend|-Resume|-ShowProg
|-ProgDsply -PhysDrv
[E0:S0,E1:S1,...]
-aN|-a0,1,2|-aALL
storcli /cx/ex/sx start copyback target =
exx:sxx
storcli /cx/ex/sx stop copyback
storcli /cx/ex/sx pause copyback
storcli /cx/ex/sx resume copyback
storcli /c
x/ex/sx show copyback
Mark a drive as missing. MegaCli -PdMarkMissing
-physdrv[E0:S0,E1:S1,...]
-aN|-a0,1,2|-aALL
storcli /cx/ex/sx set missing
Show missing drive information. MegaCli -PdGetMissing
-aN|-a0,1,2|-aALL
storcli /cx/ex/sx show all
NOTE This information is shown as part of the show all
command.
Replace the configured drive
that is identified as missing, and
then start an automatic rebuild.
MegaCli -PdReplaceMissing
-physdrv[E0:S0] -arrayA, -rowB
-aN
storcli /cx/ex/sx insert array=x row=y
Set the drive state to online MegaCli –PDOnline
-PhysDrv[E0:S0,E1:S1....]
-aN|-a0,1,2
storcli /cx/ex/sx set online
Set the drive state to offline. MegaCli –PDOffline
-PhysDrv[E0:S0,E1:S1....]
-aN|-a0,1,2|-aALL
storcli /cx/ex/sx set offline
Set the drive state to JBOD MegaCli –PDMakeGood
-PhysDrv[E0:S0,E1:S1....]
-aN|-a0,1,2|-aALL
storcli /cx/ex/sx set good [force]
Set the drive state to JBOD MegaCli -PDMakeJBOD
-PhysDrv[E0:S0,E1:S1,...]
-aN|-a0,1,2|-aALL
storcli /cx/ex/sx set jbod
Add and delete hot spare drives. MegaCli –PDHSP {–Set
[{-Dedicated -ArrayN
|-Array0,1...}] [-EnclAffinity]
[-nonRevertible] } | -Rmv
-PhysDrv[E0:S0,E1:S1,...]
-aN|-a0,1,2|-aALL
storcli /cx/ex/sx add hotsparedrive
[dgs=<N|0,1,2..>] enclaffinity
nonrevertible
storcli /cx/ex/sx delete hotsparedrive
Start, stop, pause, resume or
show the progress of an
initialization process.
MegaCli –PDClear -Start |-Stop|
-ShowProg |-ProgDsply -
PhysDrv[E0:S0,E1:S1....]
-aN|-a0,1,2|-aALL
storcli /cx/ex/sx start initialization
storcli /cx/ex/sx stop initialization
storcli /cx/ex/sx pause initialization
storcli /cx/ex/sx resume initialization
storcli /cx/ex/sx show initialization