VERITAS Volume Manager 3.5 Administrator's Guide (September 2004)
Administering Volumes
Resizing a Volume
Chapter 8 275
Resizing Volumes using vxresize
Use the vxresize command to resize a volume containing a file system.
Although other commands can be used to resize volumes containing file
systems, the vxresize command offers the advantage of automatically
resizing certain types of file system as well as the volume.
See the following table for details of what operations are permitted and
whether the file system must first be unmounted to resize the file
system:
For example, the following command resizes the 1-gigabyte volume,
homevol, that contains a VxFS file system to 10 gigabytes using the
spare disks disk10 and disk11:
# vxresize -b -F vxfs -t homevolresize homevol 10g disk10
disk11
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.
Note the following restrictions for using vxresize:
• vxresize works with VxFS, JFS (derived from VxFS) and HFS file
systems only.
• In some situations, 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 loss of data. 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. Attempting to do so results in the following error message:
Table 8-1
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