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

71Creating application volumes
Creating volumes with associated tags
Creating volumes with associated tags
Volume tags are used to implement the Dynamical Storage Tiering (DST) feature
of the Storage Foundation software. For more information about this feature,
see the Veritas File System Administrator’s Guide.
To create a volume with an associated tag and optional tag value, specify the
tag
attribute as shown in this example:
# vxassist -g dbdg -P dgpool make products 1g \
user_template=DBTable tag=db_table=Products
This creates a volume with a tag named db_table, which has the value
Products.
Creating multiple volumes with the same prefix
To create multiple volumes with the same name prefix, specify a numeric
argument to the nvol parameter, as shown in this example:
# vxassist -g mydg -P mypool make mirvol 15g \
layout=mirror nmir=2 nvol=3
This creates three mirrored volumes named mirvol1, mirvol2 and mirvol3.
If volumes with the same name prefix and numeric suffix already exist, the
numbering of the new volumes continues from the highest number found plus 1.
For example, if there are existing volumes named mirvol1 and mirvol2, the
new volumes are named mirvol3, mirvol4 and mirvol5.
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
vxassist
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.
For convenience, it is easiest to define one or more volume groups in a definition
file, and have
vxassist read this file to create the volumes as shown here:
# vxassist -M make <
filename
See “Volume group definition syntax” on page 197.
A sample definition might contain the following volumegroup entry:
volumegroup {
diskgroup "mydg"
rules {
separateby "Enclosure"
exclude "Enclosure"="ENC1"