![]() |
![]() |
![]() |
![]() |
![]() |
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
vradmin
resizevol
command also resizes the file system using the vxresize
command. For more information, see the vxresize
(1M)
manual page.
vradmin
resizevol
command pauses replication, resizes the data volume, and then resumes replication.
Note
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
vradmin
verifydata
command will show that the checksums for the Primary and Secondary data volumes do not match.
vradmin
resizevol
command 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 vradmin
resizevol
command 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:
# vradmin -g
diskgroup [-f
] resizevol
local_rvgname \
volume_name
volume_length
The argument 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.
The argument volume_name
is the name of the data volume to be resized. You can specify a component volume of a volume set. Do not specify a volume set name.
The argument 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 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