ha-cluster-join fails on syncing configuration files
This document (7020256) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise High Availability Extension 12
SUSE Linux Enterprise High Availability Extension 11 Service Pack 4
SUSE Linux Enterprise High Availability Extension 11 Service Pack 3
SUSE Linux Enterprise High Availability Extension 11 Service Pack 2
Situation
n2:~ # ha-cluster-join[...]IP address or hostname of existing node (e.g.: 192.168.1.1) [] 10.10.1.10[...]WARNING: csync2 run failed - some files may not be sync'dMerging known_hostsWARNING: known_hosts collection may be incompleteWARNING: known_hosts merge may be incompleteProbing for new partitions......doneERROR: /etc/corosync/corosync.conf is not readable. Please ensure that hostnames are resolvable.
Resolution
cat /etc/hosts10.10.1.10 n1.example.com n110.10.1.11 n2.example.com n2
and then re-run the ha-cluster-join script.
Cause
addresses:
n1:~ # cat /etc/csync2/csync2.cfggroup ha_group{key /etc/csync2/key_hagroup;host n2;host n1;include /etc/booth;include /etc/corosync/corosync.conf;include /etc/corosync/authkey;include /etc/csync2/csync2.cfg;include /etc/csync2/key_hagroup;include /etc/ctdb/nodes;include /etc/drbd.conf;include /etc/drbd.d;include /etc/ha.d/ldirectord.cf;include /etc/lvm/lvm.conf;include /etc/multipath.conf;include /etc/samba/smb.conf;include /etc/sysconfig/pacemaker;include /etc/sysconfig/sbd;}
Because it can not resolve hostnames, it fails to sync the cluster configuration files which in turn then leads to the error when
Pacemaker attempts to start corosync.
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:7020256
- Creation Date: 05-Jun-2017
- Modified Date:03-Mar-2020
-
- SUSE Linux Enterprise High Availability Extension
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com