Migrating the role of new primary site back to the original primary site

After migrating the role of the primary site to the secondary site, you can use VCS commands to migrate the role of the cluster on the new primary site to the original primary site. In the procedure below, VCS takes the replicated database service group, database_grp, offline on the new primary (former secondary) site and brings it online on the original primary site; the original primary site now resumes the role of the primary site.

Note:

The hagrp -switch command cannot migrate a parallel group within a cluster or between clusters in a global cluster environment.

To migrate the role of new primary site back to the original primary site

  1. Make sure that all CRS resources are online, and switch back the group database_grp to the original primary site.

    Issue the following command on the remote site:

      # hagrp -offline database_grp -any
    				
  2. Verify that the RLINK between the primary and secondary is up to date. Use the vxrlink -g command with the status option and specify the RLINK for the primary cluster. You can use the command from any node on the primary cluster.

    For example:

    # vxrlink -g data_disk_group status rlk_rac_cluster101_priv_rac1_rvg
    				

    Where rlk_rac_cluster101_priv_rac1_rvg is the RLINK.

  3. Make sure that database_grp is offline on the new primary site. Then, execute the following command on the original primary site to bring the database_grp online:

      # hagrp -online database_grp -any