VERITAS File System 4.1 Administrator's Guide

VERITAS File System Quick Reference
Veritas File System Quick Reference
Appendix A 195
newsize The size (in sectors) to which the file system will increase.
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.
NOTE The device must have enough space to contain the larger file system. See the
format (1M) manual page or the VERITAS Volume Manager’s Administrator’s
Guide for more information.
Example A-7 To extend the VxFS file system mounted on /ext to 22528 sectors
Enter:
# fsadm -F vxfs -b 22528 /ext
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
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.
Example A-8 To shrink a VxFS file system mounted at /ext to 20480 sectors
Enter:
# fsadm -F vxfs -b 20480 /ext