Veritas Storage Foundation Intelligent Storage Provisioning 5.0.1 Solutions Guide, HP-UX 11i v3, First Edition, November 2009
# vxassist -g dbdg settag customers db_table=Customers
Creating multiple volumes
The ISP language can also be used to define groups of volumes (volume groups)
that are to be created in a single operation. If insufficient storage is available to
the storage pool to fulfill the specified requirements, the operation fails and no
volumes are created. Volume groups can also be used to enforce the separation
of roles between the volumes that are defined. For example, separation of database
data files, index files and logs could be enforced in this manner. However, it is
important to understand that this separation does not extend to any other volumes,
such as those created subsequently for the database.
The following example volume group definition is for four 10-gigabyte volumes
with the prefix name mirvol in the disk group dg1. The rules state that the mirrors
in each volume should be allocated on separate enclosures, and that enclosure
ENC1 should not be used at all.
volumegroup {
diskgroup "dg1"
rules {
separateby "Enclosure"
exclude "Enclosure"="ENC1"
}
volume "mirvol" 10g {
nvol 4
capability ’DataMirroring(nmirs=2)’
}
};
After saving the definition to a file, you can have vxassist read it to create the
volumes as shown here:
# vxassist -M make < filename
The first time that this command is run, four volumes named mirvol1 through
mirvol4 are created (assuming that none of these already exist). If the command
is run again, the additional volumes are named mirvol5 through mirvol8.
Using user templates to simplify volume creation
You can use a user template to create consistent volumes with minimal input to
avoid maintaining a library of vxassist scripts.
Volume creation solutions
Creating multiple volumes
20