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: Permitted resizing operations on file systems shows which operations are permitted and whether you must unmount the file system before you resize it.

Table: Permitted resizing operations on file systems

Online JFS (Full-VxFS)

Base JFS (Lite-VxFS)

HFS

Mounted file system

Grow and shrink

Not allowed

Not allowed

Unmounted file system

Grow only

Grow only

Grow only

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:

Note:

If you enter an incorrect volume size, do not try to stop the vxresize operation by entering Crtl-C. Let the operation complete and then rerun vxresize with the correct value.

For more information about the vxresize command, see the vxresize(1M) manual page.