VERITAS Storage Foundation 4.1 Oracle Administrator's Guide

Resizing a File System Prerelease 8 September 2005, 8:54am
80 VERITAS Storage Foundation for Oracle Administrator’s Guide
Resizing a File System
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.
Note If you are using the command line, remember to increase the size of the underlying device or
volume before increasing the size of the file system. See the VERITAS Volume Manager
Administrators Guide for more information.
Prerequisites
This task requires a mounted file system.
You must know either the desired size or the amount of space to add to or subtract from the file
system size.
Usage Notes
See the fsadm_vxfs(1M) manual pages for more details.
To resize a file system using the command line
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/fstab and
fsadm cannot determine the raw device
/mount_point is the location where the file system is mounted
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 Administrators Guide and fsadm_vxfs(1M) manual page
for information on how to perform common file system tasks using fsadm.