How to remove orphaned RBD images in OCS 4.x
Issue
- Orphaned RBD images occupy the space even after the PVC and PV has been deleted
- When checking the number of existing images within Ceph on ODF, sometimes we see a mismatch between the number of RBD images versus the number of existing PVs/PVCs on OCP, where the number of RBD images is higher than the number of created and active PVs/PVCs, evidencing these images are orphaned somehow. So how might one delete these orphaned images not linked to any PV/PVC?
Environment
- Red Hat OpenShift Date Foundation 4.9 and above
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.