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

Resizing a Volume
202 VERITAS Volume Manager Administrator’s Guide
Resizing Volumes using vxassist
The following modifiers are used with the vxassist command to resize a volume:
growto—increase volume to a specified length
growby—increase volume by a specified amount
shrinkto—reduce volume to a specified length
shrinkby—reduce volume by a specified amount
Extending to a Given Length
To extend a volume to a specific length, use the following command:
# vxassist [-b] growto volume length
Note If specified, the -b option makes growing the volume a background task.
For example, to extend volcat to 2000 sectors, use the following command:
# vxassist growto volcat 2000
Note If you previously performed a relayout on the volume, additionally specify the
attribute layout=nodiskalign to the growto command if you want the
subdisks to be grown using contiguous disk space.
Extending by a Given Length
To extend a volume by a specific length, use the following command:
# vxassist [-b] growby volume length
Note If specified, the -b option makes growing the volume a background task.
For example, to extend volcat by 100 sectors, use the following command:
# vxassist growby volcat 100
Note If you previously performed a relayout on the volume, additionally specify the
attribute layout=nodiskalign to the growby command if you want the
subdisks to be grown using contiguous disk space.
Shrinking to a Given Length
To shrink a volume to a specific length, use the following command: