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

Warning: Do not shrink the volume below the current size of the file system or
database using the volume. You can safely use the vxassist shrinkto command
on empty volumes.
Shrinking by a given length
To shrink a volume by a specific length, use the following command:
# vxassist [-g diskgroup] shrinkby volume length
For example, to shrink volcat by 300 sectors, use the following command:
# vxassist -g mydg shrinkby volcat 300
Warning: Do not shrink the volume below the current size of the file system or
database using the volume. You can safely use the vxassist shrinkby command
on empty volumes.
Resizing volumes with vxvol
To change the length of a volume , use the following command:
# vxvol [-g diskgroup] set len=length volume
For example, to change the length of the volume vol01, in the disk group mydg,
to 100000 sectors, use the following command:
# vxvol -g mydg set len=100000 vol01
Note: You cannot use the vxvol set len command to increase the size of a volume
unless the needed space is available in the volume's plexes. When you reduce the
volume's size using the vxvol set len command, the freed space is not released
into the disk groups free space pool.
If a volume is active and you reduce its length, you must force the operation using
the -o force option to vxvol. This precaution ensures that space is not removed
accidentally from applications using the volume.
You can change the length of logs using the following command:
# vxvol [-g diskgroup] set loglen=length log_volume
333Administering volumes
Resizing a volume