Veritas File System 4.1 Administrator's Guide (HP-UX 11i v3, February 2007)

VERITAS File System Quick Reference
Veritas File System Quick Reference
Appendix A178
Version 6 disk layout file system can be increased depends on the file system block size (as shown in the
tables under "VxFS Version5 Disk Layout" on page 208 and "VxFS Version 6 Disk Layout" on page 209).
See the following manual pages for more information about resizing file systems:
extendfs(1M)
fsadm_vxfs(1M)
How to Extend a File System Using fsadm
If a VxFS file system is not large enough, you can increase its size. The size of the file system is specified
in units of 1024-byte blocks (or sectors).
NOTE If a file system is full, busy, or too fragmented, the resize operation may fail.
To extend 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 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 Managers Administrators 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.