Ceph disk upgrade procedure

I will use osd.32 in this example

Find your OSD physical device path (/dev/sdxx)

cephadm ceph-volume lvm list

Look for devices section next to ====== osd.32 =======
Mine is /dev/sdaj

Mark OSD for an upgrade as out. Data will be moved off it to other disks in the cluster.

ceph osd out 32

Remove OSD from the cluster

ceph orch osd rm 32

Optional: Wipe LVM from the device

ceph orch device zap [servername] /dev/sdaj --force

Optional: Shred the data on the device

shred -n0 -vfz /dev/sdaj

Remove the disk and insert the new one into the server

Create OSD for new disk

ceph orch daemon add osd [servername]:data_devices=/dev/sdaj

All done 🙌