]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: implement 'osd safe-to-destroy' and 'ok-to-stop' commands
authorSage Weil <sage@redhat.com>
Thu, 10 Aug 2017 18:06:02 +0000 (14:06 -0400)
committerSage Weil <sage@redhat.com>
Sat, 12 Aug 2017 02:54:33 +0000 (22:54 -0400)
commitbf9380457bba5a834ffa2927c73165e0f1960332
tree34bc2f86fe98de496c46373be96ce6f373f67548
parenta7612d33d1e4184af7faa6712fc50d6487a09c40
mgr: implement 'osd safe-to-destroy' and 'ok-to-stop' commands

An osd is safe to destroy if

- we have osd_stat for it
- osd_stat indicates no pgs stored
- all pgs are known
- no pgs map to it

An osd is ok ot stop if

- we have pg stats
- no pgs will drop below min_size

Signed-off-by: Sage Weil <sage@redhat.com>
doc/man/8/ceph.rst
doc/release-notes.rst
src/mgr/DaemonServer.cc
src/mgr/MgrCommands.h