Veritas Volume Manager 5.0.1 Administrator's Guide, HP-UX 11i v3, First Edition, November 2009

Note: When you remove a log and it leaves less than two valid logs on the volume,
a warning is printed and the operation is stopped. You can force the operation by
specifying the -f option with vxplex or vxassist.
Resizing a volume
Resizing a volume changes its size. For example, if a volume is too small for the
amount of data it needs to store, you can increase its length . To resize a volume,
use one of the following commands: vxresize (preferred), vxassist, or vxvol.
You can also use the graphical Veritas Enterprise Administrator (VEA) to resize
volumes.
If you increase a volume's size, the vxassist command automatically locates
available disk space. The vxresize command lets you optionally specify the LUNs
or disks to use to increase the size of a volume. The vxvol command requires that
you have previously ensured that there is sufficient space available in the plexes
of the volume to increase its size. The vxassist and vxresize commands free
unused space for use by the disk group. For the vxvol command, you must do this
yourself. To determine how much you can increase a volume, use the following
command:
# vxassist [-g diskgroup] maxgrow volume
When you resize a volume, you can specify the length of a new volume in sectors,
kilobytes, megabytes, or gigabytes. The unit of measure is added as a suffix to the
length (s, m, k, or g). If you do not specify a unit, sectors are assumed. The vxassist
command also lets you specify an increment by which to change the volumes
size.
Warning: If you use vxassist or vxvol to resize a volume, do not shrink it below
the size of the file system 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. For other file systems, you may need to back
up your data so that you can later recreate the file system and restore its data.
Resizing volumes with vxresize
Use the vxresize command to resize a volume containing a file system. Although
you can use other commands to resize volumes containing file systems, vxresize
offers the advantage of automatically resizing certain types of file system as well
as the volume.
Administering volumes
Resizing a volume
330