跳到主要内容

Main node online but not working correctly

在 Failover methods 中
作者列表
已发布: 2023年1月6日|最后更新: 2023年1月6日
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

有帮助没有帮助
下一个页面Cluster tools
上一个页面Manual failover

请登录或注册以提交评论。