Instead of generating a huge list of objects to recover, and then pushing
them, iterate over the collection and copy objects as we go.
Disable various bits of backlog code; it will all get ripped out shortly.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Handle MOSDPGScan messages to request or send a digest of a range of
objects in a collection, sorted in hobject_t (hash) order.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Consolidate callers, eliminate obsolete backlog ones.
New process:
- pick best log, with preferences for those that might end up primary
- pick best primary that is log-contiguous with best log, with preference
for longer tails that will result in more acting osds.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
Primaries need this, but replicas don't: the primary will explicitly pull
the pieces of the object that it wants.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
We are always pushing soid. If we are missing snapdir locally, that means
we can't do an informed efficient clone, and should push the whole
object... NOT that we should push snapdir!
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
This caused some discussions on the mailing list, so let's try to be clear
about the meaning of an OSD weight.
Signed-Off-By: Andre Noll <maan@systemlinux.org>
"osd pool set" was already documented, but the corresponding "get"
command was not. This patch adds the list of valid fields for this
command, together with short descriptions.
Thanks to Gregory Farnum for pointing out a flaw in the description
of lpl_num and lpgp_num in an earlier version of the patch.
Signed-Off-By: Andre Noll <maan@systemlinux.org>
This list was lacking a few fields: crash_replay_interval, pg_num,
pgp_num and crush_ruleset. Include these fields and add add short
descriptions.
Signed-Off-By: Andre Noll <maan@systemlinux.org>
The set of OSD commands which added by the previous commit is
incomplete. This patch adds documentation for the following
OSD commands which were previously missing: dump, tree, crush,
cluster_snap, lost, create, rm.
Signed-Off-By: Andre Noll <maan@systemlinux.org>
This adds the content of the wiki page at
http://ceph.newdream.net/wiki/Monitor_commands
to doc/control.rst in order to make it available at the new official
location for the ceph documentation. This first patch is just the
result of a cut-and-paste operation. There are no changes in content,
but the text was converted to rst format.
Signed-Off-By: Andre Noll <maan@systemlinux.org>