2016-04-07 36 views
0

Herkese iyi günler,CEPH monitörünü dağıtılamıyor

Bir sanal kümeyi yerleştirebilmek için üç sanal makineyle bir test ortamı oluşturdum. Makinelerin hepsi CentOS7 64bit ile aynıdır. Hepsine ceph yükledim ve bir düğümde konuştum. İlk monitörü ceph-node1'e yükledim, fakat ceph-node2'ye kurmaya çalıştığımda, bir hata alıyorum ve onu geçemiyorum. Bunu nasıl gidereceğimi bilmiyorum. Herhangi bir fikir?

[[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

Aynı sorunu yerine getirdim. Bu konumdaki bir dosyaya dokunarak sorunun üstesinden geldim. Tam olarak ERROR'da açıklandığı gibi adlandırın. – Tiina

+0

Teşekkürler Tiina. Tam olarak hangi konum? Hata mesajından anlayamıyorum. "Admin_socket" hatası, kafa karıştırıcı: D –

+0

Gönderinizde "/var/run/ceph/ceph-mon.ceph-node2.asok" yazıyor. Yani bence burası. – Tiina

cevap

0

son çözüm uyarmak bilgi için uyum olmalıdır: [sef-node2] [uyarıyorum] ne public_addr ne de public_network tuşları Yani çözüm ceph.conf dosyasına public_addr ekliyor monitörlere

için tanımlanmıştır Bunun gibi: public_network = 192.168.111.0/24