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
# vxvset -g hrdg list hr_vset
Output looks like this:
VOLUME INDEX LENGTH KSTATE CONTEXT hr_cv1 0 8388608 ENABLED - hr_cv2 1 8388608 ENABLED -
# vradmin -g hrdg addvol hr_rvg hr_vset
To associate an independent volume to a volume set associated to an RDS
# 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.