【问题标题】:ceph-deploy mon create failing with exceptionceph-deploy mon create 失败并出现异常
【发布时间】:2015-10-10 21:37:19
【问题描述】:

我正在安装一个带有一个监控节点和一个 osd 的 ceph-cluster。 我在关注文档:http://docs.ceph.com/docs/v0.86/start/quick-ceph-deploy/

在第 5 步中:添加初始监视器并收集密钥(ceph-deploy v1.1.3 中的新功能),

我收到以下异常:

**[ceph-mon1][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory**
[ceph-mon1][WARNIN] monitor: mon.ceph-mon1, might not be running yet
[ceph-mon1][INFO  ] Running command: sudo ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.ceph-mon1.asok mon_status
**[ceph-mon1][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[ceph-mon1][WARNIN] monitor ceph-mon1 does not exist in monmap**

Just for reference my **ceph.conf** is as follows:
*[global]

fsid = 351948ba-9716-4a04-802d-28b5510bfeb0

mon_initial_members = ceph-mon1,ceph-admin,ceph-osd1

mon_host = xxx.yyy.zzz.78,xxx.yyy.zzz.147,xxx.yyy.zzz.135

auth_cluster_required = cephx

auth_service_required = cephx

auth_client_required = cephx

filestore_xattr_use_omap = true

osd_pool_default_size = 2

public_addr = xxx.yyy.zzz.0*

我试图了解 ceph 用户邮件列表上与 sane 相关的所有问题,但我没有找到针对此问题的精确解决方案。

谁能帮我解决这个问题?

提前致谢。

【问题讨论】:

    标签: ceph


    【解决方案1】:

    我遇到了同样的错误,通过添加我的其他 ceph 节点的主机名和 IpAddrress 并添加“public_network ="

    来解决问题

    我在 ceph.conf 中调整的部分是:

    mon_initial_members =
    mon_host =
    public_network =
    

    cat /etc/ceph/ceph.conf

    [global]
    fsid = 33cb5c76-a685-469e-8cdd-fee7c98c3f4d
    mon_initial_members = ceph1,ceph2
    mon_host = 192.168.61.39,192.168.61.40
    auth_cluster_required = cephx
    auth_service_required = cephx
    auth_client_required = cephx
    filestore_xattr_use_omap = true
    public_network = 192.168.61.0/24
    

    以及运行命令:

    $ ceph-deploy --overwrite-conf mon create <ceph-node>
    

    【讨论】:

    • 我的所有配置都正确,但仍然看到同样的错误:(
    【解决方案2】:

    我有类似的问题...

    我的问题是我的部署服务器上的 /etc/hosts 中的别名主机名和我的目标服务器使用不同的主机名 ....

    始终确保您在服务器上的主机名与 ceph.conf 中的主机名相同,并且正确的 IP-HOSTNAME 与您部署框上的 /etc/hosts 中的相同...

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-03-22
      • 1970-01-01
      • 2021-12-21
      • 2021-03-04
      • 1970-01-01
      • 2020-03-31
      相关资源
      最近更新 更多