ceph-deploy mon创建失败,异常

时间:2015-10-10 21:37:20

标签: ceph

我正在安装一个带有一个监控节点和一个osd的ceph集群。 我正在关注该文件: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相关的所有问题,但是我找不到针对此问题的精确解决方案。

有人可以帮我吗?

提前致谢。

2 个答案:

答案 0 :(得分:5)

我遇到了同样的错误,可以通过添加我的其他 ceph节点的主机名&来解决问题。 IpAdrress并添加" 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>

答案 1 :(得分:0)

我遇到了类似的问题...

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

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