Oracle® Solaris Cluster Geographic Edition System Administration Guide

Exit Print View

Updated: July 2014, E39667-01
 
 

How to Switch Over Replication From the Primary Cluster to the Secondary Cluster

Perform this procedure to switch over a protection group to the secondary cluster.


Note -  You can also accomplish this procedure by using the Oracle Solaris Cluster Manager GUI, if you do not need to use the –f force option. Click Partnerships, click the partnership name to go to its page, highlight the protection group name, and click Switchover. For more information about Oracle Solaris Cluster Manager, see Chapter 13, Using the Oracle Solaris Cluster GUI, in Oracle Solaris Cluster System Administration Guide .

Note -  To switch over a set of protection groups that are configured as a multigroup, instead follow procedures in How to Switch Over a Multigroup.

Before You Begin

Before you switch over a protection group from the primary cluster to the secondary cluster, ensure that the following conditions are met:

  • For Oracle ZFS Storage Appliance, data replication is active between the primary cluster and the secondary cluster. That is, the replication is enabled from the source to the target appliances.

  • For Oracle ZFS Storage Appliance, the Geographic Edition replication resource for this appliance replication shows the Online state.

  • For Oracle Data Guard, the Oracle Data Guard Broker show configuration command must show a SUCCESS state. This state is reflected in the state of the Geographic Edition replication resource for this Oracle Data Guard Broker configuration, which should show the online state.

  • The Geographic Edition software is running on both clusters.

  • The secondary cluster is a member of a partnership.

  • Both cluster partners can be reached.

  • The overall state of the protection group is set to OK.


Caution

Caution  -  For EMC SRDF, if you have configured the Cluster_dgs property, only applications that belong to the protection group can write to the device groups specified in the Cluster_dgs property.


  1. Assume the root role or assume a role that is assigned the Geo Management RBAC rights profile.

    For more information about RBAC, see Securing Geographic Edition Software in Oracle Solaris Cluster Geographic Edition Installation and Configuration Guide .


    Note -  If you use a role with Geo Management RBAC rights, ensure that the /var/cluster/geo ACLs are correct on each node of both partner clusters. If necessary, assume the root role on the cluster node and set the correct ACLs.
    # chmod A+user:username:rwx:allow /var/cluster/geo

    The /var/cluster/geo directory must have the correct access control lists (ACL) applied for compatibility between the Geo Management RBAC rights profile and Oracle ZFS Storage Appliance software.


  2. Initiate the switchover.

    The application resource groups that are a part of the protection group are stopped and started during the switchover.

    phys-paris-1# geopg switchover [-f] -m new-primary-cluster protection-group-name
    –f

    Forces the command to perform the operation without asking you for confirmation.

    –m new-primary-cluster

    Specifies the name of the cluster that is to be the new primary cluster for the protection group.

    protection-group-name

    Specifies the name of the protection group.

Example 11-1   Forcing a Switchover From the Primary Cluster to the Secondary Cluster

The following example performs a switchover to the secondary cluster cluster-newyork.

phys-paris-1# geopg switchover -f -m cluster-newyork example-protection-group

Next Steps

To fail back a protection group to the original cluster, see Recovering a Protection Group to a Cluster.