VERITAS Volume Manager 3.1 Administrator's Guide
Volume Tasks
Resizing a Volume
Chapter 6 243
Resizing a Volume
Resizing a volume changes the volume size. To resize a volume, use
either the vxassist, vxvol, or vxresize commands.
If the volume is not large enough for the amount of data that needs to be
stored in it, extend the length of the volume. If a volume is increased in
size, the vxassist command automatically locates available disk space.
When you resize a volume, you can specify the length of a new volume in
sectors, kilobytes, megabytes, or gigabytes. The unit of measure is added
as a suffix to the length (s, m, k, or g). If no unit is specified, sectors are
assumed.
CAUTION Do not shrink a volume below the size of the file system. If you have a
VxFS file system, shrink the filesystem first, and then shrink the volume.
If you do not shrink the file system first, you risk unrecoverable data
loss.
Resizing Volumes With the vxassist Command
Four modifiers are used with the vxassist command to resize a volume,
as follows:
• growto—increase volume to specified length
• growby—increase volume by specified amount
• shrinkto—reduce volume to specified length
• shrinkby—reduce volume by specified amount
Extending to a Given Length
To extend a volume
to
a specific length, use the following command:
# vxassist growto
volume_name length
For example, to extend volcat to 2000 sectors, use the following
command:
# vxassist growto volcat 2000