Red Hat Bugzilla – Bug 1304601
Documentation for "orphans find" tool
Last modified: 2016-03-01 03:21:47 EST
Description of problem:
Need to document the RGW orphans tool usage. https://bugzilla.redhat.com/show_bug.cgi?id=1254398.
The commands are:
#radosgw-admin orphans find --pool=<data pool> --job-id=<name> [--num-shards=<num shards>] [--orphan-stale-secs=<seconds>]
#radosgw-admin orphans finish --job-id=<job_name>
Version-Release number of selected component (if applicable):
Feel free to borrow from https://github.com/ceph/ceph/pull/7524
It would be nice to add Yehuda's C#10 to the doc. We should be more specific in what cases do objects leave behind orphans.
Also, there is a prerequisite to running " radosgw-admin orphans find" command.
The tool tries to open a radosgw log pool and fails. A log pool needs to exist prior to running the above command. The following command on the admin node should do it:
$ rados mkpool .log
Also, would be nice to add description for each option. For example:
Data pool to scan for leaked rados objects
Number of shards to use for keeping the temporary scan info
Thanks Aron. Doc looks fine. Moving the BZ to verified.