VERITAS Volume Manager 4.1 Administrator's Guide
Creating Volumes
Creating a Volume Using vxmake
Chapter 7256
This command stacks subdisks disk00-00 and disk03-00 consecutively in
column 0, subdisks disk01-00 and disk04-00 consecutively in column 1,
and subdisks disk02-00 and disk05-00 in column 2. Offsets can also be
specified to create sparse RAID-5 plexes, as for striped plexes.
Log plexes may be created as default concatenated plexes by not
specifying a layout, for example:
# vxmake plex raidlog1 disk06-00
# vxmake plex raidlog2 disk07-00
To create a RAID-5 volume, specify the usage type to be RAID-5 using
the following command:
# vxmake -Uraid5 vol raidvol
RAID-5 plexes and RAID-5 log plexes are associated with the volume
raidvol using the following command:
# vxmake -Uraid5 vol raidvol plex=raidplex,raidlog1,raidlog2
NOTE Each RAID-5 volume has one RAID-5 plex where the data and parity are
stored. Any other plexes associated with the volume are used as RAID-5
log plexes to log information about data and parity being written to the
volume.
After creating a volume using vxmake, you must initialize it before it can
be used. The procedure is described in “Initializing and Starting a
Volume” on page 258.
Creating a Volume Using a vxmake Description File
You can use the vxmake command to add a new volume, plex or subdisk
to the set of objects managed by VxVM. vxmake adds a record for each
new object to the VxVM configuration database. You can create records
either by specifying parameters to vxmake on the command line, or by
using a file which contains plain-text descriptions of the objects. The file
can also contain commands for performing a list of tasks. Use the
following form of the command to have vxmake read the file from the
standard input:
# vxmake < description_file
Alternatively, you can specify the file to vxmake using the -d option: