[SOLVED] change the internal nodes IP class on a cluster

piviul

Active Member
Mar 19, 2020
50
3
28
Hi all, I have configured a cluster of 2 nodes separating the internal communication network and the LAN using 2 different IP classes; now I would like to change the class of internal iface nodes of the cluster. I have stopped both corosync and pve-cluster on both nodes then changed the ip address (modifyng /etc/network/interfaces) of the internal iface nodes and the corosync cluster descriprion accordingly (modifying the /etc/corosync/corosync.conf) and then restarted corosync and pve-cluster. All seems to work except that the cluster continue to memorize the old class and restarting the server corosync get the configuration from to the cluster rewriting the /etc/corosync/corosync.conf

I think the method applied is not the right method.

Please someone can address me how to change the IP class of the internal communication network of a cluster?

Piviul
 
Hi,

/etc/corosync/corosync.conf

This is only used to bootstrap the cluster and the clustered configuration filesystem, once started the one in /etc/pve/corosync.conf will be copied over, at least if not newer config_version (IIRC).

You could edit that one on a single node, it will propagate to all others if the cluster is quorate, and then just restart corosync.service
 
Thank you very much indeed, I have changed internal communication network range successfully.

My best regards

Piviul