VERITAS Storage Foundation 4.1 Intelligent Storage Provisioning Administrator's Guide
Chapter 4, Administering Application Volumes
Resizing Volumes Online
59
Increasing the Size of a Volume by a Specified Amount
The following command grows a volume by a specified amount:
# vxvoladm [-g diskgroup] [-f] growby volume length [attributes...]
For example, the following command grows the volume vol1 by 1 gigabyte by allocating
contiguous storage:
# vxvoladm -g mydg growby vol1 1g layout=contig
The setting layout=contig allows only contiguous regions of disk to be used for plexes or
columns. By default, the length of a volume is increased by first extending existing subdisks in the
volume if possible, and then by adding and associating new subdisks. This default behavior
corresponds to the attribute setting layout=nocontig.
Reducing the Size of a Volume to a Specified Length
The following command reduces the length of a volume:
# vxvoladm [-g diskgroup] [-f] shrinkto volume length \
[attributes...]
For example, the following command shrinks the volume vol1 to 5 gigabytes:
# vxvoladm -g mydg shrinkto vol1 5g
This operation fails if the new length specified is larger that the current size of the volume.
Reducing the Size of a Volume by a Specified Amount
The following command reduces the length of a volume by a specified amount:
# vxvoladm [-g diskgroup] [-f] shrinkby volume length \
[attributes...]
For example, the following command shrinks the volume vol01 by 500 megabytes:
# vxvoladm -g mydg shrinkby vol1 500m