2016-04-07 18 views
0

Guten Tag alle,Nicht in der Lage, CEPH Monitor zu implementieren

Ich habe eine Testumgebung mit drei virtuellen Maschinen eingerichtet, um einen Ceph-Cluster bereitstellen zu können. Die Maschinen sind alle identisch mit CentOS7 64bit. Ich installiere Ceph auf allen von ihnen und Ceph deploy auf Knoten eins. Ich habe den ersten Monitor auf ceph-node1 installiert, aber wenn ich versuche, auf ceph-node2 zu installieren, erhalte ich einen Fehler und ich komme nicht darüber hinweg. Ich bin mir nicht sicher, wie ich das beheben soll. Irgendwelche Ideen?

[[email protected] ~]# 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 
+0

Ich habe das gleiche Problem getroffen. Ich überwinde das Problem, indem ich eine Datei an diesem Ort berühre. Benenne es genau wie in ERROR beschrieben. – Tiina

+0

Danke Tiina. Welcher Ort genau? Ich kann es aus der Fehlermeldung nicht herausfinden. Der Fehler von "admin_socket" ist verwirrend: D –

+0

Er sagt "/var/run/ceph/ceph-mon.ceph-node2.asok" in Ihrem Beitrag. Das ist der Ort, an den ich denke. – Tiina

Antwort

0

Die Endlösung der warnen info übereinstimmen sollte: [Ceph-Knoten 2] [warnin] weder public_addr noch public_network Tasten sind für Monitore definiert

So wird die Lösung public_addr in ceph.conf-Datei hinzufügen so: public_network = 192.168.111.0/24