Veritas Volume Manager 5.0 Administrator's Guide (September 2006)
430 Administering sites and remote mirrors
Site-based allocation of storage to volumes
Examples of storage allocation using sites
The examples in the following table demonstrate how to use site names with the
vxassist command to allocate storage. The disk group, ccdg, has been enabled for site
consistency with disks configured at two sites, site1 and site2.
Command Description
# vxassist -g ccdg make vol 2g \
nmirror=2
Create a volume with one mirror at each site.
The value of nmirror must be a whole
multiple of the number of sites.
# vxassist -g ccdg -o ordered \
make vol 2g \
layout=mirror-stripe ncol=3 \
ccdg01 ccdg02 ccdg03 ccdg09 \
ccdg10 ccdg11
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 make vol 2g \
nmirror=2 mirror=site \
site:site1 site:site2
Create a volume with one mirror at each of the
named sites. All sites must be named and the
value of nmirror must be a whole multiple of
the number of sites unless the value of
siteconsistent is set to off for the volume.
# vxassist -g ccdg make vol 2g \
nmirror=2 ccdg01 ccdg09
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 siteconsistent=off \
allsites=off
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 site:site2 \
siteconsistent=off \
allsites=off
Create a mirrored volume that is not site
consistent. Both mirrors are allocated from any
available storage in the disk group that is tagged
as belonging to site2.
# vxassist -g ccdg make vol 2g \
nmirror=2 !site:site1 \
siteconsistent=off \
allsites=off
Create a mirrored volume that is not site
consistent. Both mirrors are allocated from any
available storage in the disk group that is tagged
as not belonging to site1.
# vxassist -g ccdg mirror vol \
site:site1
Add a mirror at a specified site. The command
fails if there is insufficient storage available at
the site.