After configuring the replication objects within VCS, you can use VCS commands to migrate the role of the cluster on the primary site to the remote cluster. In the procedure below, VCS takes the replicated database service group, database_grp, offline on the primary site and brings it online on the secondary site; the secondary site now assumes 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 primary site to the remote site
# hagrp -offline database_grp -any
Wait for VCS to take all Oracle service groups offline on the primary site.
For example:
#
Where rlk_clus1_priv_rac1_rvg is the RLINK.
# hagrp -online database_grp -any
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
Issue the following command on the remote site:
# hagrp -offline database_grp -any
For example:
# vxrlink -g data_disk_group status rlk_clus1_priv_rac1_rvg
Where rlk_clus1_priv_rac1_rvg is the RLINK.
# hagrp -online database_grp -any