VERITAS Storage Foundation 4.1 Intelligent Storage Provisioning Administrator's Guide

Resizing Volumes Online
58 VERITAS Storage Foundation ISP Administrators Guide
you can later recreate the file system and restore its data. Alternatively, you can use the
vxresize command to resize both the volume and its file system where this is
supported. See the vxresize(1M) manual page for more information.
Note If you use the vxvoladm command to resize application volumes of type fsgen or
raid5, you must specify the -f (force) option to the command. You must also specify the
-f option if growing a volume would violate any rules.
Determining the Maximum Size of a Volume
You can use the following command to determine by how much you can grow a volume using the
available storage:
# vxvoladm [-g diskgroup] maxgrow volume [attributes...]
You can use storage specification attributes with this command to restrict the storage that is taken
into consideration by the calculation. For example, the following command specifies that any
JBOD storage may be used to resize volume, vol02:
# vxvoladm -g mydg maxgrow vol02 \
use_storage=’allof("Enclosure"="Disk")’
Increasing the Size of a Volume to a Specified Length
The following command grows a volume to a specified length:
# vxvoladm [-g diskgroup] [-f] growto volume length [attributes...]
You can use storage specification attributes with this command to restrict the storage that is used to
grow a volume. For example, the following command expands the volume vol1 to 10 gigabytes,
but excludes storage on controller c1 from being allocated:
# vxvoladm -g mydg growto vol1 10g \
use_storage=’noneof("Controller"="c1")’
This operation fails if the new length specified is smaller that the current size of the volume.