Associating a volume set to an RDS

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.

This section assumes that the volume set that is to be replicated already exists on the Primary. If the volume set does not exist on the Primary, create the volume set.

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.

You cannot associate a volume set, or a component volume of a volume set, as an SRL.

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

  1. Verify whether the component volumes of the volume set on the Primary and its Secondaries have identical indices. To view the indices, use the following command:

    # vxvset -g diskgroup list vset_name
  2. If the indices of the component volumes on the Primary volume set and Secondary volume set are identical, go to step 4.

  3. 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:

    • Dissociate each volume from the volume set using the following command:

      # vxvset -g diskgroup rmvol vset_name compvol_name

      When you remove the last volume, the volume set is also removed.

    • Create the volume set using the following command:

      # vxvset -g diskgroup -o index make vset_name \
          compvol_name index
    • Associate each of the remaining volumes to the volume set specifying the index of the corresponding volumes on the Primary using the following command:

      # vxvset -g diskgroup -o index addvol vset_name \
          compvol_name index
  4. Associate the volume set to the RDS using the following command:

    # vradmin -g diskgroup addvol rvg_name vset_name

    Note:

    use the volume set name in the command, not the names of each component volume. Specifying the component volume name causes the command to fail.