Veritas Storage Foundation Intelligent Storage Provisioning 5.0.1 Administrators Guide, HP-UX 11i v3, First Edition, November 2009
This creates three mirrored volumes named mirvol1, mirvol2 and mirvol3. If
volumes with the same name prefix and numeric suffix already exist, the
numbering of the new volumes continues from the highest number found plus 1.
For example, if there are existing volumes named mirvol1 and mirvol2, the new
volumes are named mirvol3, mirvol4 and mirvol5.
Creating multiple volumes as a volume group
If you choose to create volumes individually, allocation may eventually fail when
the available storage is exhausted. The -M option to the vxassist command allows
you to create several volumes at the same time while making the most efficient
use of the available storage resources. ISP automatically chooses the best way to
allocate storage to the volumes. A set of multiple volumes that are created by this
method is referred to as a volume group.
For convenience, it is easiest to define one or more volume groups in a definition
file, and have vxassist read this file to create the volumes as shown in the
following command:
# vxassist -M make < filename
See “About the syntax of volume group definition” on page 209.
A sample definition might contain the following volumegroup entry:
volumegroup {
diskgroup "mydg"
rules {
separateby "Enclosure"
exclude "Enclosure"="ENC1"
}
volume "mirvol1" 10g {
capability ’DataMirroring(nmirs=2)’
}
volume "mirvol2" 10g {
capability ’DataMirroring(nmirs=2)’
}
volume "mirvol3" 10g {
capability ’DataMirroring(nmirs=2)’
}
};
This specifies three 10 GB mirrored volumes in the disk group, mydg, with the data
mirrors placed on separate enclosures, but excluding enclosure, ENC1.
73Creating application volumes
Creating multiple volumes as a volume group