Veritas Storage Foundation Intelligent Storage Provisioning 5.0 Solutions Guide, HP-UX 11i v3, First Edition, May 2008
16 Volume creation solutions
Using user templates to simplify volume creation
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.
If an IT department is establishing the standards for volume provisioning, a
subject-matter expert (SME) would define the correct user template using the
ISP language to specify templates, capabilities, and rules. They would then use
the following command to add the template to the configuration:
# vxusertemplate -d
definition_file
create
To create a volume using the simplified format
1 List the ISP user templates to locate a model for creating your own volume.
# vxusertemplate list
2 Review the definitions to verify that a volume created with one does not
included unwanted characteristics.
# vxusertemplate print
usertemplate1 usertemplate2 ...
3 After finding the correct template, create a volume with the required
capacity.
# vxassist -g
diskgroup
-p
pool
make
volume
size \
user_template=
usertemplate1