VERITAS Storage Foundation 4.1 Intelligent Storage Provisioning Administrator's Guide
Creating Multiple Volumes as a Volume Group
52 VERITAS Storage Foundation ISP Administrator’s Guide
Creating Volumes by Specifying Templates and Rules
The following command creates a striped volume using a template, and specifies a rule to ensure
that storage is allocated only from a single enclosure in a specified location:
# vxvoladm -g mydg 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:
# vxvoladm [-g diskgroup] 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:
# vxvoladm -g dbdg make Customers 15g user_template=DBTable
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 vxvoladm 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.