How to remove a node from HA pacemaker cluster

This document (000019683) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise High Availability Extension 15 SP1
SUSE Linux Enterprise High Availability Extension 12 SP4
SUSE Linux Enterprise High Availability Extension 11 SP4
SUSE Linux Enterprise Server 15 SP1
SUSE Linux Enterprise Server 12 SP4
SUSE Linux Enterprise Server 11 SP4

Situation

How to quickly clean up or remove a node from a current cluster.   

Resolution

There are some bootstrap scripts which make this pretty simple to initialize, join, and remove a node from the cluster. 

SUSE Linux Enterprise High Availability Extension 11 SP4:
RPM: sleha-bootstrap includes scripts:
    /usr/sbin/sleha-init  
    /usr/sbin/sleha-join  
    /usr/sbin/sleha-remove

Reference:  man sleha-remove
   Syntax:   sleha-remove <options> -c <ip address or hostname>   
   Logfile:  /var/log/sleha-bootstrap.log

SUSE Linux Enterprise High Availability Extension 12 and 15
RPM: ha-cluster-bootstrap includes scripts:
       /usr/sbin/ha-cluster-init    
       /usr/sbin/ha-cluster-join    
       /usr/sbin/ha-cluster-remove 
Reference:  man ha-cluster-remove
   Syntax:  ha-cluster-remove <options> <ip address or hostname>
Normally this is run from a different node in the cluster.  
However, If you need to remove the current node's cluster configuration, you can run from the current node using <ip address or hostname of current node> with the "-F" option to force remove the current node.
     # ha-cluster-remove -F <ip address or hostname>
   Logfile:  /var/log/ha-cluster-bootstrap.log

Note: 
In addition to remove the node clearly from cluster, the following files are deleted from the node:
       /etc/csync2/csync2.cfg /etc/csync2/key_hagroup
              csync2 configuration files.
       /etc/corosync/corosync.conf
              corosync configuration file.
       /etc/sysconfig/sbd
              SBD fencing configuration.
Note: 
This logic has also been added to the crm shell and can be run using the following commands.
   # crm cluster init
   # crm cluster join 
   # crm cluster remove

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000019683
  • Creation Date: 14-Aug-2020
  • Modified Date:14-Aug-2020
    • SUSE Linux Enterprise High Availability Extension

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback@suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center