How to increase the size of a VxVM disk, volume, and Veritas filesystem (VxFS)

Article: 100006675
Last Published: 2020-08-04
Ratings: 5 1
Product(s): InfoScale & Storage Foundation

Problem


Veritas Volume Manager (VxVM) provides the facility to resize both the size a VxVM managed disk and the size of a VxVM managed volume using the vxassist command.

The VxVM volume and VxFS file system can also be increased in a single operation using the vxresize command.

Solution


The vxdisk resize command enables the user to resize the size a VxVM managed disk following a Dynamic LUN Expansion (DLE) event performed at the storage layer.

NOTE: The operating system (OS) must detect the revised size, before VxVM can resize the VxVM managed disk.


To resize the VxVM manage disk, type

Syntax:

# vxdisk -f -g <dg> resize <veritas-disk-name>


Example:

# vxdisk -f -g Cnv1 resize emc0_02ac


To resize a VxVM volume, you must know the remaining space in the disk group for the volume layout.


How to determine free space in a disk group using the vxassist maxsize and maxgrow commands

https://www.veritas.com/support/en_US/article.100000497
 

Using the vxprint utility, confirm that the earlier vxresize operation has increased the LUN resize by checking the corresponding 'dm' (disk media) record in the related vxprint output:

Syntax:

# vxprint -htg <disk-group-name>


Example:

# vxprint -htg Cnv1


Now check for amount of available free space to resize the volume:

Syntax:

# vxassist -g <dg> maxsize

Example:

# vxassist -g Cnv1 maxsize


The space remaining in a disk group may vary depending on the volume layout. A mirrored volume will use more space than a standard concat (default) volume.

The layout=<layout-type> option can be used to validate the remaining space for a specific volume layout:

# vxassist -g <dg> maxsize layout=<layout-type>

To find out the maxsize values for different volume layouts, simply change the layout attribute to raid5, concat, stripe-mirror etc.

The maxsize option is used to find the size to which a new volume can be grown to.

The maxgrow can be used to grow an existing volume to maximum size possible meeting the volume constraints and layout. The syntax of using maxgrow with vxassist is :

# vxassist -g <dg> maxgrow <volume-name>

To increase the volume and filesystem size in a single option, use the vxresize command:

Syntax:

# /etc/vx/bin/vxresize [-b] -g <dg> <vol> +<size>

The -b option is to perform the resize in the background.

Example:

The following example, will increase the volume "vol30" by an additional 104857600 sectors.

# /etc/vx/bin/vxresize -b -g Cnv1 vol30 +104857600

The size can be specified in sectors (default), Mb, Gb and Tb.
 

Verify the filesystem size increase using the df command.

 

 

Was this content helpful?