This section describes how to associate a volume set to an RDS. A volume set is a container object for a group of volumes that can be a part of a Multi-device File System (MVFS). Associating the volume set to an RDS enables you to replicate an MVFS. For more information about volume sets, see the Veritas Volume Manager Administrator's Guide.
The component volumes of a volume set have assigned indices. Applications use these indices to identify a component volume. To be able to successfully start applications on the Secondary if a disaster occurs, the component volumes of the volume set on the Secondary must have the same indices as those of the corresponding Primary volumes.
The volume set need not exist on the Secondary; however, if the volume set already exists on the Secondary, the volume set on the Secondary must have the same characteristics as the volume set on the Primary. That is, the volume sets must have the same name, the same count of component, and the component volumes must have the same names, sizes, and indices. If the volume set does not exist on the Secondary, and the component volumes do exist with the same names, sizes, and indices as on the Primary, the vradmin addvol command creates the volume set on the Secondary.
After a volume set is associated to an RDS, the vradmin addvol command can be used to add an independent volume to the volume set. A component volume added to the volume set this way becomes a part of the RVG and is replicated.
By default, the vradmin addvol command adds DCM logs to the component volumes when a volume set is added to the RDS, if they have not already been added. If any of the data volumes contains a DRL log, the vradmin addvol command removes the DRL log before adding the DCM to the data volume. The -nodcm option with the vradmin addvol command adds component volumes to the RDS without adding DCMs to the volumes. If -nodcm is issued when any of the RLINKs has srlprot set to dcm or autodcm, and any of the volumes being added to the RDS does not already have a DCM log, the command will fail. This behavior is the same as for independent data volumes.
To associate a volume set to an RDS
# vxvset -g diskgroup list vset_name
If the indices of the component volumes on the Primary volume set and Secondary volume set are identical, go to step 4.
If the indices of the component volumes on the Primary volume set and Secondary volume set are different, perform the following steps on the Secondary:
# vxvset -g diskgroup rmvol vset_name compvol_name
# vxvset -g diskgroup -o index make vset_name \ compvol_name index
# vxvset -g diskgroup -o index addvol vset_name \ compvol_name index
# vradmin -g diskgroup addvol rvg_name vset_name