Removing Orphaned Cephfs Subvolumes and Snapshots in ODF
Issue
Sometimes Cephfs subvolumes and snapshots become orphaned in ODF. That is to say, Cephfs subvolumes and snapshots lose their connection to their requisite PV in Openshift. The result is that ODF ends up housing more data than it should. This data cannot be accessed by Openshift, making it essentially useless. The following document is an effort to describe how to check for and remove cephfs snapshots and subvolumes.
Environment
Red Hat OpenShift Container Platform (OCP) 4.14+
Red Hat OpenShift Data Foundation (ODF) 4.14+
Red Hat Ceph Storage (RHCS) 6+
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.