Again I am moving our 4 node cluster to a new location. I though I could just move one node (node4) to the new location and slowly move the VMs over a period of two weeks to that node. Then move the remaining 3 nodes and they would resync.
I am worried about the resyncing, I see the from teh perspective of the one moved node the remaining nodes are unavailable and the VMs as the moved node sees them are offline. I was planing to move all the VMs to this node. What happenes when I bring the other 3 nodes to the new location. Will they jsut resync and agree to what they see then is how they will update configuration or it is more tricky than that ?
I would remove any new storage before I try to resync the nodes in the new location. 3 of the nodes would have the same config and they sync as they are still in production in the old location.
Can anybody elaborate of what might happen ? I am open to reinstalling everything and rebuilding the cluster but if you think it is unnecessary it would save me at least 2-3 hours.
Thank you
Hi Bruce,
I assume the internal networks in both locations don't see each other? (It's important, otherwise the method which has Klaus mentioned is better)
Further, you don't use shared/distributed storage and only local one? (If pve has trouble to access defined storage, you can have strange effects).
If you stop one node at the old location and start them in the new location, this node don't have quorum, because you need three running nodes in an 4-node-cluster.
E.G. /etc/pve is write protected and no VM start.
If you know, what you are doing, you can reach quorum with "pvecm expected 1" - after that, you can start VMs, which use local storage on this node.
To migrate VMs you must stop the VM on the old location, transfer the VM disk(s) (dd/rsync/scp/...) to the "new" host at the new location.
After that, you can move the VM-config on the "new" host from the old location to the new, like "mv /etc/pve/nodes/pve-3/qemu-server/123.conf /etc/pve/qemu-server/".
Then you can start the VM on the new location.
To "rejoin" the tree nodes from the old location:
Have an backup from /etc/pve from both locations.
If the three node don't held any VM (all VMs are transferred to the new location), you simply need to power on node for node.
If the first node came up (the second cluster node), they will join the cluster (which run with one vote only) and sync the content from /etc/pve - control the quorum with pvecm.
If all is fine, you can power on the second node (third cluster node) and after that, you can set the expected back to 3.
And least the last node.
Udo