VERITAS File SystemÖ 3.5 (HP OnlineJFS/JFS3.5) AdministratorÆs Guide (December 2002)

Appendix A
VERITAS File System Quick Reference
Resizing a File System
103
Resizing a File System
You can extend or shrink mounted VxFS file systems using the fsadm command. Use the extendfs command
to extend the size of an unmounted file system. 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
If a file system is full, busy, or too fragmented, the resize operation may fail.
NOTE The device must have enough space to contain the larger file system. See the format (1M)
manual page or the VERITAS Volume Manager Administrator’s Guide for more information.
Example
To extend the VxFS file system mounted on /ext to 22528 sectors, enter:
# fsadm -F vxfs -b 22528 /ext
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.