LSI Corporation
- 395 -
12Gb/s MegaRAID SAS Software User Guide
March 2014
Appendix C: MegaCLI Commands to StorCLI Command Conversion
Battery Commands
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]
Show the security key for
secured physical drives
MegaCli -GetKeyID
[-PhysDrv[E0:S0]] -aN
storcli /cx/ex/s
x securitykey keyid
Start, stop, and show the
progress of a secure erase
operation
MegaCli -SecureErase Start[
Simple|
[Normal [ |ErasePattern
ErasePatternA|ErasePattern
ErasePatternA ErasePattern
ErasePatternB]]|[Thorough [
|ErasePattern
ErasePatternA|ErasePattern
ErasePatternA ErasePattern
ErasePatternB]]]
| Stop| ShowProg| ProgDsply
[-PhysDrv [E0:S0,E1:S1,...] |
-Lx|-L0,1,2|-LALL]
-aN|-a0,1,2|-aALL
storcli /cx[/ex]/sx start erase [simple |
normal | thorough]
[erasepatternA=<val>]\n[erasepatternB=<val
>]
Examples:
storcli /cx/ex/sx start erase simple
storcli /cx/ex/sx start erase normal
erasepatterna=10101010
storcli /cx/ex/sx start erase thorough
erasepatterna=10101010
erasepatternb=10101111
storcli /cx/ex/sx stop erase
Enable/disable the direct
physical drive mapping
mode.Show the current state of
the direct physical drive
mapping.
MegaCLI DirectPdMapping
-Enbl|-Dsbl|-Dsply
-aN|-a0,1,2|-Aall
storcli /cx set directpdmapping=<on | off>
storcli /cx show directpdmapping
Description MegaCLI Command StorCLI Command