Chapter 2. CLI Syntax Reference
66
3ware Serial ATA RAID Controller CLI Guide
/c
x
/u
x
del
[noscan] [quiet]
This command allows you to delete a unit. Deleting a unit not only removes
the specified unit from the controller's list of managed units, but also destroys
the DCB (Disk Configuration Block) metadata. After deleting a unit, ports (or
disks) associated with the unit will be part of the free pool of managed disks.
noscan
is used to not inform the operating system of this change. The default
is to inform the operating system.
quiet
is used for non-interactive mode. No confirmation is given and the
command is executed immediately. This is useful for scripting purposes.
Example of interactive mode:
//localhost> /c0/u0 del
Deleting /c0/u0 will cause the data on the unit to be
permanently lost.
Do you want to continue ? Y|N [N]:
/c
x
/u
x
start rebuild disk=
p<p:-p...>
[ignoreECC]
This command allows you to rebuild a degraded unit using the specified
disk=p
. Rebuild only applies to redundant arrays such as RAID 1, RAID 5,
RAID 6, RAID 10, and RAID 50.
During rebuild, bad sectors on the source disk will cause the rebuild to fail.
RAID 6 arrays are less susceptible to failing since two copies of the data exist.
You can allow the operation to continue by using
ignoreECC
.
The rebuild process is a background task and will change the state of a unit to
REBUILDING. Various show commands also show the percent completion as
rebuilding progresses.
Note that the disk used to rebuild a unit (specified with
disk=p
) must be a
SPARE or a unconfigured disk. You must first remove the degraded drive(s)
before starting the rebuild. Refer to the command “/cx/px remove [noscan]
[quiet]” on page 81 for details. Also refer to the command “/cx rescan
[noscan]” on page 43 to add new drives or to retry the original drive.
If you are rebuilding a RAID 50, RAID 6, or RAID 10 unit, multiple drives
can be specified if more than one sub-array is degraded.
When you issue this command, the specified rebuild will begin if schedules
are disabled; otherwise it will pause until the next scheduled rebuild. A file
system check is recommended following rebuild when using the ignoreECC
option.
Warning:
This is a destructive command and should be used with care. All data on
the specified unit will be lost after executing this command.