LSI Corporation
- 177 -
12Gb/s MegaRAID SAS Software User Guide
March 2014
Chapter 6: StorCLI
Working with the Storage Command Line Tool
The detailed description for each command follows.
NOTE In the copyback commands, cx[/ex]/sx indicates the source drive
and eid:sid indicates the target drive.
NOTE When a copyback operation is enabled, the alarm continues to beep
even after a rebuild is complete; the alarm stops beeping only when
the copyback operation is completed.
storcli /c
x[/ex]/sx pause copyback
This command pauses a copyback operation. You can run this command only when there is a copyback
operation running.
Input example:
storcli /c0/e25/s4 pause copyback
storcli /c
x[/ex]/sx resume copyback
This command resumes a paused copyback operation. You can run this command only when there is a paused
copyback process for the drive.
Input example:
storcli /c0/e25/s4 resume copyback
storcli /c
x[/ex]/sx show copyback
This command shows the progress of the copyback operation in percentage.
The estimated time (in minutes) left to complete the operation is also shown.
Input example:
storcli /c0/e25/s4 show copyback
storcli /c
x[/ex]/sx start copyback target=eid:sid
This command starts a copyback operation for a drive.
Input example:
storcli /c0/e25/s4 start copyback target=25:8?
storcli /c
x[/ex]/sx stop copyback
This command stops a copyback operation. You can run this command only on drives that have the copyback
operation running.
Input example:
storcli /c0/e25/s4 stop copyback
NOTE A stopped rebuild process cannot be resumed.
6.6.3.12 Hot Spare Drive Commands
The following commands create and delete hot spare drives:
storcli /cx[/ex]/sx add hotsparedrive
{dgs=<n|0,1,2...>}[enclaffinity][nonrevertible]
storcli /cx/[ex]/sx delete hotsparedrive