Veritas Storage Foundation Intelligent Storage Provisioning 5.0.1 Administrators Guide, HP-UX 11i v3, First Edition, November 2009

The following vxtemplate print command is then run to examine the definition
of the PrefabricatedRaid5 volume template:
# vxtemplate -g mydg print PrefabricatedRaid5
volume_template PrefabricatedRaid5 {
provides PrefabricatedRaid5
rules {
apply ArrayProductId
confineto "Parity" ="1"
}
};
The apply rule in the listing shows that the PrefabricatedRaid5 template depends
on the ArrayProductId template.
If the ArrayProductId template does not depend on any other templates, the
vxassist make command should be modified to list ArrayProductId in addition
to PrefabricatedRaid5, as shown in the following command:
# vxassist -g mydg -P mypool make myvol 1g \
volume_template=PrefabricatedRaid5,ArrayProductId
Creating volumes by specifying templates and rules
The following command creates a striped volume by using a template, and specifies
a rule to ensure that storage is allocated only from a single enclosure in a specified
location:
# vxassist -g mydg -P mypool make strvol 1g \
volume_template=’Striping’ \
rules=’confineto eachof("Enclosure","Room"="Room2")’
If you use a volume template to create a volume, and do not specify any capabilities,
the values of all the variables that are used in the volume template are taken from
the default values defined in the capability. An error is returned if such a variable
does not have a default value.
Creating volumes by specifying templates and capabilities
If you specify templates in addition to capabilities when creating a volume, this
restricts ISP to choosing from the specified templates.
The following example shows how to specify both capabilities and templates:
71Creating application volumes
Creating volumes