VERITAS File System 3.5 (HP OnlineJFS/JFS 3.5) Administrator's Guide (August 2003)

Appendix A
VERITAS File System Quick Reference
Resizing a File System
84
How to Shrink a File System
You can decrease the size of the file system using fsadm, even while the file system is mounted.
NOTE In cases where data is allocated towards the end of the file system, shrinking may not be
possible. If a file system is full, busy, or too fragmented, the resize operation may fail.
To decrease the size of a VxFS file system, use the syntax:
fsadm [-F vxfs] [-b
newsize
] [-r
rawdev
]
mount_point
Example
To shrink a VxFS file system mounted at /ext to 20480 sectors, enter:
# fsadm -F vxfs -b 20480 /ext
CAUTION 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.
vxfs The file system type.
newsize The size (in sectors) to which the file system will shrink.
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/fstab and fsadm cannot determine the raw device.