A switchover consists of the following actions:
Application services are unmanaged on the former primary cluster.
The replication role is reversed and now continues to run from the new primary.
Application services are brought online on the new primary cluster.
The geopg switchover command performs the following actions:
The command confirms that the secondary cluster does allow the replication role reversal.
The command creates copies of the replicated source projects and exports the shares for use on the target appliance, to ensure that no projects and mount point conflicts can occur.
The command destroys the created clones on the target appliance and confirms that the actual reverse replication operation can be performed on the target appliance.
The following data replication products have additional behaviors:
Hitachi TrueCopy and Universal Replicator:
The replication subsystem checks that the Hitachi TrueCopy or Universal Replicator device group is in a valid aggregate device group state.
The replication subsystem checks that the local device group states on the target primary cluster, cluster-newyork, are 23, 33, 43, or 53.
The local device group state is returned by the pairvolchk -g device-group-name -ss command. These values correspond to a PVOL_PAIR or SVOL_PAIR state.
The Hitachi TrueCopy or Universal Replicator commands that are run on the new primary cluster, cluster-newyork, are described in the following table.
|
Oracle Data Guard:
Before the switchover, the command checks that the remote database is in an enabled state in the Oracle Data Guard Broker configuration. The command also confirms that the configuration is healthy by issuing the Oracle Data Guard command-line interface (dgmgrl) show configuration command to ensure that the command returns a SUCCESS state.
If the output from this command indicates that Oracle Data Guard Broker is busy performing its own health check, the Oracle Data Guard command-line interface retries the command until it receives a SUCCESS response or until two minutes have passed. If the command-line interface is unable to get a SUCCESS response, the command fails.
Oracle ZFS Storage Appliance:
The command creates copies of the replicated source projects and exports the shares for use on the target appliance to ensure that no projects and mount point conflicts can occur.
The command destroys such created clones on the target appliance and confirms that the actual reverse replication operation can be performed on the target appliance.
The command performs the following actions on the original primary cluster:
For Availability Suite, removes affinities and resource dependencies between all the application resource groups in the protection group and the internal resource group, such as the lightweight resource groups
Takes offline the application resource groups in the protection group and places them in the Unmanaged state.
Performs a switchover to the secondary cluster for each replication configuration in the protection group.
On the original secondary cluster, the command takes the following actions:
Runs the script that is defined in the RoleChange_ActionCmd property
Brings online all application resource groups in the protection group
If the command completes successfully, the secondary cluster becomes the new primary cluster for the protection group. The original primary cluster becomes the new secondary cluster. The application resource groups in the protection group are brought online on the new primary cluster and replication from the appliance that is connected from the new primary cluster to the new secondary cluster begins.
The Local-role property of the protection group is also switched regardless of whether the application could be brought online on the new primary cluster as part of the switchover operation. On the cluster on which the protection group had a Local role of Secondary, the Local-role property of the protection group becomes Primary. On the cluster on which the protection group had a Local-role of Primary, the Local-role property of the protection group becomes Secondary.