beautypg.com

Avago Technologies MegaRAID SAS 9240-4i User Manual

Page 73

background image

LSI Corporation

- 73 -

StorCLI Reference Manual

January 2013

Appendix B: MegaCLI Commands to StorCLI Command Conversion

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=] 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

Start a drive locate and activate the
drive’s LED or stop a drive locate and
deactivate the drive’s LED.

MegaCli –PDLocate {[-start] |

-stop} -physdrv[E0:S0,E1:S1,...]
-aN|-a0,1,2|-aALL

storcli /cx/ex/sx start locate

storcli /cx/ex/sx stop locate

Spin down an unconfigured drive
and prepare it for removal or spin up
spun-down drive and mark the drive
state as unconfigured good.

MegaCli –PDPrpRmv [-Undo]

– PhysDrv[E0:S0,E1:S1....]

-aN|-a0,1,2|-aALL

storcli /cx/ex/sx spindown

storcli /cx/ex/sx spinup.

Show physical drive information of all
connected drives.

MegaCli –PDList
-aN|-a0,1..|-aAll

storcli /cx/eall/sall show [all]

NOTE This command does not show drives whose
enclosure device ID is not available.

Flash the physical drive firmware.

MegaCLI PdFwDownload[offline]

[ForceActivate] {[-SataBridge]
-PhysDrv[0:1]}|{-EncdevId[devId1
]} -f <filename>
-aN|-a0,1,2|-Aall

storcli /cx[/ex]/sx download
src=<filepath> [satabridge]

storcli /cx/ex download src=<filepath>
[forceActivate]

Erase the drive's security
configuration and securely erase data
on a drive.

MegaCli -PDInstantSecureErase
-PhysDrv[E0:S0,E1:S1,...] |
[-Force] -aN|-a0,1,2|-aALL

storcli /cx/ex/sx secureerase [force]

Table 20 Physical Drive Commands (Continued)

Description

MegaCLI Command

StorCLI Command