Connecting offline servers to the new primary server
After failover, you must reconnect any offline secondary servers to the new primary server.
If the primary server in a high-availability cluster fails, all online secondary servers are notified of the failure. The secondary servers connect to the new primary server and continue to operate. However, RS secondary servers and HDR secondary servers that are not online at the time of the failover do not receive the failover notification, and attempts to connect to the original (failed) primary server when the servers are back online. In this case, the primary server must be manually reset on those secondary servers.
Run the following
commands on secondary servers that were offline when the failover
occurred.
- For HDR secondary servers:
new_primary indicates the name of the current primary server.oninit -PHY onmode -d secondary new_primary
- For RS secondary servers:
new_primary indicates the name of the current primary server.oninit -PHY onmode -d RSS new_primary