VERITAS Storage Foundation 4.1 Oracle Administrator's Guide
Chapter 2, Setting Up Databases
Prerelease 8 September 2005, 8:54am Resizing a File System
81
Resizing a File System and the Underlying Volume
The vxresize command offers the advantage of automatically resizing certain types of file
systems as well as the underlying volume.
Prerequisites
◆ You must know the new desired size of the file system.
◆ In some situations, you must first unmount the file system before resizing it. The following
table shows which operations are permitted and whether the file system must first be
unmounted before resizing it:
Usage Notes
◆ vxresize works with VxFS, JFS (derived from VxFS), and HFS file systems only.
◆ When resizing large volumes, vxresize may take a long time to complete.
◆ Resizing a volume with a usage type other than FSGEN or RAID5 can result in data loss. If
such an operation is required, use the -f option to forcibly resize such a volume.
◆ You cannot resize a volume that contains plexes with different layout types.
◆ See the vxresize(1M) manual page for more details.
Example
To extend a 1-gigabyte volume, homevol, that contains a VxFS file system, to 10 gigabytes,
enter:
# /etc/vx/bin/vxresize -b -F vxfs -t homevolresize homevol 10g
The -b option specifies that this operation runs in the background. Its progress can be monitored
by specifying the task tag homevolresize to the vxtask command.
Online JFS
(Full VxFS)
Base JFS
(Lite VxFS)
HFS
Mounted File System Grow and shrink Not allowed Not allowed
Unmounted File System Grow only Grow only Grow only