首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >无法更改ceph配置

无法更改ceph配置
EN

Stack Overflow用户
提问于 2021-12-04 09:55:47
回答 1查看 51关注 0票数 0

我在5个节点上使用cephadm部署了ceph集群,我正在尝试使用以下命令更改bluestore_cache_size:

代码语言:javascript
复制
sudo ceph config-key set bluestore_cache_size 200221225472

但在运行此命令时:

代码语言:javascript
复制
sudo ceph-conf --show-config |grep  bluestore_cache

将始终显示bluestore_cache_size =0。如何更改此配置?任何帮助都将不胜感激。

EN

回答 1

Stack Overflow用户

发布于 2021-12-04 15:01:28

试试这个:

代码语言:javascript
复制
ceph tell osd.* injectargs --bluestore_cache_size=200221225472

您可能需要了解不同的配置

代码语言:javascript
复制
The following CLI commands are used to configure the cluster:

    ceph config dump will dump the entire configuration database for the cluster.

    ceph config get <who> will dump the configuration for a specific daemon or client (e.g., mds.a), as stored in the monitors’ configuration database.

    ceph config set <who> <option> <value> will set a configuration option in the monitors’ configuration database.

    ceph config show <who> will show the reported running configuration for a running daemon. These settings may differ from those stored by the monitors if there are also local configuration files in use or options have been overridden on the command line or at run time. The source of the option values is reported as part of the output.

    ceph config assimilate-conf -i <input file> -o <output file> will ingest a configuration file from input file and move any valid options into the monitors’ configuration database. Any settings that are unrecognized, invalid, or cannot be controlled by the monitor will be returned in an abbreviated config file stored in output file. This command is useful for transitioning from legacy configuration files to centralized monitor-based configuration.

来源:https://docs.ceph.com/en/latest/rados/configuration/ceph-conf/

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70224605

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档