If you need to extend or shrink a VxFS file system, you can use the fsadm command.
If a VxFS file system requires more space, you can use this procedure to extend the size of the file system. If a VxFS File System is too large and you need the space elsewhere, you can use this procedure to shrink the file system.
Remember to increase the size of the underlying device or volume before increasing the size of the file system.
See the Veritas Volume Manager Administrator's Guide.Veritas Volume Manager Administrator's Guide.
Before resizing a file system, revew the following:
To resize a file system
-
Use fsadm command as follows:
# /opt/VRTS/bin/fsadm -F vxfs [-b newsize] \
[-r rawdev] /mount_point
where:
newsize is the size (in sectors) to which the file system will increase or shrink
rawdev specifies the name of the raw device if there is no entry in /etc/vfstab and fsadm cannot determine the raw device
/mount_point is the location where the file system is mounted
For example, to extend the file system /db01 to 2 GB:
# /opt/VRTS/bin/fsadm -F vxfs -b 2g /db01
Note: |
See the Veritas File System Administrator's Guide and fsadm_vxfs (1M) manual page for information on how to perform common file system tasks using fsadm. |