]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools/ceph_objectstore_tool: add op "expand-log" 54586/head
authorXuehan Xu <xuxuehan@qianxin.com>
Thu, 16 Nov 2023 08:22:34 +0000 (16:22 +0800)
committerXuehan Xu <xuxuehan@qianxin.com>
Tue, 19 Dec 2023 14:38:35 +0000 (22:38 +0800)
commitb550e1c7970a9200706de753573066528d5d7179
tree60723451ace72cecbf1e44bdb877aee50768de4f
parenta973827cb8d10bdfeaebfd783d143cfdde710145
tools/ceph_objectstore_tool: add op "expand-log"

There are circumstances in which, although we can't find enough OSDs to
form a valid ec acting set, we can enough OSDs that are fully backfilled
and it's only because their PGLog are lagged behind that they can't be
added the acting set. In this case, right now, we can only drop the
entire pg's data by recreating it.

This commit add the ability to fill in the pg log gap between the
backfilled OSDs and the auth log shard, so the pg can be brought to
active losing only part of its data and those uncorruped data can be
recovered.

Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
src/tools/ceph_objectstore_tool.cc