This example shows how to associate the component volumes hr_cv1 and hr_cv2 of the volume set hr_vset to the RDS hr_rvg. The example assumes that the component volumes have identical indices.
To associate the component volumes of the volume set to the RDS
Verify whether the component volumes of the volume set hr_vset on the Primary and its Secondaries have identical indices using the following command on the Primary and its Secondaries:
# vxvset -g hrdg list hr_vset
VOLUME INDEX LENGTH KSTATE CONTEXT hr_cv1 0 8388608 ENABLED - hr_cv2 1 8388608 ENABLED -
Associate the component volumes hr_cv1 and hr_cv2 to the RDS hr_rvg using the following command:
# vradmin -g hrdg addvol hr_rvg hr_vset
To associate an independent volume to a volume set associated to an RDS
Associate the volume set to the RDS using the following command:
# vradmin -g diskgroup -tovset vset_name addvol rvg_name \ volume_name[:index]
If an index is specified, that index is used to add the volume to the volume set on all the hosts in the RDS. The command fails if the specified index is already in use.
If an index is not specified, the vradmin addvol command ensures that the same index is used to add the volume to the volume set on all the hosts in the RDS.