beautypg.com

Avago Technologies 3ware SAS 9750-16i4e User Manual

Page 64

background image

Chapter 2. CLI Syntax Reference

56

3ware SATA+SAS RAID Controller Card CLI Guide, Version 10.2

v0=n can be used if you only want two volumes, in which case v0=n is used
to define the size of the first volume, and the second volume uses the
remaining space. One way in which this can be useful is if you want to create
a special volume to function as a boot volume, with a separate volume for
data.

vol=a:b:c:d can be used to specify sizes for up to four volumes.

Use values that are positive integers in units of gigabytes (GB), with a
maximum of 32 TB. If you specify a size that exceeds the size of the unit, the
volume is left “uncarved.”

Both v0=n or vol=a:b:c:d work with autocarving, if that feature is enabled.
When autocarving is used, v0=n and vol=a:b:c:d are used to specify the size
of the first few volumes, after which the autocarve size is used for additional
volumes. (For more about autocarving, see “/cx set autocarve=on|off” on
page 68
and “/cx set carvesize=<1024..32768>” on page 69.)

Example of RAID 5 unit created with first volume set to 10 GB:

//localhost> /c0 add type=raid5 disk=2-5 v0=10

Creating new unit on Controller /c0 ... Done.

The new unit is /c0/u0.

Setting write cache=ON for the new unit ... Done.

Setting default Command Queuing Policy for unit /c0/u0 to [on]

... Done.

After the unit creation, a subsequent show command for the unit shows the
the volume sizes:

//localhost> /c0/u0 show

Unit UnitType Status %RCmpl %V/I/M VPort Stripe Size(GB)

--------------------------------------------------------------

u0 RAID-5 OK - - - 256K 1117.56

u0-0 DISK OK - - p2 - 372.519

u0-1 DISK OK - - p3 - 372.519

u0-2 DISK OK - - p4 - 372.519

u0-3 DISK OK - - p5 - 372.519

u0/v0 Volume - - - - - 10

u0/v1 Volume - - - - - 1107.56

Example of RAID 0 unit created with volume sizes set to 2000, 500, 1024,
and 700 GB:

The example below combines autocarving and vol=a:b:c:d. Notice that the
last volume (u0/v5) is odd-sized (247.188 GB).

Note:

If the total size of the specified volumes (up to four) exceeds the size of the

unit, the volumes that exceeded the array’s size boundary are not carved.