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
.
See Mirroring across targets, controllers or enclosures.
Note
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=onsiteconsistent
=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=onsiteconsistent
=on
Specifying the number of mirrors ensures that there are a minimum of 2 plexes at each site:
# vxassist -g
diskgroup
make
volume
size
mirror=site \
nmirror=4 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 a multiple of the number of sites.