]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon: add proxy to cache tier options
authortancz1 <tancz1@lenovo.com>
Wed, 16 Mar 2022 09:20:40 +0000 (17:20 +0800)
committertancz1 <tancz1@lenovo.com>
Fri, 29 Apr 2022 02:40:40 +0000 (10:40 +0800)
commit77ad5a810c7e21d7e12947a07a5ba9b079dd1081
tree0ee61f060f980afaf060d9ffc1bf5543aebb01d6
parent242e8f35e8a19bad0b1125bd500221b1273e0612
mon: add proxy to cache tier options

When we set the proxy mode to remove a writeback cache according to
the ceph official documentation an error occurred:

[root@controller-1 root]# ceph osd tier cache-mode cachepool proxy
Invalid command: proxy not in writeback|readproxy|readonly|none
osd tier cache-mode writeback|readproxy|readonly|none [--yes-i-really-mean-it]:
specify the caching mode for cache tier

According to the description of the official website document: since
a writeback cache may have modified data, you must take steps to ensure
that you do not lose any recent changes to objects in the cache before
you disable and remove it. Change the cache mode to proxy so that new and
modified objects will flush to the backing storage pool.

Fixes: https://tracker.ceph.com/issues/54576
Signed-off-by: tan changzhi <544463199@qq.com>
doc/man/8/ceph.rst
qa/workunits/cephtool/test.sh
src/mon/MonCommands.h
src/mon/OSDMonitor.cc