438

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 \

Create a volume with one mirror at each

nmirror=2

site. The value of nmirror must be greater

 

than or equal to the number of sites unless

 

allsites is set to off.

#vxassist -g ccdg -o ordered \ Create a mirrored-stripe volume specifying

make vol 2g \

allocation order to validate redundancy

layout=mirror-stripe ncol=3 \

across the sites. The named disks must be

ccdg01 ccdg02 ccdg03 ccdg09 \

tagged with the appropriate site name, and

ccdg10 ccdg11

there must be sufficient disks at each site to

 

create the volume.

#vxassist -g ccdg make vol 2g \ Create a volume with one mirror at each of

nmirror=2 mirror=site

\

the named sites. All sites must be named

site:site1 site:site2

 

and the value of nmirror must be greater

 

 

than or equal to the number of sites unless

 

 

allsites is set to off.

#vxassist -g ccdg make vol 2g \ Create a volume with one mirror on each of

nmirror=2 ccdg01 ccdg09

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 \

Create a mirrored volume that is not site

nmirror=2 siteconsistent=off \

consistent. Both mirrors can be allocated

allsites=off

from any available storage in the disk

 

group.

 

 

# vxassist -g ccdg make vol 2g \

Create a mirrored volume that is not site

nmirror=2 site:site2 \

consistent. Both mirrors are allocated from

siteconsistent=off \

any available storage in the disk group that

allsites=off

is tagged as belonging to site2.

 

 

# vxassist -g ccdg make vol 2g \

Create a mirrored volume that is not site

nmirror=2 !site:site1 \

consistent. Both mirrors are allocated from

siteconsistent=off \

any available storage in the disk group that

allsites=off

is tagged as not belonging to site1.

 

 

# vxassist -g ccdg mirror vol \

Add a mirror at a specified site. The

site:site1

command fails if there is insufficient

 

storage available at the site.

Page 437
Image 437
HP Veritas Volume Manager 5.0 -UX 11i v3 manual Examples of storage allocation using sites, Command Description