Veritas Volume Manager 4.1 Administrator's Guide (HP-UX 11i v3, February 2007)
Chapter 8, Administering Volumes
Resizing a Volume
247
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] [-g diskgroup] 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 -g mydg 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] [-g diskgroup] 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 -g mydg 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.