Veritas Storage Foundation Intelligent Storage Provisioning 5.0.1 Administrators Guide, HP-UX 11i v3, First Edition, November 2009
Reducing the size of a volume by a specified amount
The following command reduces the length of a volume by a specified amount:
# vxassist [-g diskgroup] [-f] shrinkby volume length \
[attributes...]
For example, the following command shrinks the volume vol01 by 500 MB:
# vxassist -g mydg shrinkby vol1 500m
Growing and shrinking multiple volumes
If the -M option is specified to the vxassist command, multiple volumes can be
resized in the same operation.
For convenience, it is easiest to define the volumes that are to be resized in a file,
and then have vxassist read this file to resize the volumes as shown in the
following example:
# vxassist -M growby < filename
Each line of input defines the disk group, volume and length parameters for the
resize and has the following format:
diskgroup dgname volume volume_name length
When used in scripts, the input may conveniently be taken from a “here document”
as shown in the following example:
vxassist -M shrinkto <<!!
diskgroup mydg volume vol01 10g
diskgroup mydg volume vol02 12g
!!
Setting tags on volumes
Volume tags are used to implement the Dynamic Storage Tiering feature of the
Storage Foundation software. For more information about this feature, see the
Veritas File System Administrator’s Guide.
You can use the following forms of the vxassist command to set a named tag
and optional tag value on a volume, to replace a tag, and to remove a tag from a
volume:
81Administering application volumes
Setting tags on volumes