无法部署CEPH监视器

时间:2016-04-07 17:10:42

标签: storage cluster-computing ceph

大家好日子,

我已经设置了一个包含三个虚拟机的测试环境,以便能够部署ceph集群。 这些机器都与CentOS7 64bit相同。我在所有这些上安装了ceph,并在第一节上安装了ceph。我在ceph-node1上安装了初始监视器,但是当我尝试在ceph-node2上安装时,我收到一个错误,我无法通过它。我不知道如何解决这个问题。有什么想法吗?

[root@ceph-node1 ~]# ceph-deploy mon create ceph-node2
[ceph_deploy.conf][DEBUG ] found configuration file at: /root/.cephdeploy.conf
[ceph_deploy.cli][INFO  ] Invoked (1.5.25): /usr/bin/ceph-deploy mon create ceph-node2
[ceph_deploy.mon][DEBUG ] Deploying mon, cluster ceph hosts ceph-node2
[ceph_deploy.mon][DEBUG ] detecting platform for host ceph-node2 ...
[ceph-node2][DEBUG ] connected to host: ceph-node2
[ceph-node2][DEBUG ] detect platform information from remote host
[ceph-node2][DEBUG ] detect machine type
[ceph_deploy.mon][INFO  ] distro info: CentOS Linux 7.2.1511 Core
[ceph-node2][DEBUG ] determining if provided host has same hostname in remote
[ceph-node2][DEBUG ] get remote short hostname
[ceph-node2][DEBUG ] deploying mon to ceph-node2
[ceph-node2][DEBUG ] get remote short hostname
[ceph-node2][DEBUG ] remote hostname: ceph-node2
[ceph-node2][DEBUG ] write cluster configuration to /etc/ceph/{cluster}.conf
[ceph-node2][DEBUG ] create the mon path if it does not exist
[ceph-node2][DEBUG ] checking for done path: /var/lib/ceph/mon/ceph-ceph-node2/done
[ceph-node2][DEBUG ] create a done file to avoid re-doing the mon deployment
[ceph-node2][DEBUG ] create the init path if it does not exist
[ceph-node2][DEBUG ] locating the `service` executable...
[ceph-node2][INFO  ] Running command: /usr/sbin/service ceph -c /etc/ceph/ceph.conf start mon.ceph-node2
[ceph-node2][DEBUG ] === mon.ceph-node2 ===
[ceph-node2][DEBUG ] Starting Ceph mon.ceph-node2 on ceph-node2...
[ceph-node2][WARNIN] Running as unit ceph-mon.ceph-node2.1460047679.725134876.service.
[ceph-node2][DEBUG ] Starting ceph-create-keys on ceph-node2...
[ceph-node2][INFO  ] Running command: systemctl enable ceph
[ceph-node2][WARNIN] ceph.service is not a native service, redirecting to /sbin/chkconfig.
[ceph-node2][WARNIN] Executing /sbin/chkconfig ceph on
[ceph-node2][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.ceph-node2.asok mon_status
[ceph-node2][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[ceph-node2][WARNIN] monitor: mon.ceph-node2, might not be running yet
[ceph-node2][INFO  ] Running command: ceph --cluster=ceph --admin-daemon /var/run/ceph/ceph-mon.ceph-node2.asok mon_status
[ceph-node2][ERROR ] admin_socket: exception getting command descriptions: [Errno 2] No such file or directory
[ceph-node2][WARNIN] ceph-node2 is not defined in `mon initial members`
[ceph-node2][WARNIN] monitor ceph-node2 does not exist in monmap
[ceph-node2][WARNIN] neither `public_addr` nor `public_network` keys are defined for monitors
[ceph-node2][WARNIN] monitors may not be able to form quorum

3 个答案:

答案 0 :(得分:1)

最终解决方案应符合警告信息: [ceph-node2] [WARNIN]未为监视器定义public_addrpublic_network个键

所以解决方案是将public_addr添加到ceph.conf文件中,如下所示: public_network = 192.168.111.0/24

答案 1 :(得分:0)

Ceph在虚拟服务器上表现不佳。我已经在VMWare上测试了Luminous and Mimic。您将无法获得裸机的相关结果(特别是对于I / O)...

对于以上错误,每个服务器上应该有2个网卡。您向客户展示的一个公共场所,以及供ceph重新平衡数据的一个私人场所。

还请记住在服务器上使用FQDN名称...

答案 2 :(得分:0)

我在八达通中也遇到了同样的问题,因为我在node3上的mon容器不能以错误开头:

no public_addr or public_network specified, and mon.node3 not present in monmap or ceph.conf

不幸的是,我还没有弄清楚发生这种情况的真正技术原因,只是删除守护程序mon.node3

ceph orch daemon rm mon.node3 --force

,等到ceph重新创建它。