Home > Veritas Storage Foundation™ Volume Manager Manual Pages
______________________________ | | VxFS | |______________|_______________| | Mounted FS |Grow and shrink| | | (uses fsadm) | |______________|_______________| | Unmounted FS | Not allowed | |______________|_______________|
- vxresize works with Veritas File System (VxFS) 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. Use the -f option to force resizing of such a volume.
- You cannot resize volumes comprised of different layout types. If you try to do so, an error message displays stating that the volume contains a different organization.
The new_length operand can begin with a plus (+) or minus (-) to indicate that the new length is added to or subtracted from from the current volume length. Specify the new length, or change in length, in Veritas Volume Manager standard length units (see vxintro(1M)).
The vxresize command accepts the Intelligent Storage Provisioning (ISP) storage specification arguments that are used with the vxassist command, and other vxassist specification arguments such as mirror, stripe and alloc if the volume is not an ISP volume. The arguments are passed unmodified to the vxassist command.
For example, medianame operands can be specified to name the disks that are to be used for allocating new space for a volume. These arguments can be a simple name for a disk media record, or they can be of the form medianame, offset to specify an offset within the named disk. If an offset is specified, then regions from that offset to the end of the disk are considered candidates for allocation. If a medianame operand is prefixed by !, the specified storage is excluded from the allocation process.
See the vxassist(1M) manual page for information about storage specification arguments.
Note: This option is only honored for grow operations on non-RAID5 volumes. Otherwise, it is ignored.
When a non-ISP volume is shrunk, its layout may be converted as a side effect if vxassist determines that the new volume is too small for the original layout. The values of the stripe-mirror-col-trigger-pt and stripe-mirror-col-split-trigger-pt attributes (by default, 1 gigabyte) control whether a new layout will be applied. A stripe-mirror volume that is smaller than the value of stripe-mirror-col-trigger-pt is converted to a mirror-stripe volume. A concat-mirror volume that is smaller than the value of stripe-mirror-col-split-trigger-pt is converted to a mirror-concat volume.
If the new layout of a non-ISP volume is inappropriate, use the vxassist convert operation to change the layout after the grow or shrink operation has finished.
For a CFS file system, the vxresize command can be executed on any node in the cluster. Alternatively, you can grow a CFS file system by running the vxassist growto command or the vxassist growby command on the CVM master node. Then run the fsadm command on any CFS node. To determine if a node is the CVM master node, use the command vxdctl -c mode. Similarly, to shrink a CFS file system, run the fsadm command on any CFS node, followed by the vxassist shrinkto command or the vxassist shrinkby command on the CVM master node.
Veritas Volume Manager Administrator's Guide
Veritas Storage Foundation Intelligent Storage Provisioning Administrator's Guide
Last updated: 1 Oct 2006
Copyright ©2009 Symantec Corporation
All rights reserved.