How do you remove a node from a Pacemaker cluster?

How do you remove a node from a Pacemaker cluster?

First, one must arrange for corosync to forget about the node (pcmk-1 in the example below).

  1. Stop the cluster on the host to be removed.
  2. From one of the remaining active cluster nodes, tell Pacemaker to forget about the removed host, which will also delete the node from the CIB:

How do you clear Failed resource actions in a Pacemaker?

To cleanup failed actions messages for resource under “Failed Resource Actions” use pcs resource cleanup . You can get the resource name from the Failed Resource Actions message output.

How can a Pacemaker cluster be prevented?

As with the pcs cluster start , the –all option stops cluster services on all nodes and if you do not specify any nodes, cluster services are stopped on the local node only. You can force a stop of cluster services on the local node with the following command, which performs a kill -9 command.

How do you reset a Pacemaker cluster?

The proper way to do it is:

  1. disable your master/promotable resource, eg.: pcs resource disable pgsql-ha.
  2. shutdown the cluster, eg.: pcs cluster stop –all.
  3. reboot all your nodes.
  4. start Pacemaker, eg.: pcs cluster start –all.
  5. start the master/promotable resource, eg.: pcs resource enable pgsql-ha.

How do you check a pacemaker log?

Pacemaker writes its log files into the /var/log/pacemaker directory. The main Pacemaker log file is /var/log/pacemaker/pacemaker. log . In case you cannot find the log files, check the logging settings in /etc/sysconfig/pacemaker , Pacemaker’s own configuration file.

How do you move resources in a pacemaker?

You can use the pcs resource relocate run command to move a resource to its preferred node, as determined by current cluster status, constraints, location of resources and other settings. For information on this command, see Section 7.1. 2, “Moving a Resource to its Preferred Node”.

What is the difference between standby and maintenance mode in pacemaker cluster?

So for example, to compare two things which might appear similar: the main difference immediately visible between putting all nodes in standby mode, and putting the cluster in maintenance mode, is that for the former case, it will stop all services, since there’s no online node anymore, while for the later, services …

How do I change CRM settings?

To add a new resource to the cluster, proceed as follows:

  1. Log in as root and start the crm tool: root # crm configure.
  2. Configure a primitive IP address:
  3. Display and review the changes you have made:
  4. Commit your changes to take effect:

How do I put CRM cluster in maintenance mode?

In the left navigation bar, select Cluster Configuration. In the CRM Configuration group, select the maintenance-mode attribute from the empty drop-down box and click the plus icon to add it. To set maintenance-mode=true , activate the check box next to maintenance-mode and confirm your changes.

How to troubleshoot resource failure in pacemaker cluster?

An administrator can still attempt to start the resource with the command pcs resource debug-start [RESOURCE]. This will result in a short status output on both failure and success. Adding in the –full option as well will generate full debugging output, which can assist troubleshooting.

What happens if a node fails to start a resource?

Failure to start or stop will immediately set the failcount for a resource to INFINITY, forcing it to move to a different node. If fencing is enabled, a node that failed to stop a resource will also be fenced.

What does the exit code mean in Node.js?

By default the exit code is 0, which means success. Different exit codes have different meaning, which you might want to use in your own system to have the program communicate to other programs. You can also set the process.exitCode property: and when the program ends, Node.js will return that exit code.