Skip to main content

Main node online but not working correctly

in Failover methods
Authors list
Опубликованный: 6 янв. 2023 г.|Last updated: 6 янв. 2023 г.
Question

My main node is online but not working correctly. How to I promote a standby node to main whilst the exsiting main is online?

Deskpro HA has the ability to force a node promotion in the case of a main node that is having issues. Any standby node that is sync'd can be promoted to main and this will force the current main node out of the cluster.

On the standby node that you want to promote, run a cluster check to get the node Id:

opc cluster node list
copy

image.png

In this case we can see that the main node is 192.168.100.54, and we are on the server node 192.168.100.63. The * next to the hostname indicates which node you are currently logged onto. Make a note if the node Id that we are going to promote then run the following:

opc cluster node promote -i --force
copy

So for our example it would be:

opc cluster node promote -i 20f0588e-df3a-4d9d-a66f-edc2e07a4a23 --force
copy

image.png

This will force the standby node to the main role and remove the previous main node from the cluster. You can check this with the cluster node list command:

opc cluster node list
copy

image.png

ПолезноUnhelpful
next pageCluster tools
previous pageManual failover

Please log in or register to submit a comment.