【问题标题】:Can not change ceph configuration无法更改ceph配置
【发布时间】:2022-01-10 10:18:13
【问题描述】:

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

sudo ceph config-key set bluestore_cache_size 200221225472

但是当运行这个命令时:

sudo ceph-conf --show-config |grep  bluestore_cache

总是 bluestore_cache_size = 0 出现。如何更改此配置?任何帮助将不胜感激。

【问题讨论】:

    标签: ceph


    【解决方案1】:

    试试这个:

    ceph tell osd.* injectargs --bluestore_cache_size=200221225472
    

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

    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/

    【讨论】:

    • 感谢您的回复。我之前使用过这个命令没有成功,我用这个命令来获取报告是不是错了? "ceph-conf --show-config |grep bluestore_cache"
    • 你可以在初始化集群的时候试试这个值吗在[osd]的ceph.conf中添加条目
    • 如何初始化集群?
    • 您需要在全新安装时设置此设置
    猜你喜欢
    • 2017-11-04
    • 2012-07-02
    • 2016-03-20
    • 2015-11-22
    • 2017-04-03
    • 1970-01-01
    • 2022-07-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多