Veritas Storage Foundation Intelligent Storage Provisioning 5.0.1 Solutions Guide, HP-UX 11i v3, First Edition, November 2009
■ Physical location, such as rack number, frame number, floor, building, or site
■ Hardware RAID configuration
■ Failover properties
■ Performance properties
■ Cost per gigabyte
You can use disk tags to create storage attributes in addition to those that are
intrinsically associated with the disk hardware, and which are automatically
discovered or assigned by VxVM. Disk tags are administered by using the vxdisk
command or the VEA graphical user interface. For example, the vxdisk settag
command can been used to assign tags and optional values to each disk:
# vxdisk -g mydg settag Room=room1 mydg01 mydg02 mydg03 mydg04
# vxdisk -g mydg settag Room=room2 mydg05 mydg06 mydg07 mydg08
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:
19Volume creation solutions
Creating tagged volumes