Veritas Storage Foundation Intelligent Storage Provisioning 5.0 AdministratorÆs Guide, HP-UX 11i v3, First Edition, May 2008

211Examples of using ISP
Resizing a volume
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 file systems (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:
# vxassist -g exdg growby vol1 5g
Grow an existing 10-gigabyte volume to 15 gigabytes without using disks from
the enclosure e1:
# vxassist -g exdg growto vol1 15g \
use_storage='noneof("Enclosure"="e1")'
Shrink a volume by 10%:
# vxassist -g exdg growby vol1 10%
Shrink an existing 15-gigabyte volume to 10 gigabytes:
# vxassist -g exdg shrinkto vol1 10g
Adding or removing mirrors
Add a mirror to an existing volume:
# vxassist -g exdg mirror vol1
Add two mirrors to a volume:
# vxassist -g exdg mirror vol1 nmirror=2
Add a mirror to the volume vol1, where the new mirror is like the existing plex
p1:
# vxassist -g exdg mirror vol1 plexname=p1
Remove a mirror from a volume:
# vxassist -g exdg remove mirror vol1
Remove the plex p1 from the volume v1:
# vxassist -g exdg remove mirror vol1 plexnames=p1