Site-based allocation of storage to volumes

The vxassist command can be used to create volumes only from storage that exists at a specified site, as shown in this example:

# vxassist -g diskgroup make volume size site:site1 \
  [allsites={on|off}] [siteconsistent={on|off}]

The storage class site is used in similar way to other storage classes with the vxassist command, such as enclr, ctlr and disk.

If the Site Awareness license is installed on all the hosts in the Remote Mirror configuration, and site consistency is enabled on a volume, the vxassist command attempts to allocate storage across the sites that are registered to a disk group. If not enough storage is available at all sites, the command fails unless you also specify the allsites=off attribute.

By default, the allsites attribute is set to on for volume in a site-consistent disk group. The allsites and siteconsistent attributes must be set to off for RAID-5 volumes in a site-consistent disk group.

In a similar way to mirroring across controllers, you can also ensure that plexes are created at all sites that are registered for a disk group:

# vxassist -g diskgroup make volume size mirror=site

The allsites and siteconsistent attributes can be combined to create a non-site-consistent mirrored volume with plexes only at some of the sites:

# vxassist -g diskgroup make volume size mirror=site \
  site:site1 site:site2 ... allsites=off siteconsistent=off

a non-site-consistent mirrored volume with plexes at all of the sites:

# vxassist -g diskgroup make volume size mirror=site \
  allsites=on siteconsistent=off

a site-consistent mirrored volume with plexes only at some of the sites:

# vxassist -g diskgroup make volume size mirror=site \
  site:site1 site:site2 ... allsites=off siteconsistent=on

or a site-consistent mirrored volume with plexes at all of the sites:

# vxassist -g diskgroup make volume size mirror=site \
  allsites=on siteconsistent=on

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.

More Information

Mirroring across targets, controllers or enclosures