Veritas Storage Foundation Intelligent Storage Provisioning 5.0 Solutions Guide, HP-UX 11i v3, First Edition, May 2008
15Volume creation solutions
Creating tagged volumes
This sets the attribute tag Room on the disks (mydg01 through mydg08) with
values that represent the physical location (room1 or room2).
The following command uses the new attribute tag to create a mirrored volume
that tolerates the failure of a single enclosure, where each enclosure is in a
different room. This avoids single point of failure and ensures greater
reliability.
# vxassist -g mydg -P mypool make mirvol 10g \
capability=’DataMirroring’ \
rules=’separateby "Room","Enclosure"’
Creating tagged volumes
Volume tags allow volumes to be used in conjunction with the Dynamic Storage
Tiering and Remote Mirror features of the Storage Foundation software.
Volumes can be assigned tag names and optional tag values, either when the
volume is created, or at a later time.
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.
You can use the vxassist settag command to set a named tag and optional tag
value on a volume as shown in this example:
# vxassist -g dbdg settag customers db_table=Customers
Creating multiple volumes
The ISP language can also be used to define groups of volumes (volume groups)
that are to be created in a single operation. If insufficient storage is available to
the storage pool to fulfill the specified requirements, the operation fails and no
volumes are created. Volume groups can also be used to enforce the separation
of roles between the volumes that are defined. For example, you can separate
database data files, index files and logs into volume groups. However, it is
important to understand that this separation does not extend to any other
volumes, such as those that you create subsequently for the database.
One or more volume groups may be defined in a file which is used as input to the
vxvoladm -M make command. The disk group, rules, and volume parameters are
specified at the volume group level.
The following example volume group definition is for four 10-gigabyte volumes
with the prefix name mirvol in the disk group dg1. The rules state that the