Symantec logo

Resizing a data volume in a Replicated Data Set

The vradmin resizevol command enables you to resize a data volume in a Replicated Data Set (RDS) even when replication is in progress. You can resize an independent data volume or a component volume of a volume set. You cannot use the vradmin resizevol command to resize an entire volume set, only individual component volumes. The vradmin resizevol command resizes the data volumes in all the RVGs in the RDS. The vradmin resizevol command can be entered from any host in an RDS.


  Caution   To avoid any problems with the file system on the Secondary, run the vradmin resizevol command only when the Secondary is up-to-date. VVR replicates changes to the meta data of a file system on the Primary data volumes to the Secondary. If a takeover happens while these changes are yet to be applied to the Secondary data volumes, the size of the file system may not match the size of the underlying data volume and it may not be possible to mount the file system on the new Primary. If this occurs, run the file system- specific commands to recover the file system.



Important notes on resizing a data volume in a Replicated Data Set


Prerequisites for resizing a data volume in an RDS:

  The data volume must exist in the disk group and be associated with the RVGs for all hosts in the RDS.

  If you want to increase the size of a data volume, make sure there is enough space in the disk group on the Primary and the Secondary by issuing the following command:

# vxdg -g diskgroup free

Examples:

The following examples show how to resize to different lengths an existing volume hr_dv01 in all RVGs of the RDS represented by its local RVG hr_rvg. The disk group hrdg contains the local RVG hr_rvg.

To resize the volume hr_dv01 to 100 gigabytes, type the following command on any host in the RDS:

# vradmin -g hrdg resizevol hr_rvg hr_dv01 100G

To increase the size of the data volume hr_dv01 by 100 megabytes when the Primary and Secondary data volumes are the same size, type the following command on any host in the RDS:

# vradmin -g hrdg resizevol hr_rvg hr_dv01 +100M

To decrease the size of the data volume hr_dv01 by 500K when the Primary and Secondary data volumes are the same size, type the following command on any host in the RDS:

# vradmin -g hrdg -f resizevol hr_rvg hr_dv01 -500K