Veritas Volume Manager 5.1 SP1 Administrator"s Guide (5900-1506, April 2011)

Resizing volumes with vxresize
Use the vxresize command to resize a volume containing a file system. Although
you can use other commands to resize volumes containing file systems, vxresize
offers the advantage of automatically resizing certain types of file system as well
as the volume.
Table 9-3 shows which operations are permitted and whether you must unmount
the file system before you resize it.
Table 9-3
Permitted resizing operations on file systems
HFSBase JFS
(Lite-VxFS)
Online JFS
(Full-VxFS)
Not allowedNot allowedGrow and shrinkMounted file system
Grow onlyGrow onlyGrow onlyUnmounted file system
For example, the following command resizes a volume from 1 GB to 10 GB. The
volume is homevol in the disk group mydg, and contains a VxFS file system. The
command uses spare disks mydg10 and mydg11.
# vxresize -g mydg -b -F vxfs -t homevolresize homevol 10g mydg10 mydg11
The -b option specifies that this operation runs in the background. To monitor
its progress, specify the task tag homevolresize with the vxtask command.
When you use vxresize, note the following restrictions:
vxresize works with VxFS, JFS (derived from VxFS), and HFS file systems only.
In some situations, when you resize large volumes, vxresize may take a long
time to complete.
If you resize a volume with a usage type other than FSGEN or RAID5, you can
lose data. If such an operation is required, use the -f option to forcibly resize
the volume.
You cannot resize a volume that contains plexes with different layout types.
Attempting to do so results in the following error message:
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.
Administering volumes
Resizing a volume
352