SFHA Solutions 6.0.1: Use cases for the vxresize command
A file system is assigned a specific size as soon as it is created. However, the file system may become too small or too large as changes in file system usage take place over time. For example, when you add or grow storage LUNs, more storage is available to expand the file system. The storage size might also change when you migrate to a different array using Array Migration or you migrate to thin provisioning.
The vxresize command enables you to grow or shrink the Veritas File System (VxFS) file system, as well as the volume that contains it. The vxresize command guarantees that the file system shrinks or grows along with the volume.
The vxresize command accepts the new length or change in length, and other inputs including vxassist command storage allocation specifications and the -b option for running in the background.
When you use the vxresize command, keep in mind the following:
- If you have thin storage, and you use the vxresize command to grow the file system, reclaim any available free space before you run the command. If you are shrinking the file system, you can reclaim the remaining unused space after you run the vxresize command.
- In some situations, when you resize large volumes, the vxresize command 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. You can use the -f option to forcibly resize the volume.
- You cannot resize volumes that have different layout types. If you try, an error message displays stating that the volume contains a different organization in each mirror.
- To determine the maximum size to which you can grow the volume, use the vxassist maxsize command.
For more information about the vxassist maxsize option, see:
Use cases for the vxresize command are:
- Growing the existing storage by adding a new LUN
- Growing the existing storage by growing the LUN
- Migrating to thin provisioning
- Allocating new storage
vxresize (1M) manual pages:
Veritas Storage Foundation and High Availability documentation for other releases and platforms can be found on the SORT website.