How to delete orphaned RBD images when using ODF 4 as a storage backend for OpenShift 4?
Issue
When checking the amount of existing images within Ceph on ODF, it is possible to see a mismatch between the amount of images versus the amount of existing PVs/PVCs on OCP, where the amount of images is superior to 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 Container Platform (OCP)
- 4.x
- Red Hat OpenShift Data Foundation (ODF)
- 4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.