Hi, maybe you can try this, http://cephnotes.ksperis.com/blog/2013/08/29/mon-failed-to-start
--see whether your third monitor exist in ceph Root# ceph mon dump dumped monmap epoch 12 epoch 12 fsid b3ecd9c5-182b-4978-9272-d4b278454500 last_changed 2013-10-23 17:57:44.185915 created 2013-05-16 16:46:00.572157 0: 10.xxx.xxx.xx1:6789/0 mon.0 1: 10.xxx.xxx.xx2:6789/0 mon.1 2: 10.xxx.xxx.xx3:6789/0 mon.2 --get monmap Root# ceph mon getmap -o /tmp/monmap got latest monmap --inject your new mon, change 2 with your mon name Root# ceph-mon -i 2 --inject-monmap /tmp/monmap restart the third monitor regards Rzk On Wed, Nov 20, 2013 at 12:28 PM, Dnsbed Ops <[email protected]> wrote: > And this is the ceph.conf: > > [global] > fsid = 0615ddc1-abff-4fe2-8919-68448b9f6faa > mon_initial_members = ceph2, ceph3, ceph4 > mon_host = 172.17.6.66,172.17.6.67,172.17.6.68 > auth_supported = cephx > osd_journal_size = 1024 > filestore_xattr_use_omap = true > > Thanks. > > > 于 2013-11-20 12:47, Dnsbed Ops 回复: > > Hello, >> >> I follow the doc there: >> http://ceph.com/docs/master/start/quick-ceph-deploy/ >> >> Just installed three mon-nodes, but one got failed. >> >> The command and output: >> ceph@ceph1:~/my-cluster$ ceph-deploy --overwrite-conf mon create >> ceph3.geocast.net >> [ceph_deploy.cli][INFO ] Invoked (1.3.2): /usr/bin/ceph-deploy >> --overwrite-conf mon create ceph3.geocast.net >> [ceph_deploy.mon][DEBUG ] Deploying mon, cluster ceph hosts >> ceph3.geocast.net >> [ceph_deploy.mon][DEBUG ] detecting platform for host ceph3 ... >> [ceph3.geocast.net][DEBUG ] connected to host: ceph3.geocast.net >> [ceph3.geocast.net][DEBUG ] detect platform information from remote host >> [ceph3.geocast.net][DEBUG ] detect machine type >> [ceph_deploy.mon][INFO ] distro info: Ubuntu 12.04 precise >> [ceph3][DEBUG ] determining if provided host has same hostname in remote >> [ceph3.geocast.net][DEBUG ] get remote short hostname >> [ceph3][DEBUG ] deploying mon to ceph3 >> [ceph3.geocast.net][DEBUG ] get remote short hostname >> [ceph3.geocast.net][DEBUG ] remote hostname: ceph3 >> [ceph3.geocast.net][DEBUG ] write cluster configuration to >> /etc/ceph/{cluster}.conf >> [ceph3.geocast.net][DEBUG ] create the mon path if it does not exist >> [ceph3.geocast.net][DEBUG ] checking for done path: >> /var/lib/ceph/mon/ceph-ceph3/done >> [ceph3.geocast.net][DEBUG ] create a done file to avoid re-doing the >> mon deployment >> [ceph3.geocast.net][DEBUG ] create the init path if it does not exist >> [ceph3.geocast.net][DEBUG ] locating the `service` executable... >> [ceph3.geocast.net][INFO ] Running command: sudo initctl emit >> ceph-mon cluster=ceph id=ceph3 >> [ceph3.geocast.net][INFO ] Running command: sudo ceph --cluster=ceph >> --admin-daemon /var/run/ceph/ceph-mon.ceph3.asok mon_status >> [ceph3][ERROR ] admin_socket: exception getting command descriptions: >> [Errno 2] No such file or directory >> [ceph3][WARNIN] monitor: mon.ceph3, might not be running yet >> [ceph3.geocast.net][INFO ] Running command: sudo ceph --cluster=ceph >> --admin-daemon /var/run/ceph/ceph-mon.ceph3.asok mon_status >> [ceph3][ERROR ] admin_socket: exception getting command descriptions: >> [Errno 2] No such file or directory >> [ceph3][WARNIN] monitor ceph3 does not exist in monmap >> [ceph3][WARNIN] neither `public_addr` nor `public_network` keys are >> defined for monitors >> [ceph3][WARNIN] monitors may not be able to form quorum >> >> >> The mon log for ceph3: >> 2013-11-20 12:32:07.622385 7f0c24b63780 0 ceph version 0.72.1 >> (4d923861868f6a15dcb33fef7f50f674997322de), process ceph-mon, pid 2267 >> 2013-11-20 12:32:07.711105 7f0c24b63780 0 mon.ceph3 does not exist >> in monmap, will attempt to join an existing cluster >> 2013-11-20 12:32:07.711318 7f0c24b63780 -1 no public_addr or >> public_network specified, and mon.ceph3 not present in monmap or >> ceph.conf >> 2013-11-20 12:32:07.730717 7f6b94ed6780 0 ceph version 0.72.1 >> (4d923861868f6a15dcb33fef7f50f674997322de), process ceph-mon, pid 2277 >> 2013-11-20 12:32:07.820180 7f6b94ed6780 0 mon.ceph3 does not exist >> in monmap, will attempt to join an existing cluster >> 2013-11-20 12:32:07.820402 7f6b94ed6780 -1 no public_addr or >> public_network specified, and mon.ceph3 not present in monmap or >> ceph.conf >> 2013-11-20 12:32:07.839424 7f62fa747780 0 ceph version 0.72.1 >> (4d923861868f6a15dcb33fef7f50f674997322de), process ceph-mon, pid 2287 >> 2013-11-20 12:32:07.929246 7f62fa747780 0 mon.ceph3 does not exist >> in monmap, will attempt to join an existing cluster >> 2013-11-20 12:32:07.929533 7f62fa747780 -1 no public_addr or >> public_network specified, and mon.ceph3 not present in monmap or >> ceph.conf >> 2013-11-20 12:32:07.952320 7f32d060e780 0 ceph version 0.72.1 >> (4d923861868f6a15dcb33fef7f50f674997322de), process ceph-mon, pid 2297 >> 2013-11-20 12:32:08.022799 7f32d060e780 0 mon.ceph3 does not exist >> in monmap, will attempt to join an existing cluster >> 2013-11-20 12:32:08.023155 7f32d060e780 -1 no public_addr or >> public_network specified, and mon.ceph3 not present in monmap or >> ceph.conf >> 2013-11-20 12:32:08.042415 7fa5e81dc780 0 ceph version 0.72.1 >> (4d923861868f6a15dcb33fef7f50f674997322de), process ceph-mon, pid 2307 >> 2013-11-20 12:32:08.115243 7fa5e81dc780 0 mon.ceph3 does not exist >> in monmap, will attempt to join an existing cluster >> 2013-11-20 12:32:08.115528 7fa5e81dc780 -1 no public_addr or >> public_network specified, and mon.ceph3 not present in monmap or >> ceph.conf >> 2013-11-20 12:32:08.134854 7fd9929c4780 0 ceph version 0.72.1 >> (4d923861868f6a15dcb33fef7f50f674997322de), process ceph-mon, pid 2317 >> 2013-11-20 12:32:08.224308 7fd9929c4780 0 mon.ceph3 does not exist >> in monmap, will attempt to join an existing cluster >> 2013-11-20 12:32:08.224541 7fd9929c4780 -1 no public_addr or >> public_network specified, and mon.ceph3 not present in monmap or >> ceph.conf >> >> >> I have tried many times, got no luck. >> Can you help? Thanks in advance. >> > _______________________________________________ > ceph-users mailing list > [email protected] > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com >
_______________________________________________ ceph-users mailing list [email protected] http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
