Can you return orphaned objects to a bucket?
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?
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, motaharesdq@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-leave@ceph.io
Hi, Currently I see it only supports the latest version, is there any way to support old versions like Pacific or Quincy?
Hi, You're right. The object reindex subcommand backport was rejected for P and is still pending for Q and R. [1] Use rgw-restore-bucket-index script instead. Regards, Frédéric. [1] https://tracker.ceph.com/issues/61405 ________________________________ De : vuphung69@gmail.com Envoyé : mercredi 7 août 2024 01:38 À : ceph-users@ceph.io Objet : [ceph-users] Re: Can you return orphaned objects to a bucket? Hi, Currently I see it only supports the latest version, is there any way to support old versions like Pacific or Quincy? _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
participants (3)
-
Frédéric Nass
-
motaharesdq@gmail.com
-
vuphung69@gmail.com