Ceph: Identifying and cleaning up orphaned objects for S3 buckets
Issue
Identifying and cleaning up orphaned objects for S3 buckets
An orphaned object is an object that exists in the Ceph cluster (also known as a Rados object) and has a proper bucket id associated to the Rados object. At the same time there is no longer an S3 object in the bucket index referencing the Rados object. In this case, the Rados object is orphaned.
Another way to characterize this issue is an orphaned Rados object will not populate an S3 bucket listing, but will populate in a rados ls
command, like so: rados -p <pool> ls | grep <bucket id>
Environment
Red Hat Ceph Storage (RHCS) 3.3.x
Red Hat Ceph Storage (RHCS) 4.x
Red Hat Ceph Storage (RHCS) 5.x
Red Hat Ceph Storage (RHCS) 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.