Resizing a file system and the underlying volume

The fsadm command resizes the file system only. If you attempt to use fsadm to make the file system the same size or larger than the underlying volume, the fsadm command will fail. To resize the file system and its underlying volume, use the vxresize command instead.

Warning:

Resizing a volume with a usage type other than FSGEN or RAID5 can result in data loss. If such an operation is required, use the -f option to forcibly resize such a volume.

Before resizing a file system and the underlying volume, review the following:

Prerequisites

  • You must know the new desired size of the file system.

Usage notes

  • vxresize works with VxFS and UFS file systems only.

  • If the file system is mounted and VxFS, you can grow or shrink the size. If a VxFS file system is unmounted, you cannot grow or shrink the size.

  • If the file system is mounted and UFS, you can grow the size only. If the file system is unmounted and UFS, you can grow size only.

  • When resizing large volumes, vxresize may take a long time to complete.

  • Resizing a volume with a usage type other than FSGEN or RAID5 can result in data loss. If such an operation is required, use the -f option to forcibly resize such a volume.

  • You cannot resize a volume that contains plexes with different layout types.

  • See the vxresize (1M) manual page for more details.

To resize a file system and the underlying volume