Veritas Storage Foundation Intelligent Storage Provisioning 5.0 AdministratorÆs Guide, HP-UX 11i v3, First Edition, May 2008

70 Creating application volumes
Creating volumes
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:
# 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")’
Note: 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:
# vxassist [-g
diskgroup
] [-P
storage_pool
] make
volume
length
\
capability=’
capability
[,
capability
...]’ \
volume_template=
template
[,
template
...]
If you specify rules in addition to capabilities and templates, these rules are
applied after ISP has selected the templates that satisfy the required
capabilities.
Creating volumes by specifying user templates
Once you have set them up, user templates provide the simplest way of creating
volumes for use with the applications that you run. For example, you can
configure user templates that ensure that volumes that you create to store
database tables all share the same reliability and performance capabilities, and
that they are allocated from a restricted set of storage. The following example
shows how you might use a user template to create a volume for a database
table:
# vxassist -g dbdg -P dgpool make Customers 15g \
user_template=DBTable