VERITAS Storage Foundation 4.1 Intelligent Storage Provisioning Administrator's Guide

Appendix F, Examples of Using ISP
Resizing a Volume
187
Create a 4-way mirrored volume in which each mirror uses disks from the same enclosure, and for
which instant snapshots can be taken:
# vxvoladm -g exdg make vol1 10g \
capability='DataMirroring(nmirs=2),InstantSnapshottable,\
ConfineMirrorsToSimilarStorage(name="Enclosure")'
Resizing a Volume
Note The following examples show how to resize volumes that do not contain file systems
(volume type gen). If an application is using the volume to store data, use the appropriate
utility to reduce the size of the data object before reducing the size of the volume, or to
increase the size of the data object after increasing the size of the volume.
For volumes that contain volumes (volume type fsgen), use the vxresize command to
change both the size of the file system and the volume.
Grow a volume by 5 gigabytes:
# vxvoladm -g exdg growby vol1 5g
Grow an existing 10-gigabyte volume to 15 gigabytes without using disks from the enclosure e1:
# vxvoladm -g exdg growto vol1 15g \
use_storage='noneof("Enclosure"="e1")'
Shrink a volume by 10%:
# vxvoladm -g exdg growby vol1 10%
Shrink an existing 15-gigabyte volume to 10 gigabytes:
# vxvoladm -g exdg shrinkto vol1 10g
Adding or Removing Mirrors
Add a mirror to an existing volume:
# vxvoladm -g exdg add mirror vol1
Add two mirrors to a volume:
# vxvoladm -g exdg add mirror vol1 nmirror=2
Add a mirror to the volume vol1, where the new mirror is like the existing plex p1:
# vxvoladm -g exdg add mirror vol1 plexname=p1