Best way to upgrade cluster

Bob Green

New Member
Dec 12, 2018
5
0
1
62
UK
I've read numerous articles here which cover some of this but I haven't seen a complete answer. I need to get this right first time, hence the question.

Background. Right now I have a four node cluster running PVE 4.2-2 community edition (no subscription). I need to add a fifth node and I want to upgrade to the latest 5.x version. Is this the right path:

1. [ Upgrade my existing 4.2 cluster to the latest 4.x (is this necessary???) ]
2. Install 5.x onto the new node and add it to the cluster (I read that v4 and v5 will play nicely).

Then, for each existing 4.x node:
3. Migrate the live guests to one of the 5.x nodes
4. Upgrade the now empty 4.x node to 5.x (or is it better to reinstall node rather than upgrade?)

Is that basically it?

Thanks very much
-Bob
 
1. [ Upgrade my existing 4.2 cluster to the latest 4.x (is this necessary???) ]
yes this is necessary

2. Install 5.x onto the new node and add it to the cluster (I read that v4 and v5 will play nicely).
should play nice, but you could have problems with adding the node to the cluster since the code changed a bit (you can also add the new node at the end of the upgrade procedure)

Then, for each existing 4.x node:
3. Migrate the live guests to one of the 5.x nodes
4. Upgrade the now empty 4.x node to 5.x (or is it better to reinstall node rather than upgrade?)
yes this is right and no reinstall should not be necessary
 
  • Like
Reactions: Bob Green
yes this is necessary


should play nice, but you could have problems with adding the node to the cluster since the code changed a bit (you can also add the new node at the end of the upgrade procedure)


yes this is right and no reinstall should not be necessary

So I'm finally in a position to start upgrading nodes. My new node has been added to the cluster and is running the latest 4.4. I've live migrated all the guests from one of my older 4.2 nodes to the new node so I'm ready to upgrade the old node to the latest 4.4. Is this simply a matter of:

apt-get update && apt-get upgrade

followed by a reboot or is there more to it than that?

Thanks,
-Bob
 
I've live migrated all the guests from one of my older 4.2 nodes to the new node so I'm ready to upgrade the old node to the latest 4.4. Is this simply a matter of:

apt-get update && apt-get upgrade

followed by a reboot or is there more to it than that?

Should be enough. If any complications arise, check the documentation at https://pve.proxmox.com/wiki/Upgrade_from_4.x_to_5.0

EDIT: Dominik is right. `apt-get dist-upgrade` is the right way.