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
resizevol command resizes the data volumes in all the RVGs in the RDS. The
resizevol command can be entered from any host in an RDS.
To avoid any problems with the file system on the Secondary, run the
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
resizevolcommand also resizes the file system using the
vxresizecommand. For more information, see the
resizevolcommand pauses replication, resizes the data volume, and then resumes replication.
When you increase the size of a data volume, the newly added portions on the Primary and Secondary data volumes are not synchronized. In this case, the output of the
verifydata command will show that the checksums for the Primary and Secondary data volumes do not match.
resizevolcommand fails on any of the hosts in the RDS during its execution, the original volume sizes are not restored. This results in volume size mismatch on the Primary and its Secondaries. To correct this mismatch, correct the error condition and then reissue the
resizevolcommand and resume the Secondary RLINKs.
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
local_rvgname is the name of the RVG on the local host and represents its RDS. The
-f option is required if the data volume involved in the
resizevol operation is being decreased in size.
volume_length is the desired size of the data volume to be resized. You can specify the volume length using the standard length convention. You can specify a prefix of either the plus (+) or minus (-) sign to increase or decrease the data volume size by the specified amount.
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
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