Veritas File System 5.1 SP1 Administrator"s Guide (5900-1499, April 2011)

To decrease the size of a VxFS file system
Use the fsadm command to decrease the size of a VxFS file system:
fsadm [-F vxfs] [-b newsize] [-r rawdev] mount_point
The file system type.vxfs
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.
newsize
The file system's mount point.mount_point
Specifies the path name of the raw device if there is no entry in
/etc/fstab and fsadm cannot determine the raw device.
-r rawdev
Examples of shrinking a file system
The following example shrinks a VxFS file system mounted at /mnt1 to 20480
sectors.
To shrink a file system to 20480 sectors
Shrink a VxFS file system mounted at /mnt1 to 20480 sectors:
# fsadm -F vxfs -b 20480 /mnt1
The following example shrinks a file system mounted at /mnt1 to 450 gigabytes.
To shrink a file system to 450 gigabytes
Shrink the VxFS file system mounted on /mnt1 to 450 gigabytes:
# fsadm -F vxfs -b 450g /mnt1
Reorganizing a file system
You can reorganize or compact a fragmented file system using fsadm, even while
the file system is mounted. This may help shrink a file system that could not
previously be decreased.
To reorganize a VxFS file system
Use the fsadm command to reorganize a VxFS file system:
fsadm [-F vxfs] [-e] [-d] [-E] [-D] [-r rawdev] mount_point
Quick Reference
Resizing a file system
140