Veritas Volume Manager 5.1 SP1 Administrator"s Guide (5900-1506, April 2011)

# vxassist [-g diskgroup] settag volume|vset tagname[=tagvalue]
# vxassist [-g diskgroup] replacetag volume|vset oldtag newtag
# vxassist [-g diskgroup] removetag volume|vset tagname
To list the tags that are associated with a volume, use the following command:
# vxassist [-g diskgroup] listtag [volume|vset]
If you do not specify a volume name, all the volumes and vsets in the disk group
are displayed. The acronym vt in the TY field indicates a vset.
The following is a sample listtag command:
# vxassist -g dg1 listtag vol
To list the volumes that have a specified tag name, use the following command:
# vxassist [-g diskgroup] list tag=tagname volume
Tag names and tag values are case-sensitive character strings of up to 256
characters. Tag names can consist of the following ASCII characters:
Letters (A through Z and a through z)
Numbers (0 through 9)
Dashes (-)
Underscores (_)
Periods (.)
A tag name must start with either a letter or an underscore.
Tag values can consist of any ASCII character that has a decimal value from 32
through 127. If a tag value includes spaces, quote the specification to protect it
from the shell, as follows:
# vxassist -g mydg settag myvol "dbvol=table space 1"
The list operation understands dotted tag hierarchies. For example, the listing
for tag=a.b includes all volumes that have tag names starting with a.b.
The tag names site, udid, and vdid are reserved. Do not use them. To avoid
possible clashes with future product features, do not start tag names with any of
the following strings: asl, be, nbu, sf, symc, or vx.
369Administering volumes
Setting tags on volumes