How do I remove a node from my cluster?
You cannot remove a main node that is live and active in the cluster, you will first need to promote another standby node to the main role before removing it.
GUI
On the main node navigate to the cluster menu within the OPC and click on the ID of the node you want to remove
Click 'Remove Node'
This will then ask for confirmation, click 'confirm' and the node will be removed from the cluster

Click 'continue' to go back to the HA main menu
If you are removing a node that is showing as offline you will also need to manually remove the standby nodes HA configuration, our guide for this is here.
CLI
To remove a node you will first need it's cluster Id. You can get a full list of node Id's by running:
opc cluster node list copy

make a note of the node Id you want to remove then run the following:
opc cluster node remove -i <node Id> copy
For our example above the command would be:
opc cluster node remove -i d7217497-6638-485a-8b19-a5d89594c2f6 copy
You will be prompted with a confirmation message to remove the node

You will then see the node removed from the cluster

checking the cluster again will show that it has been removed successfully:
opc cluster node list copy

This has removed the node from the cluster and removed the cluster configuration from the standby node that was removed.
If you are removing a node that is showing as offline you will also need to manually remove the standby nodes HA configuration, our guide for this is here.
Please log in or register to submit a comment.