% Modification d'adresses IP dans un serveur Proxmox
Comment modifier les IP de nœuds sur un cluster Proxmox:
on each node one by one :
1. Change IP assigned to vmbr0, add network settings for the new interface so cluster can communicate.
2. FAIRE CHAQUE OPERATION DÉCRITE CI-DESSOUS with the new ip, and increment the config_version setting
3. edit the /etc/hosts with the new ip value
4. Reboot the node
5. wait for the node to reboot and perform next node, until end of nodes.
# stop corosync and pmxcfs on all nodes
$ systemctl stop corosync pve-cluster
# start pmxcfs in local mode on all nodes
$ pmxcfs -l
# put correct corosync config into local pmxcfs and corosync config dir (make sure to bump the 'config_version' inside the config file)
$ cp correct_corosync.conf /etc/pve/corosync.conf
$ cp correct_corosync.conf /etc/corosync/corosync.conf
# kill local pmxcfs
$ killall pmxcfs
# start corosync and pmxcfs again
$ systemctl start pve-cluster corosync
# check status
$ journalctl --since '-5min' -u pve-cluster -u corosync
$ pvecm status