[SOLVED] Cluster Node Name Problem

troycarpenter

Renowned Member
Feb 28, 2012
100
7
83
Central Texas
I have a node in my cluster that somehow ended up with the wrong spelling in /etc/corosync/corosync.conf. I have tried changing the file itself, but clearly it gets regenerated at some point. The node entry looks like this:
Code:
nodelist {
  node {
    name: bagh
    nodeid: 2
    quorum_votes: 1
    ring0_addr: baugh-corosync
  }

As you can see, the ring0_addr entry is wrong. Now on that node, whenever cororsync restarts, the node complains that there isn't a quorum, and the other nodes think it has dropped out of the cluster. If I change the file manually and restart corosync, then the node comes up.

How do I permanently fix that entry so I don't have to manually work around this problem whenever corosync restarts on that node (like when the corosync-pve package updates)? And I'd rather not have to reinstall the node with a different name.
 
I found the database in /var/lib/pve-cluster where that config file is generated. Using the sqlite3 cli command, I can see it with:
Code:
select data from tree where name='corosync.conf';
However, I'm afraid to just modify the database, and I'm not sure how that database gets propagated around the cluster.

So for now the best way I've found to work around the issue is to create an entry in /etc/hosts with the wrong fqdn for the typo in the configuration file on each of my nodes.
 
Hi,

You must edit it in the /etc/pve/corosync.conf not in the /etc/corosync/corosync.conf.
The /etc/corosync/corosync.conf will be overwritten on every restart.
 
  • Like
Reactions: troycarpenter
Hi,

You must edit it in the /etc/pve/corosync.conf not in the /etc/corosync/corosync.conf.
The /etc/corosync/corosync.conf will be overwritten on every restart.
And what to do after editing? Restart something ?
systemctl restart corosync.service Will be sufficient ?
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!