Veritas Volume Manager 5.0 Administrator's Guide (September 2006)
244 Creating volumes
Creating a striped volume
For example, to create a mirrored 10GB volume, vol02, with two log plexes in the disk
group, mydg, use the following command:
# vxassist -g mydg make vol02 10g layout=mirror logtype=drl \
nlog=2 nmirror=2
Sequential DRL limits the number of dirty regions for volumes that are written to
sequentially, such as database replay logs. To enable sequential DRL on a volume that is
created within a disk group with a version number between 70 and 100, specify the
logtype=drlseq attribute to the vxassist make command.
# vxassist [-g diskgroup] make volume length layout=layout \
logtype=drlseq [nlog=n] [other attributes]
Note: If you also want to allow the use of Persistent FastResync with the volume, use the
procedure described in “Creating a volume with a version 0 DCO volume” on page 241.
Creating a striped volume
Note: You need a full license to use this feature.
A striped volume contains at least one plex that consists of two or more subdisks located
on two or more physical disks. For more information on striping, see “Striping (RAID-0)”
on page 38.
Note: A striped volume requires space to be available on at least as many disks in the disk
group as the number of columns in the volume.
To create a striped volume, use the following command:
# vxassist [-b] [-g diskgroup] make volume length layout=stripe
For example, to create the 10-gigabyte striped volume volzebra, in the disk group,
mydg, use the following command:
# vxassist -b -g mydg make volzebra 10g layout=stripe
This creates a striped volume with the default stripe unit size (64 kilobytes) and the default
number of stripes (2).
You can specify the disks on which the volumes are to be created by including the disk
names on the command line. For example, to create a 30-gigabyte striped volume on three
specific disks, mydg03, mydg04, and mydg05, use the following command:
# vxassist -b -g mydg make stripevol 30g layout=stripe \
mydg03 mydg04 mydg05
To change the number of columns or the stripe width, use the ncolumn and stripeunit
modifiers with
vxassist. For example, the following command creates a striped volume
with 5 columns and a 32-kilobyte stripe size: