|
| 1 | +:orphan: |
| 2 | + |
| 3 | +================================================================================== |
| 4 | + rgw-restore-bucket-index -- try to restore a bucket's objects to its bucket index |
| 5 | +================================================================================== |
| 6 | + |
| 7 | +.. program:: rgw-restore-bucket-index |
| 8 | + |
| 9 | +Synopsis |
| 10 | +======== |
| 11 | + |
| 12 | +| **rgw-restore-bucket-index** |
| 13 | +
|
| 14 | +Description |
| 15 | +=========== |
| 16 | + |
| 17 | +:program:`rgw-restore-bucket-index` is an *EXPERIMENTAL* RADOS gateway |
| 18 | +user administration utility. It scans the data pool for objects that |
| 19 | +belong to a given bucket and tries to add those objects back to the |
| 20 | +bucket index. It's intended as a **last resort** after a |
| 21 | +**catastrophic** loss of a bucket index. Please thorougly review the |
| 22 | +*Warnings* listed below. |
| 23 | + |
| 24 | +The utility works with regular (i.e., un-versioned) buckets, versioned |
| 25 | +buckets, and buckets were versioning has been suspended. |
| 26 | + |
| 27 | +Warnings |
| 28 | +======== |
| 29 | + |
| 30 | +This utility is currently considered *EXPERIMENTAL*. |
| 31 | + |
| 32 | +The results are unpredictable if the bucket is in |
| 33 | +active use while this utility is running. |
| 34 | + |
| 35 | +The results are unpredictable if only some bucket's objects are |
| 36 | +missing from the bucket index. In such a case, consider using the |
| 37 | +"object reindex" subcommand of `radosgw-admin` to restore object's to |
| 38 | +the bucket index one-by-one. |
| 39 | + |
| 40 | +For objects in versioned buckets, if the latest version is a delete |
| 41 | +marker, it will be restored. If a delete marker has been written over |
| 42 | +with a new version, then that delete marker will not be restored. This |
| 43 | +should have minimal impact on results in that the it recovers the |
| 44 | +latest version and previous versions are all accessible. |
| 45 | + |
| 46 | +Command-Line Arguments |
| 47 | +====================== |
| 48 | + |
| 49 | +.. option:: -b <bucket> |
| 50 | + |
| 51 | + Specify the bucket to be reindexed. |
| 52 | + |
| 53 | +.. option:: -p <pool> |
| 54 | + |
| 55 | + Optional, specify the data pool containing head objects for the |
| 56 | + bucket. If omitted the utility will try to determine the data pool |
| 57 | + on its own. |
| 58 | + |
| 59 | +.. option:: -r <realm-name> |
| 60 | + |
| 61 | + Optional, specify the realm if the restoration is not being applied |
| 62 | + to the default realm. |
| 63 | + |
| 64 | +.. option:: -g <zonegroup-name> |
| 65 | + |
| 66 | + Optional, specify the zonegroup if the restoration is not being applied |
| 67 | + to the default zonegroup. |
| 68 | + |
| 69 | +.. option:: -z <zone-name> |
| 70 | + |
| 71 | + Optional, specify the zone if the restoration is not being applied |
| 72 | + to the default zone. |
| 73 | + |
| 74 | +.. option:: -l <rados-ls-output-file> |
| 75 | + |
| 76 | + Optional, specify a file containing the output of a rados listing |
| 77 | + of the data pool. Since listing the data pool can be an expensive |
| 78 | + and time-consuming operation, if trying to recover the indices for |
| 79 | + multiple buckets, it could be more efficient to re-use the same |
| 80 | + listing. |
| 81 | + |
| 82 | +.. option:: -y |
| 83 | + |
| 84 | + Optional, proceed without further prompting. Without this option |
| 85 | + the utility will display some information and prompt the user as to |
| 86 | + whether to proceed. When provided, the utility will simply |
| 87 | + proceed. Please use caution when using this option. |
| 88 | + |
| 89 | +Examples |
| 90 | +======== |
| 91 | + |
| 92 | +Attempt to restore the index for a bucket named *summer-2023-photos*:: |
| 93 | + |
| 94 | + $ rgw-restore-bucket-index -b summer-2023-photos |
| 95 | + |
| 96 | +Availability |
| 97 | +============ |
| 98 | + |
| 99 | +:program:`rgw-restore-bucket-index` is part of Ceph, a massively |
| 100 | +scalable, open-source, distributed storage system. Please refer to |
| 101 | +the Ceph documentation at https://docs.ceph.com for more information. |
| 102 | + |
| 103 | +See also |
| 104 | +======== |
| 105 | + |
| 106 | +:doc:`radosgw-admin <radosgw-admin>`\(8) |
0 commit comments