]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tools/ceph-monstore-tools: add rewrite command
authorKefu Chai <kchai@redhat.com>
Fri, 19 Jun 2015 14:57:57 +0000 (22:57 +0800)
committerLoic Dachary <ldachary@redhat.com>
Fri, 29 Jan 2016 04:34:42 +0000 (11:34 +0700)
commit9035c69481f4aa4786414ac41cbc36fb4a3ca51d
treeff844638dd69775a10b6f1e0b68d84a8e779b993
parent90aaed744243dfc7c620f91e19fc0bfa233f711f
tools/ceph-monstore-tools: add rewrite command

"rewrite" command will
 - add a new osdmap version to update current osdmap held by OSDMonitor
 - add a new paxos version, as a proposal it will
   * rewrite all osdmap epochs from specified epoch to  the last_committed
     one with the specified crush map.
   * add the new osdmap which is added just now
so the leader monitor can trigger a recovery process to apply the transaction
to all monitors in quorum, and hence bring them back to normal after being
injected with a faulty crushmap.

Fixes: #11815
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 306373427836ca0c2418dbe6caab26d74d94d12e)
src/tools/ceph_monstore_tool.cc