Before you replicate the configuration of an Oracle Data Guard protection group to a partner cluster, ensure that the following conditions are met:
The protection group is defined on the remote cluster, not on the local cluster.
The Oracle Data Guard Broker configuration in the protection group on the remote cluster exists on the local cluster.
The application resource groups in the protection group on the remote cluster exist on the local cluster.
The Auto_start_on_new_cluster property of the resource groups is set to False. You can view this property by using the clresourcegroup show command.
phys-node-n# clresourcegroup show -p Auto_start_on_new_cluster apprg |
Set the Auto_start_on_new_cluster property to False as follows:
phys-node-n# clresourcegroup set -y Auto_start_on_new_cluster=False apprg1 |
Setting the Auto_start_on_new_cluster property to False prevents the Sun Cluster resource group manager from automatically starting the resource groups in the protection group. The Sun Cluster Geographic Edition software restarts and communicates with the remote cluster to ensure that it is running and that it is the standby cluster for that resource group. The Sun Cluster Geographic Edition software does not automatically start the resource group on the primary cluster.
When the protection group is activated, application resource groups need to be online only on the primary cluster.
You have not added the shadow RAC server proxy resource group for an Oracle Data Guard Broker configuration to a protection group application resource group list before that resource group exists on all clusters.
You must replicate the protection group configuration to a partner cluster before you can add a shadow RAC server proxy resource group to a protection group.
When you successfully add the Oracle Data Guard configuration to the protection group on the clusters on which the protection group exists, Oracle Data Guard creates the shadow RAC server proxy resource group on the clusters. The means by which you can successfully add a shadow RAC server proxy resource group to a protection group include the following:
If an Oracle Data Guard protection group does not contain an Oracle Data Guard Broker configuration, once you replicate the protection group on the partner cluster and add the Oracle Data Guard Broker configuration to it, Oracle Data Guard adds the shadow RAC server proxy resource group on both clusters.
If an Oracle Data Guard protection group contains an Oracle Data Guard Broker configuration, does not contain a shadow RAC server proxy resource group on one cluster, and is not replicated on the partner cluster, when you replicate the protection group to the partner cluster, Oracle Data Guard creates the shadow RAC server proxy resource group on the partner cluster.
Once a shadow RAC server proxy resource group exists on both clusters, you can add that resource group to the protection group.
Log in to phys-newyork-1.
To complete this step, you need to be assigned the Geo Management RBAC rights profile. For more information about RBAC, see Sun Cluster Geographic Edition Software and RBAC in Sun Cluster Geographic Edition System Administration Guide.
Replicate the protection group configuration to the partner cluster.
phys-newyork-1# geopg get -s partnershipname ODGprotectiongroup |
Specifies the name of the partnership from which the protection group configuration information is gathered.
Specifies the name of the protection group.
The geopg get command retrieves the configuration information of the protection group from the remote cluster and creates the protection group on the local cluster.
The geopg get command replicates Sun Cluster Geographic Edition related entities. For information about how to replicate Sun Cluster entities, see Replicating and Upgrading Configuration Data for Resource Groups, Resource Types, and Resources in Sun Cluster Data Services Planning and Administration Guide for Solaris OS.
This example shows how to replicate the configuration of sales-pg to cluster-newyork.
# rlogin phys-newyork-1 -l root phys-newyork-1# geopg get -s paris-newyork-ps sales-pg |
The configuration of the protection group is retrieved from the remote cluster, in this example cluster-paris, and then validated by the data replication subsystem on the local cluster cluster-newyork.
If the validation is successful, the Configuration status is set to OK and the protection group is created on the local cluster.
If the validation fails, the protection group is not created on the local cluster. Resolve the error and replicate the protection group again.