Examples of storage allocation by specifying sites

Table: Examples of storage allocation by specifying sites 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: Examples of storage allocation by specifying sites

Command

Description

# vxassist -g ccdg make vol 2g \
  nmirror=2

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 -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 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.

# vxassist -g ccdg remove \
  mirror vol site:site1

Remove a mirror from a volume at a specified site. If the volume is site consistent, the command fails if this would remove the last remaining plex at a site.

# vxassist -g ccdg growto vol 4g

Grow a volume. If the volume is site consistent, the command fails if there is insufficient storage available at each site.