Hello,

Not sure this exactly matches your case but you could try to reindex those 
orphan objects with 'radosgw-admin object reindex --bucket {bucket_name}'. See 
[1] for command arguments, like realm, zonegroup, zone, etc.
This command scans the data pool for objects that belong to a given bucket and 
add those objects back to the bucket index.

Same logic as rgw-restore-bucket-index [1][2] script that has proven to be 
successful in recovering bucket indexes destroyed by resharding [3] in the past.
'radosgw-admin object reindex --bucket {bucket_name}' may be faster than 
rgw-restore-bucket-index if I'm not mistaken.

Regards,
Frédéric.

[1] https://docs.ceph.com/en/latest/man/8/rgw-restore-bucket-index/
[2] https://github.com/ceph/ceph/blob/main/src/rgw/rgw-restore-bucket-index
[3] https://github.com/ceph/ceph/pull/50329

----- Le 10 Juil 24, à 15:24,  motahare...@gmail.com a écrit :

> Hello everyone,
> Is there any way to return orphaned objects to a bucket? A large bucket was
> accidentally corrupted and emptied, but its objects do exist in rados. bi list
> and bucket check returns empty list and bucket fix don't do anything as
> expected. How can we index associated rados objects back to the bucket?
> _______________________________________________
> ceph-users mailing list -- ceph-users@ceph.io
> To unsubscribe send an email to ceph-users-le...@ceph.io
_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io

Reply via email to