Veritas Volume Manager 5.0.1 Administrator's Guide, HP-UX 11i v3, First Edition, November 2009

Specifying the number of mirrors ensures that each mirror is created on a different
site:
# vxassist -g diskgroup make volume size mirror=site \
nmirror=2 site:site1 site:site2 [allsites={on|off}] \
[siteconsistent={on|off}]
If a volume is intended to be site consistent, the number of mirrors that are
specified must be equal to the number of sites.
Examples of storage allocation by specifying sites
Table 14-1 shows examples of how to use sites with the vxassist command to
allocate storage. These examples assume that the disk group, ccdg, has been
enabled for site consistency with disks configured at two sites, site1 and site2.
Table 14-1
Examples of storage allocation by specifying sites
DescriptionCommand
Create a volume with one mirror at
each site. The nmirror keyword is
optional. If the nmirror keyword is
specified, it must equal the number
of sites.
# vxassist -g ccdg make vol 2g \
nmirror=2
Create a mirrored-stripe volume
specifying allocation order to validate
redundancy across the sites. The
named disks must be tagged with the
appropriate site name, and there
must be sufficient disks at each site
to create the volume.
# vxassist -g ccdg -o ordered \
make vol 2g \
layout=mirror-stripe ncol=3 \
ccdg01 ccdg02 ccdg03 ccdg09 \
ccdg10 ccdg11
Create a volume with one mirror on
each of the named disks. The named
disks must be tagged with the
appropriate site name, and there
must be sufficient disks at each site
to create the volume.
# vxassist -g ccdg make vol 2g \
nmirror=2 ccdg01 ccdg09
Create a mirrored volume that is not
site consistent. Both mirrors can be
allocated from any available storage
in the disk group.
# vxassist -g ccdg make vol 2g \
nmirror=2 siteconsistent=off \
allsites=off
Administering sites and remote mirrors
Site-based allocation of storage to volumes
498