10 rebuild drives commands – Avago Technologies MegaRAID SAS 9240-4i User Manual
Page 27

LSI Corporation
- 27 -
StorCLI Reference Manual
January 2013
Chapter 4: Working with the Storage Command Line Tool
Drive Commands
storcli /cx[/ex]/sx start erase [simple|normal|thorough] [erasepatternA=<val1>] [erasepatternB=<val2>]
This command securely erases non-SED drives. The drive is written with erase patterns to ensure that the data is
securely erased. You can use the following options with the start erase command:
Input example:
storcli /c0/e25/s1 start erase thorough erasepatternA=10010011
erasepatternB=11110000
4.3.10
Rebuild Drives Commands
The following commands rebuild drives in the Storage Command Line Tool:
storcli /cx[/ex]/sx pause rebuild
storcli /cx[/ex]/sx resume rebuild
storcli /cx[/ex]/sx show rebuild
storcli /cx[/ex]/sx start rebuild
storcli /cx[/ex]/sx stop rebuild
The detailed description for each command follows.
storcli /cx[/ex]/sx pause rebuild
This command pauses an ongoing rebuild process. You can run this command only for a drive that is currently rebuilt.
Input example:
storcli /c0/s4 pause rebuild
storcli /cx[/ex]/sx resume rebuild
This command resumes a paused rebuild process. You can run this command only when a paused rebuild process for
the drive exists.
Input example:
storcli /c0/s4 resume rebuild
storcli /cx[/ex]/sx show rebuild
This command shows the progress of the rebuild process in percentage.
Input example:
storcli /c0/s5 show rebuild
Table 11 Drive Erase Command Options
Options
Value Range
Description
erase
simple: Single pass, single pattern write
normal: Three pass, three pattern write
thorough: Nine pass, repeats the normal write 3 times
Secure erase type.
erasepatternA
8-bit value
Erase pattern A to overwrite the data.
erasepatternB
8-bit value
Erase pattern B to overwrite the data.
NOTE If enclosures are used to connect physical drives to the controller, specify the enclosure ID in
the command.
- MegaRAID SAS 9240-8i MegaRAID SAS 9260-16i MegaRAID SAS 9260-4i MegaRAID SAS 9260-8i MegaRAID SAS 9261-8i MegaRAID SAS 9266-4i MegaRAID SAS 9266-8i MegaRAID SAS 9270-8i MegaRAID SAS 9271-4i MegaRAID SAS 9271-8i MegaRAID SAS 9271-8iCC MegaRAID SAS 9280-16i4e MegaRAID SAS 9280-24i4e MegaRAID SAS 9280-4i4e MegaRAID SAS 9280-8e MegaRAID SAS 9286-8e MegaRAID SAS 9286CV-8e MegaRAID SAS 9286CV-8eCC MegaRAID SAS 9285-8ecv