Document

StorCLI Command Line Tool
The Storage Command Line Tool (StorCLI) is the command line management software adapted from legacy 3Ware and LSI*
MegaCLI for the Intel® RAID product line. The Storage Command Line Tool allows for the same features described in the
Intel RAID Web Console 2 section above to be implemented albeit without the Graphical User Interface. The StorCLI is a
command line interface that is designed to be easy to use, consistent, and easy to script.
A complex StorCLI command along with the parameter descriptions is shown below in order to help convey the powerful
capabilities of this tool.
Add Virtual Drives Commands
The Storage Command Line Tool supports the following commands
to add virtual drives:
storcli /cx add vd type=raid[0|1|5|6|10|50|60][Size=<VD1_Sz>,<VD2_Sz>,..|*all]
[name=<VDNAME1>,..] drives=e:s|e:s-x|e:s-x,y;e:s-x,y,z [PDperArray=x][SED]
[pdcache=on|off|*default][pi] [DimmerSwitch(ds)=default|automatic(auto)|
*none|maximum(max)|MaximumWithoutCaching(maxnocache)][cachevd]
[wt|*wb] [nora|*ra] [*direct|cached] [CachedBadBBU|*NoCachedBadBBU]
[Strip=<8|16|32|64|128|256|1024>] [AfterVd=X] [Spares = [e:]s|[e:]s-x|[e:]s-x,y]
[force]
storcli /cx add vd each type=raid0 [name=<VDNAME1>,..] [drives=e:s|e:s-x|e:s-x,y]
[SED] [pdcache=on|off|*default][pi] [DimmerSwitch(ds)=default|automatic(auto)|
*none|maximum(max)|MaximumWithoutCaching(maxnocache)] [wt|*wb] [nora|*ra]
[*direct|cached] [CachedBadBBU|*NoCachedBadBBU][Strip=<8|16|32|64|128|256|1024]
storcli /cx add VD cachecade|cc Type = raid[0,1,10] drives =
[e:]s|[e:]s-x|[e:]s-x,y [WT| WB [assignvds = 0,1,2
This command creates a RAID conguration. You can use the
following options to create the RAID volume:
NOTE * indicates default values.
The detailed description for each command follows.
storcli /cx add vd type=raid[0|1|5|6|10|50|60][Size=<VD1_Sz>,<VD2_Sz>,..|*all]
[name=<VDNAME1>,..]
drives=e:s|e:s-x|e:s-x,y;e:s-x,y,z [PDperArray=x][SED] [pdcache=on|off|*default][pi]
[DimmerSwitch(ds)=default|automatic(auto)|
*none|maximum(max)|MaximumWithoutCaching(maxnocache)][cachevd]
[wt|*wb] [nora|*ra] [*direct|cached] [CachedBadBBU|*NoCachedBadBBU]
[Strip=<8|16|32|64|128|256|1024>]
[AfterVd=X] [Spares = [e:]s|[e:]s-x|[e:]s-x,y] [force]
Input example:
storcli /c0 add vd type=raid10 size=2gb,3gb,4gb names=tmp1,tmp2,tmp3
drives=252:2-3,5,7 pdperarray=2
storcli /cx add vd cc|cachecade type=[0,1,10] drives=[e:]s|[e:]s-x|[e:]s-x,y [[wt|*wb] ]
[assignvds=0,1,2]
This command creates CacheCade virtual drives and associates
existing virtual drives to CacheCade virtual drives. You can use the
following options to create the CacheCade virtual drive.
Input example:
storcli /c0 add vd type=raid10 size=2gb,3gb,4gb names=tmp1,tmp2,tmp3
drives=252:2-3, 7
Option Value Range Description
type
RAID [0|1|5|6|10|50|60]. Sets the RAID type of the configuration.
size
Maximum size based on the physical
drives and RAID level.
Sets the size of each virtual drive. The
default value is for the capacity of all
referenced disks.
name
15 characters of length. Specifies the drive name for each
virtual drive.
drives
Valid enclosure number and valid slot
numbers for the enclosure.
In e:s|e:s-x|e:s-x,y:
e specifies the enclosure ID.
s represents the slot in the enclosure.
e:s-x is the range convention used to
represent slots s to x in the enclosure e.
pdperarray
0 to 15. Specifies the number of physical drives
per array.
The default value is automatically
chosen.
sed
- Creates security-enabled drives.
pdcache
on|off|default. Enables or disables PD cache.
pi
- Enables protection information.
dimmerswitch
default: Logical device uses controller
default power-saving policy.
automatic (auto): Logical device power
savings are managed by firmware.
none: No power-saving policy.
maximum (max): Logical device uses
maximum
power savings.
MaximumWithoutCaching
(maxnocache): Logical device does
not cache
write to maximize power savings.
Specifies the power-saving policy.
Sets to default automatically.
direct | cached
cached: Cached I/O.
direct: Direct I/O.
Sets the logical drive cache policy.
Direct I/O is the default.
wt | wb
wt: Write through.
wb: Write back.
Enables write through.
Write back is the default.
nora | ra
ra: Read ahead.
nora: No read ahead.
Disables read ahead.
Enabled is the default.
cachedbadbbu |
nocachedbadbbu
cachedbadbbu: Enable bad BBU
caching.
nocachedbadbbu: Disable bad BBU
caching.
Enables caching when BBU is not
functioning.
Disabled is the default.
cachevd
- Enables SSD caching on the created
virtual drive.
strip
8, 16, 32, 64, 128, 256, 512, 1024. Sets the strip size for the RAID
configuration.
aftervd
Valid virtual drive number. Creates the VD in the adjacent free slot
next to the specified VD.
spares
Number of spare physical drives
present.
Specifies the physical drives that are to
be assigned to a disk group for spares.
force
- Forces a security-capable physical drive
to be added to a drive group without
security.
Option Value Range Description
cachecade
- Creates a CacheCade virtual drive.
type
0, 1, 10 Sets the RAID type of the Cache-
Cade virtual drive.
drives
Valid enclosure number and valid
slot number
See the drives row in the previous
table for format.
wt | wb
wt: Enables write through.
wb: Enables write back.
Enables or disables write cache.
assignvds
Valid virtual drive number (0
to 63)
Specifies the list of virtual drives
associated with the new Cache-
Cade virtual drives.