How to upgrade Ceph 18.2.2 to 18.2.4

bagels1b

Member
Nov 7, 2022
19
2
8
Hi,

I'm trying to figure out how to upgrade Ceph from 18.2.2 to 18.2.4. I've found this document describing going from Reef to Squid but I want to get to the latest Reef 18.2.4 first. I know I can use that procedure to get to 18.2.4 if I don't update my ceph repo file to squid but then I'll upgrade pve from 8.2.4 to 8.3.x which I don't want to do yet. I just want to upgrade Ceph to 18.2.4 and then do the official procedure to upgrade pve and Ceph. So, how do I upgrade Ceph 18.2.2 to 18.2.4 without upgrading pve?

Thanks
 
Simply apt update && apt install ceph-common. That will update Ceph packages and their dependencies. If in doubt, after apt update, check the available versions for each Ceph packages with something like apt list --installed | grep ceph.
 
  • Like
Reactions: bagels1b
Thanks. I don't need to do ceph osd set noout before or reset the ceph managers or OSD's after? Does it matter the host order I I do the upgrade on? Ceph managers/monitors first or last?
 
Essentially it's the same procedure as with a major version upgrade, like you posted [1]. Install packages in all nodes, set noout, restart one by one mons, managers, OSD, MDS, while waiting for Ceph status to be ok before restarting the next daemon. Finally, remove the noout flag. PVE webUI will show you which daemons are still pending a restart to activate the newer version you just installed.

I really suggest you to build a testing environment either virtual or physical and practice before doing this in production.

[1] https://pve.proxmox.com/wiki/Ceph_Reef_to_Squid
 
  • Like
Reactions: bagels1b
Thanks @VictorSTS. I have a test cluster but it inadvertently got ahead of my production cluster and is already at 18.2.4. Downgrading doesn't seem to be an option. 18.2.2 to 18.2.4 seems like a straight forward upgrade so I was going to do that. Then I've already tested 18.2.4 to squid along with pve up to 8.3.x and that works without a problem. I'm just dealing with this Ceph mismatch I've gotten into in the safest manner.
 
  • Like
Reactions: VictorSTS