Veritas Storage Foundation Intelligent Storage Provisioning 5.0.1 Administrators Guide, HP-UX 11i v3, First Edition, November 2009
# vxassist [-g diskgroup] [-f] growto volume length \
[attributes...]
You can use storage specification attributes with this command to restrict the
storage that is used to grow a volume.
For example, the following command expands the volume vol1 to 10 GB, but
excludes storage on controller c1 from being allocated:
# vxassist -g mydg growto vol1 10g \
use_storage=’noneof("Controller"="c1")’
This operation fails if the new length specified is smaller that the current size of
the volume.
Increasing the size of a volume by a specified amount
The following command grows a volume by a specified amount:
# vxassist [-g diskgroup] [-f] growby volume length \
[attributes...]
For example, the following command grows the volume vol1 by 1 GB by allocating
contiguous storage:
# vxassist -g mydg growby vol1 1g layout=contig
The setting layout=contig allows only contiguous regions of disk to be used for
plexes or columns. By default, the length of a volume is increased by first extending
existing subdisks in the volume if possible, and then by adding and associating
new subdisks. This default behavior corresponds to the attribute setting
layout=nocontig.
Reducing the size of a volume to a specified length
The following command reduces the length of a volume:
# vxassist [-g diskgroup] [-f] shrinkto volume length \
[attributes...]
For example, the following command shrinks the volume vol1 to 5 GB:
# vxassist -g mydg shrinkto vol1 5g
This operation fails if the new length specified is larger that the current size of
the volume.
Administering application volumes
Resizing volumes online
80