[SOLVED] Trying to change corosync.conf, but will be overwritten everytime

Ponkhy

New Member
Dec 1, 2023
4
1
3
Hello,

I'm trying to change the IP address (ring1_addr) of one node in my 3 node cluster.
Unfortunately after the node reboot the config will be overwritten with the old one again.

Here are the steps I'm doing on the node with the IP to change:
Code:
systemctl stop pve-cluster && systemctl stop corosync

pmxcfs -l

nano /etc/pve/corosync.conf -->
- Change of ring1_addr to the new IP address
- Increment config_version from 10 to 11

reboot

From my understanding the new config should then be synced to the other 2 nodes in the cluster, but it doesn't.
Does anyone have a idea how I can change the IP address or somehow sync the new config to the other nodes?

Any help is appreciated!
 
Last edited:
Hello,

WARNING: Never use `pmxcfs -l` unless you are absolutely sure you need it, its an easy way of breaking a cluster. It is not needed to change an IP in a 3 node cluster.

The order in which operation happens is not trivial, I suspect the file cannot be shared with the third node since at that point it is not part of the cluster (config is pointing to old IP, or other mismatch in states), the fact that you stopped corosync and have pmxcfs in local mode makes it even harder to pinpoint.

Since you entered local mode, you will need to manually resolve the situation. I would suggest to manually sync the file to all nodes and restart/start corosync on all nodes. Please give [1] a read, it explains how to change corosync's config, note that you don't need to stop the process.

[1] https://pve.proxmox.com/pve-docs/chapter-pvecm.html#pvecm_edit_corosync_conf
 

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!