Hi, for what it is worth. I believe the bobcares link given was only to change the IP on a standalone proxmox host (not a cluster situation). I believe the official stance on Proxmox cluster, is that - you deploy it; and then you never change the name or IP of the hosts involved. Period. (as per,
https://pve.proxmox.com/wiki/Proxmox_VE_4.x_Cluster, it tells us, "First, install the Proxmox VE on all nodes, see
Installation. Make sure that each Proxmox VE node is installed with the final hostname and IP configuration. Changing the hostname and IP is not possible after cluster creation."
However. I believe ~there are various 'workaround' methods documented, unofficially, which may allow you to clobber and re-christen the nodes into a cluster with new hostnames/IPs. I suspect the general caveat applies, "have backups if the data is important" (ie, VM dumps on other disks, ie, handy-dandy NFS target) - in case things go horribly wrong and you lose everything, backups are nice to have
especially when doing unsupported non-documented processes.
Digging in my notes from some hackery last year, I think something like this:
Code:
188 reboot
189 service pve-cluster stop
190 pmxcfs -l
191 rm /etc/corosync.conf
192 rm /var/lib/pve-cluster/*
193 service pve-cluster stop
194 rm /etc/corosync/corosync.conf
195 pmxcfs -l
196 reboot
197 pvecm status
198 cd /etc/pve/
199 ls -la
200 cd /var/lib/pve-cluster/
201 ls -la
202 date
203 rm ./*
204 rm -rf ./*
205 reboot
- possibly you want to take a backup of the rm -rf directories first before doing this.
- Possibly you want to do a bit more google digging first before trying this.
- Possibly you want to test this on a 2-node test-cluster about which you care *zero* if it is horribly corrupted and borked with this non-official process.
Generally speaking I believe the 'fun' with this is that the pve-cluster service and the 'shared cluster config mini-filesystem' does not like when you try to make changes in ways that are not intended / while things are still active. Hence you have to partially-break it; scrub some config; reboot; then finish the process of scrubbing the undesired cluster config; reboot to finish the messy work; and then finally you have a 'clean' host again which you could change hostname/IP if desired. And then from there you can proceed with "create a cluster for the 'so-called-first-time' in the new subnet.
this is all of course 100% unsupported hackery and you really should not trust anything so blatantly bad idea
but it might help. But really do test first on a throw-away mini-test 2-node environment. Just to try to save sadness later in the day.
Tim