Shrinking a file system

You can decrease the size of the file system using fsadm, even while the file system is mounted.

Warning:

After this operation, there is unused space at the end of the device. You can then resize the device, but be careful not to make the device smaller than the new size of the file system.

To decrease the size of a VxFS file system

vxfs

The file system type.

newsize

The size to which the file system will shrink. The default units is sectors, but you can specify k or K for kilobytes, m or M for megabytes, or g or G for gigabytes.

mount_point

The file system's mount point.

-r rawdev

Specifies the path name of the raw device if there is no entry in /etc/filesystems and fsadm cannot determine the raw device.