【问题标题】:Failed to add new osd into monitor node in ceph在 ceph 中添加新 osd 到监控节点失败
【发布时间】:2017-11-23 10:51:47
【问题描述】:

我正在尝试通过以下命令添加一个 osd 节点

ceph-deploy osd prepare ceph-02:/dev/sdb

发现配置文件 /etc/ceph/ceph.conf 存在的错误 有不同的内容。用--overwrite-conf覆盖。

如何使用overwrite-conf

错误日志:

[ceph_deploy.osd][INFO  ] Distro info: CentOS Linux 7.4.1708 Core

[ceph_deploy.osd][DEBUG ] Deploying osd to ceph-02

[ceph-02][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf

[ceph_deploy.osd][ERROR ] RuntimeError: config file /etc/ceph/ceph.conf exists 

with different content; use --overwrite-conf to overwrite

[ceph_deploy][ERROR ] GenericError: Failed to create 1 OSDs

【问题讨论】:

    标签: ceph


    【解决方案1】:

    这是ceph-deploy 命令的正常行为。只需运行ceph-deploy --overwrite-conf osd prepare ceph-02:/dev/sdb。这将替换您现有的 /etc/ceph/ceph.conf。 这将解决您的问题。

    【讨论】:

      猜你喜欢
      • 2021-02-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-05
      • 2022-11-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多