VERITAS Volume Manager 3.5 Administrator's Guide (September 2002)

Chapter 8, Administering Volumes
Resizing a Volume
203
# vxassist shrinkto volume length
For example, to shrink volcat to 1300 sectors, use the following command:
# vxassist 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 shrinkby volume length
For example, to shrink volcat by 300 sectors, use the following command:
# vxassist 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 set len=length volume
For example, to change the length to 100000 sectors, use the following command:
# vxvol 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.
If a volume is active and its length is being reduced, the operation must be forced using
the -o force option to vxvol. This prevents accidental removal of space from
applications using the volume.
The length of logs can also be changed using the following command:
# vxvol set loglen=length log_volume