VERITAS Volume Manager 3.5 Administrator's Guide (September 2002)

Creating a Volume Using vxmake
178 VERITAS Volume Manager Administrator’s Guide
For example,the following command createsa 3-column RAID-5 volumewith the default
stripe unitsize on disks disk04,disk05 and disk06. Italso creates twoRAID-5 logs on
disks disk07 and disk08.
# vxassist -b make volraid 10g layout=raid5 ncol=3 nlog=2 \
logdisk=disk07,disk08 disk04 disk05 disk06
Note The number of logs must equal the number of disks specified to logdisk.
For more information about ordered allocation, see “Specifying Ordered Allocation of
Storage to Volumes” on page 167 and the vxassist(1M) manual page.
If you need to add more logs to a RAID-5 volume at a later date, follow the procedure
described in “Adding a RAID-5 Log” on page 198.
Creating a Volume Using vxmake
As an alternative to using vxassist, you can create a volume using the vxmake
command to arrange existing subdisks into plexes, and then to form these plexes into a
volume. Subdisks can be created using the method described in “Creating Subdisks” on
page 139. The example given in this section is to create a RAID-5 volume using vxmake.
Creating a RAID-5 plex for a RAID-5 volume is similar to creating striped plexes, except
that the layout attribute is set to raid5. Subdisks can be implicitly associated in the
same way aswith stripedplexes. For example,to createa four-columnRAID-5 plexwith a
stripe unit size of 32 sectors, use the following command:
# vxmake plex raidplex layout=raid5 stwidth=32 \
sd=disk00-01,disk01-00,disk02-00,disk03-00
Note that because four subdisks are specified, but the number of columns is not specified,
the vxmake command assumes a four-column RAID-5 plex and places one subdisk in
each column. Striped plexes are created using the same method except that the layout is
specified as stripe. If the subdisks are to be created and added later, use the following
command to create the plex:
# vxmake plex raidplex layout=raid5 ncolumn=4 stwidth=32
Note If no subdisks are specified, the ncolumn attribute must be specified. Subdisks can
be added to the plex later using the vxsd assoc command (see “Associating
Subdisks with Plexes” on page 142).