Veritas Volume Manager 5.0 Administrator's Guide (September 2006)

277Administering volumes
Resizing a volume
VxVM vxresize ERROR V-5-1-2536 Volume volume has different
organization in each mirror
To resize such a volume successfully, you must first reconfigure it so that each data
plex has the same layout.
For more information about the vxresize command, see the vxresize(1M) manual
page.
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