LSI Corporation
- 178 -
12Gb/s MegaRAID SAS Software User Guide
March 2014
Chapter 6: StorCLI
Working with the Storage Command Line Tool
NOTE If enclosures are used to connect the physical drives to the controller,
specify the enclosure ID in the command.
The detailed description for each command follows.
storcli /c
x[/ex]/sx add hotsparedrive [{dgs=<n|0,1,2...>}] [enclaffinity][nonrevertible]
This command creates a hot spare drive. You can use the following options to create a hot spare drive:
Table 46 Add Hotsparedrive Input Options
Input example:
storcli /c0/e3/s4,5 add hotsparedrive
This command sets the drives /c0/e3/s4,5 as Global Hot spare.
Input example:
storcli /c0/e3/s6,8 add hotsparedrive dgs=0,1
This command sets /c0/e3/s6,8 as Dedicated Hot spare for disk groups 0,1.
storcli /c
x/[ex]/sx delete hotsparedrive
This command deletes a hot spare drive.
Input example:
storcli /c0/e3/s4,5 delete hotsparedrive
6.6.4 Virtual Drive Commands
The Storage Command Line Tool supports the following virtual drive commands. The following table describes
frequently used virtual drive commands.
Table 47 Virtual Drives Commands Quick Reference Table
6.6.4.1 Add Virtual Drives Commands
The Storage Command Line Tool supports the following commands to add virtual drives:
Option Value Range Description
dgs Valid drive group number Specifies the drive group to which the hot spare drive is
dedicated.
enclaffinity Valid enclosure number Specifies the enclosure with which the hot spare is
associated. If this option is specified, affinity is set; if it is
not specified, there is no affinity.
NOTE Affinity cannot be removed after it is set for a hot
spare drive.
nonrevertible — Sets the drive as a nonrevertible hot spare.
Commands Value Range Description
add See Table 48and Table 49 Creates virtual drives.
delete cc or cachecade: Deletes CacheCade virtual drives.
force: Deletes the virtual drive where operating system is present.
Deletes a virtual drive.
set See Table 48, Table 49, and Change Virtual Properties Commands Sets virtual drive properties.
show all: Shows all properties of the virtual drive.
cc: Shows properties of CacheCade virtual drives.
See Virtual Drive Show Commands.
Shows virtual drive information.