Proxmox - Cluster IPs ändern
# Stop the cluster services
systemctl stop pve-cluster
systemctl stop corosync
# Mount the filesystem locally
pmxcfs -l
# Edit the network interfaces file to have the new IP information
# Be sure to replace both the address and gateway
nano /etc/network/interfaces
# Replace any host entries with the new IP addresses
nano /etc/hosts
# Change the DNS server as necessary
nano /etc/resolv.conf
# Edit the corosync file and replace the old IPs with the new IPs for all hosts
# :%s/10\.10\.20\./10.10.0./g-> <-Change vionly commandthe toIP replacefrom allthe instancesnode #you BEare SUREcurrently TOworking INCREMENT THE config_version: x LINE BY ONE TO ENSURE THE CONFIG IS NOT OVERWRITTENon
nano /etc/pve/corosync.conf
# Edit the known hosts file to have the correct IPs #(Only :%s/10\.10\.20\./10.10.0./gwhen <-you viare commandon the run to replacechange allthe instancesmaster node IP)
# -> Insert the new IP of the Master node
nano /etc/pve/priv/known_hosts
# If using ceph, edit the ceph configuration file to reflect the new network
# (thanks-> u/FortunatelyLethal)change cluster_network = 10.10.20.0/24,10.10.0.0/24
# :%s/10\.10\.20\./-> change public_network to = 10.10.20.0/24,10.10.0./g <- vi command to replace all instances0/24
nano /etc/ceph/ceph.conf
# If you want to be granular... fix the IP in /etc/issue
nano /etc/issue
# Verify there aren't any stragglers with the old IP hanging around
cd /etc
grep -R '10\.10\.20\.' *
cd /var
grep -R '10\.10\.20\.' *
# Reboot the system to cleanly restart all the networking and services
reboot
# ReferencedDelete pages:the Monitor of the node that was changed vie GUI
# Edit ceph.conf
nano /etc/pve/ceph.conf
# -> https:temporarily change public_network to only = 10.10.0.0/24
# Create the MON
pveceph mon create
# Edit ceph.conf back to normal
nano //forum.proxmox.com/threads/change-cluster-nodes-ip-addresses.33406/etc/pve/ceph.conf
# -> https://pve.proxmox.com/wiki/Cluster_Manager#_remove_a_cluster_nodechange public_network to = 10.10.20.0/24,10.10.0.0/24
# -> make sure you have this section:
[mon.work]
public_addr = 10.10.0.12
# -> Repeat the whole process two more times
# -> After the last one the public_network and cluster_network can be changed to only 10.10.0.0/24
# Reboot the system to cleanly restart all the networking and services
reboot