Veritas Storage Foundation Intelligent Storage Provisioning 5.0 AdministratorÆs Guide, HP-UX 11i v3, First Edition, May 2008
77Administering application volumes
Resizing volumes online
Determining the maximum size of a volume
You can use the following command to determine by how much you can grow a
volume using the available storage:
# vxassist [-g
diskgroup
] maxgrow
volume
[
attributes
...]
You can use storage specification attributes with this command to restrict the
storage that is taken into consideration by the calculation. For example, the
following command specifies that any JBOD storage may be used to resize
volume, vol02:
# vxassist -g mydg maxgrow vol02 \
use_storage=’allof("Enclosure"="Disk")’
Increasing the size of a volume to a specified length
The following command grows a volume to a specified length:
# 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 gigabytes, 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 gigabyte 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.