Veritas Volume Manager 4.1 Administrator's Guide (HP-UX 11i v3, February 2007)
Resizing a Volume
248 VERITAS Volume Manager Administrator’s Guide
Shrinking to a Given Length
To shrink a volume to a specific length, use the following command:
# vxassist [-g diskgroup] shrinkto volume length
For example, to shrink volcat to 1300 sectors, use the following command:
# vxassist -g mydg shrinkto volcat 1300
Caution Do not shrink the volume below the current size of the file system or database
using the volume. The vxassist shrinkto command can be safely used 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
Caution Do not shrink the volume below the current size of the file system or database
using the volume. The vxassist shrinkby command can be safely used on
empty volumes.
Resizing Volumes using vxvol
To change the length of a volume using the vxvol set command, 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 The vxvol set len command cannot increase the size of a volume unless the
needed space is available in the plexes of the volume. When the size of a volume is
reduced using the vxvol set len command, the freed space is not released into
the disk group’s free space pool.