How do I manually change my main node in the cluster?
Deskpro HA has the option to manually set the main node. This could be for maintanance work or any other reason that requires you to promote a standby node to the main role without being in a failed or offline state.
On your current main node run a cluster status to get the list of nodes and their Id's:
opc cluster node list copy
The screenshot shows the main node is online and that we are currently logged onto it. The * next to the hostname indicates which node you are currently logged onto. Make a note of the Id for the node that you want to change from standy to main, in this case we will use node 192.168.100.54 with the Id of 54a5313a-cc70-46d0-9b0b-57ab753f9692
.
opc cluster node promote -i copy
So for our example it would be:
opc cluster node promote -i 54a5313a-cc70-46d0-9b0b-57ab753f9692 copy
The output shows the promotion of the node was sucesful, you can confirm that the main node is now host 192.168.100.54 by checking with the cluster node list command again:
opc cluster node list copy
Please log in or register to submit a comment.