Upgrade Cluster nodes best practice

yena

Renowned Member
Nov 18, 2011
385
6
83
Hello, what is the best practice to upgrade clusters nodes ?
For example if i have 4 nodes cluster,
apt-get dist upgrade on the first one, than check.. and than other nodes .. ?

Can i do it without migrating VPS ? or it is better to empty the node ?

Thanks
 
I`ve tried tu upgrade Proxmox several time, but every upgrade has some issue(s) so I used a clean install every time (VP backups on NAS).
I`m going to upgrade 4.4 dto 5.2 soon and I`ll install clean 5.2 directly...upgrade tryings is waste of my time.
 
I migrated from 4.4 to 5.2 over time without a problem. Ok... there was a problem, one of the nodes did not restart so I had to ask somebody to restart it manually :)

BUT

I always migrated the VMs to the other nodes, make sure all is working fine and migrate them back. Using ZFS replication you can minimize the migration time, just do a sync before clicking migrate.

During time, trying to test different node configurations, I reinstalled nodes too, like Ivan said, so removing a node from the cluster and reinstalling it works too. Pay attention that once you remove a node from the cluster not to connect the removed node to the cluster network until reinstalled.

Regards.
Rares
 
Can i do it without migrating VPS ?
Yes.

or it is better to empty the node ?
That depends on your downtime tolerance. Without migrating, all guests will be down if/when the node has to be reboot. Even without reboot running guests could slow/interfere/crash the update process and/or the node. Best practice is to perform a rolling upgrade by migrating guests off, update, reboot, move on to the next node. repeat until the whole cluster is processed.
 
  • Like
Reactions: AlexLup