Veritas Storage Foundation Intelligent Storage Provisioning 5.0.1 Administrators Guide, HP-UX 11i v3, First Edition, November 2009
You can specify the length argument in sectors, kilobytes, megabytes, gigabytes
or as a percentage by adding the unit of measure as a suffix (s, m, k, g, t, p,
e or %) to the length value. If no unit is specified, sectors are assumed.
If the volume that is being resized has any linked mirror volumes, these mirror
volumes are also resized in the same operation. However, any full-sized snapshots
that have been broken-off are not resized, and new snapshots must be created.
Space-optimized instant snapshots are not affected as they are not full-sized
versions of their parent volumes.
See “About administration of instant snapshots” on page 97.
Warning: If you use vxassist to resize a volume, do not shrink it below the size
of the file system that is located on it. If you do not shrink the file system first,
you risk unrecoverable data loss. If you have a VxFS file system, shrink the file
system first, and then shrink the volume. Other file systems may require you to
back up your data so that you can later recreate the file system and restore its
data. Alternatively, you can use the vxresize command to resize both the volume
and its file system where this is supported. See the vxresize(1M) manual page
for more information.
If you use the vxassist command to resize application volumes of type fsgen or
raid5, you must specify the -f (force) option to the command. You must also
specify the -f option if growing a volume would violate any rules.
Determining the maximum size of a volume
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:
79Administering application volumes
Resizing volumes online