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, ext2, ext3, and reiserfs file systems only.

  • If the file system is mounted or VxFS, you can grow or shrink the size. If the file system is Lite-VxFS, ext2, ext3, or reiserfs, you cannot grow or shrink the size.

  • If the file system is unmounted and VxFS or Lite-VxFS, you cannot grow or shrink the size. If the file system is ext2, ext3, or reiserfs, you can grow or shrink the size.

  • 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