]> 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)
committerKefu Chai <kchai@redhat.com>
Fri, 17 Jul 2015 11:14:58 +0000 (19:14 +0800)
commit306373427836ca0c2418dbe6caab26d74d94d12e
tree85129bebe3fd6a51e41f7135d40e81e3520e65c7
parentab4fa2a3e6ce56f3a6af4baf7f0f9bed792bcc67
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>
src/tools/ceph_monstore_tool.cc