Symantec logo

Example 2—Taking over from an original Primary in a setup with multiple Secondaries

We recommend that you create RLINKs between the hosts london and tokyo when setting up the RDS.

In this example the Primary host seattle has failed. The example explains how to take over from the original Primary host seattle to the Secondary host london. This example also explains how to start replication from the new Primary london to the additional Secondary tokyo.

 To take over from the Primary seattle to Secondary RVG on host london

  1. Make sure that the Secondary is consistent by using the following command to check that the consistent flag is set:

    # vxprint -l rlink_name

  1. Make sure that the data volumes on the Secondary have associated DCMs.

    # vxprint -g hrdg -ht hr_rvg

  2. Make the Secondary RVG hr_rvg the new Primary RVG by typing the following command on the Secondary london:

    # vradmin -g hrdg takeover hr_rvg

    The vradmin takeover command enables fast failback.

  3. Verify whether fast failback is enabled by typing the following command on the Secondary london:

    # vxprint -l rlink_name

    If fast failback is enabled, the dcm_logging flag is set.

  4. If you had created RLINKs between the Secondary london and the additional Secondary tokyo, host tokyo is automatically added to the new configuration.

    Otherwise, you must manually add tokyo as a Secondary to the new Primary london. To do this, create RLINKs between london and tokyo and associate them to the respective RVGs using the following commands.

    On host london:

    # vxmake -g hrdg rlink rlk_tokyo_hr_rvg local_host=london \

    remote_host=tokyo remote_rlink=rlk_london_hr_rvg \

    remote_dg=hrdg

    # vxrlink -g hrdg assoc hr_rvg rlk_tokyo_hr_rvg

    On host tokyo:

    # vxmake -g hrdg rlink rlk_london_hr_rvg local_host=tokyo \

    remote_host=london remote_rlink=rlk_tokyo_hr_rvg \

    remote_dg=hrdg

    # vxrlink -g hrdg assoc hr_rvg rlk_london_hr_rvg


      Note   By default, the vxmake rlink command creates the RLINK with the protocol set to UDP/IP. To change the protocol to TCP/IP, see Setting the network transport protocol.


  5. Even after takeover, the RLINK from tokyo to the original primary seattle still remains attached. Detach this RLINK using the following command on the new Primary london or on the Secondary tokyo:

# vradmin -g hrdg stoprep hr_rvg tokyo

  1. On the new Primary london:

# vradmin -g hrdg -c checkpt syncrvg hr_rvg tokyo

The -c option when used with the vradmin syncrvg command automatically starts a checkpoint with the specified name, checkpt, in this example. After the data volumes are synchronized, the checkpoint is ended.

  1. Start the application on the new Primary london. Starting the applications on the new Primary after a takeover may require an application recovery to be run.