]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: add proxy to cache tier options 50552/head
authortancz1 <tancz1@lenovo.com>
Wed, 16 Mar 2022 09:20:40 +0000 (17:20 +0800)
committerRadosław Zarzyński <rzarzyns@redhat.com>
Wed, 15 Mar 2023 21:43:57 +0000 (22:43 +0100)
commita1d3ce7a1a2c7ecfb739a19a150527dce4e4dd8e
tree2120981bd6eeeb638e2e24a4fa626b9bed649136
parent6564fc1eeb25a353e73574bc770fa6cb6fd3ff95
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>
(cherry picked from commit 77ad5a810c7e21d7e12947a07a5ba9b079dd1081)
doc/man/8/ceph.rst
qa/workunits/cephtool/test.sh
src/mon/MonCommands.h
src/mon/OSDMonitor.cc