Best practice: Upgrade from PVE 8 to 9 with Ceph

YICT

Member
Oct 15, 2023
3
0
6
Hi, we want to upgrade our cluster from PVE 8 to 9, which also means upgrading Ceph.

Our plan is to move the VMs to local storage first, then upgrade Ceph, and then upgrade the kernel.

Of course, we have image backups, but we have a few questions.

When moving VM storage, will it move the VM to local storage or only the disk? I do not see the option in migration to migrate to local storage, only to another node.

If the VMs are moved to local storage, what is the expected impact and downtime of a kernel update?

Previous updates ran smoothly.

I’d be interested to hear about your experiences and any advice you may have.
 
  • Like
Reactions: UdoB
Of course, follow the guides for Ceph posted previously. But in general for PVE updates we:

1) in Ceph set checkboxes for:
(any node > Ceph > OSD > Manage Global Flags)
nodeep-scrub
noout
norebalance
norecover
noscrub

2) run ha-manager crm-command node-maintenance enable [I]nodename[/I]
(from https://pve.proxmox.com/pve-docs/pve-admin-guide.html#_maintenance_mode)

3) install updates via web GUI (reboot if needed via web GUI)

4) uncheck "norecover" flag so Ceph can recover (takes a few seconds)

5) run ha-manager crm-command node-maintenance disable nodename to move VMs back again

Once Ceph is 100% green repeat for other nodes (including set norecover, again)

When done unset all the Ceph flags.
 
Of course, follow the guides for Ceph posted previously. But in general for PVE updates we:

1) in Ceph set checkboxes for:
(any node > Ceph > OSD > Manage Global Flags)
nodeep-scrub
noout
norebalance
norecover
noscrub

2) run ha-manager crm-command node-maintenance enable [I]nodename[/I]
(from https://pve.proxmox.com/pve-docs/pve-admin-guide.html#_maintenance_mode)

3) install updates via web GUI (reboot if needed via web GUI)

4) uncheck "norecover" flag so Ceph can recover (takes a few seconds)

5) run ha-manager crm-command node-maintenance disable nodename to move VMs back again

Once Ceph is 100% green repeat for other nodes (including set norecover, again)

When done unset all the Ceph flags.
So you do recommend to move the VMS to local storage?
 
  • Like
Reactions: Johannes S
So you do recommend to move the VMS to local storage?
No that will take forever. :) And require enough storage.

With only 2/3 nodes up Ceph should still function if its storage is not unbalanced. The VMs should stay running. They just need to move off the node being restarted. Which can also be done by using a node shutdown policy now, I just prefer to do it manually.
 
  • Like
Reactions: Johannes S