From: "Bernhard Glomm" Subject: Re: how to remove and re-add broken mon? SOLVED Date: Wed, 04 Sep 2013 15:21:06 +0000 Message-ID: <086d868ba20ebd557ee3cf166c27295bb1c2c381@ecologic.eu> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0331687445==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ceph-users-bounces-idqoXFIVOFJgJs9I8MT0rw@public.gmane.org Sender: ceph-users-bounces-idqoXFIVOFJgJs9I8MT0rw@public.gmane.org To: ceph-users-idqoXFIVOFJgJs9I8MT0rw@public.gmane.org Cc: ceph-devel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: ceph-devel.vger.kernel.org --===============0331687445== Content-Type: multipart/alternative; charset=UTF-8; boundary="=_fe7fbba5d5dc5fa6b5bdf92beab7a5d1" --=_fe7fbba5d5dc5fa6b5bdf92beab7a5d1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Removing a monitor, also like described in=0Ahttp://ceph.com/docs/master= /rados/deployment/ceph-deploy-mon/=0Adoesn't work=0A=0A----------------= =0Aroot@nuke36[/1]:/etc/ceph # ceph-deploy mon destroy nuke36=0A[ceph_de= ploy.mon][DEBUG ] Removing mon from nuke36=0A[ceph_deploy.mon][ERROR ] c= eph-mon deamon did not stop=0A[ceph_deploy][ERROR ] GenericError: Failed= to destroy 1 monitors=0A----------------=0A=0Ais this, I can't destroy= the mon on which I run the destroy command?=0A(I could destroy =0Abut s= ince I just added another two monitors to my cluster,=0Athe broken first= one is alive again...=0A=0Awell that should do as a work around for now= =0A(since I'm using the dev branch and do only testing stuff)=0Astill,= would be curious if I could have repaired it any other way.=0A=0ABernha= rd=0A=0AAm 04.09.2013 12:40:04, schrieb Bernhard Glomm:=0A> Hi all,=0A>= =0A> after some days of successful creating and destroying rbd's, snaps= hots,=0A> clones and migrating formats all of a sudden one of the monito= rs doesn't work anymore.=0A> I tried to remove and re-add the monitor fr= om the cluster, but that doesn't seem to work either.=0A> =0A> Here's th= e situation:=0A> I liked to use ceph-deploy to initiate the cluster.=0A>= Due to the broken ceph-create-keys in dumpling I turned to the gitbuild= er version=0A> now running=0A> =0A> ceph version 0.67.2-23-g24f2669 (24f= 2669783e2eb9d9af5ecbe106efed93366ba63)=0A> on uptodate raring systems=0A= > All of a sudden the host from which I ran ceph-deploy, and which shoul= d be one of the =0A> 5 monitors (from which 2 are also serving as OSDs)= has fallen out of the quorum as you can see here=0A> (yes, time is in s= ync on all nodes):=0A> =0A> ------------------=0A> root@nuke36[/0]:~ # c= eph -s=0A> 2013-09-04 11:09:56.039547 7f7a8820f700=C2=A0 1 -- :/0 messen= ger.start=0A> 2013-09-04 11:09:56.040646 7f7a8820f700=C2=A0 1 -- :/10162= 60 --> 192.168.242.92:6789/0 -- auth(proto 0 30 bytes epoch 0) v1 -- ?+0= 0x7f7a8000e8f0 con 0x7f7a8000e4e0=0A> 2013-09-04 11:09:56.041304 7f7a84= a08700=C2=A0 1 -- 192.168.242.36:0/1016260 learned my addr 192.168.242.3= 6:0/1016260=0A> 2013-09-04 11:09:56.042843 7f7a86a0c700=C2=A0 1 -- 192.1= 68.242.36:0/1016260 <=3D=3D mon.3 192.168.242.92:6789/0 1 =3D=3D=3D=3D m= on_map v1 =3D=3D=3D=3D 776+0+0 (2241333437 0 0) 0x7f7a70000c30 con 0x7f7= a8000e4e0=0A> 2013-09-04 11:09:56.043038 7f7a86a0c700=C2=A0 1 -- 192.168= .242.36:0/1016260 <=3D=3D mon.3 192.168.242.92:6789/0 2 =3D=3D=3D=3D aut= h_reply(proto 2 0 Success) v1 =3D=3D=3D=3D 33+0+0 (2063715990 0 0) 0x7f7= a70001060 con 0x7f7a8000e4e0=0A> 2013-09-04 11:09:56.043324 7f7a86a0c700= =C2=A0 1 -- 192.168.242.36:0/1016260 --> 192.168.242.92:6789/0 -- auth(p= roto 2 32 bytes epoch 0) v1 -- ?+0 0x7f7a74001af0 con 0x7f7a8000e4e0=0A>= 2013-09-04 11:09:56.044197 7f7a86a0c700=C2=A0 1 -- 192.168.242.36:0/101= 6260 <=3D=3D mon.3 192.168.242.92:6789/0 3 =3D=3D=3D=3D auth_reply(proto= 2 0 Success) v1 =3D=3D=3D=3D 206+0+0 (3910749728 0 0) 0x7f7a70001060 co= n 0x7f7a8000e4e0=0A> 2013-09-04 11:09:56.044375 7f7a86a0c700=C2=A0 1 --= 192.168.242.36:0/1016260 --> 192.168.242.92:6789/0 -- auth(proto 2 165= bytes epoch 0) v1 -- ?+0 0x7f7a740020d0 con 0x7f7a8000e4e0=0A> 2013-09-= 04 11:09:56.045376 7f7a86a0c700=C2=A0 1 -- 192.168.242.36:0/1016260 <=3D= =3D mon.3 192.168.242.92:6789/0 4 =3D=3D=3D=3D auth_reply(proto 2 0 Succ= ess) v1 =3D=3D=3D=3D 393+0+0 (3802320753 0 0) 0x7f7a700008f0 con 0x7f7a8= 000e4e0=0A> 2013-09-04 11:09:56.045457 7f7a86a0c700=C2=A0 1 -- 192.168.2= 42.36:0/1016260 --> 192.168.242.92:6789/0 -- mon_subscribe({monmap=3D0+}= ) v2 -- ?+0 0x7f7a8000ed80 con 0x7f7a8000e4e0=0A> 2013-09-04 11:09:56.04= 5550 7f7a8820f700=C2=A0 1 -- 192.168.242.36:0/1016260 --> 192.168.242.92= :6789/0 -- mon_subscribe({monmap=3D2+,osdmap=3D0}) v2 -- ?+0 0x7f7a80007= 9f0 con 0x7f7a8000e4e0=0A> 2013-09-04 11:09:56.045559 7f7a8820f700=C2=A0= 1 -- 192.168.242.36:0/1016260 --> 192.168.242.92:6789/0 -- mon_subscrib= e({monmap=3D2+,osdmap=3D0}) v2 -- ?+0 0x7f7a8000fa10 con 0x7f7a8000e4e0= =0A> 2013-09-04 11:09:56.046376 7f7a86a0c700=C2=A0 1 -- 192.168.242.36:0= /1016260 <=3D=3D mon.3 192.168.242.92:6789/0 5 =3D=3D=3D=3D mon_map v1= =3D=3D=3D=3D 776+0+0 (2241333437 0 0) 0x7f7a70001290 con 0x7f7a8000e4e0= =0A> 2013-09-04 11:09:56.046417 7f7a86a0c700=C2=A0 1 -- 192.168.242.36:0= /1016260 <=3D=3D mon.3 192.168.242.92:6789/0 6 =3D=3D=3D=3D mon_subscrib= e_ack(300s) v1 =3D=3D=3D=3D 20+0+0 (1524320885 0 0) 0x7f7a70001480 con 0= x7f7a8000e4e0=0A> 2013-09-04 11:09:56.046429 7f7a86a0c700=C2=A0 1 -- 192= .168.242.36:0/1016260 <=3D=3D mon.3 192.168.242.92:6789/0 7 =3D=3D=3D=3D= osd_map(22..22 src has 1..22) v3 =3D=3D=3D=3D 2355+0+0 (11792226 0 0) 0= x7f7a70001f70 con 0x7f7a8000e4e0=0A> 2013-09-04 11:09:56.046828 7f7a86a0= c700=C2=A0 1 -- 192.168.242.36:0/1016260 <=3D=3D mon.3 192.168.242.92:67= 89/0 8 =3D=3D=3D=3D mon_subscribe_ack(300s) v1 =3D=3D=3D=3D 20+0+0 (1524= 320885 0 0) 0x7f7a700008f0 con 0x7f7a8000e4e0=0A> 2013-09-04 11:09:56.04= 6948 7f7a86a0c700=C2=A0 1 -- 192.168.242.36:0/1016260 <=3D=3D mon.3 192.= 168.242.92:6789/0 9 =3D=3D=3D=3D osd_map(22..22 src has 1..22) v3 =3D=3D= =3D=3D 2355+0+0 (11792226 0 0) 0x7f7a700008c0 con 0x7f7a8000e4e0=0A> 201= 3-09-04 11:09:56.047071 7f7a86a0c700=C2=A0 1 -- 192.168.242.36:0/1016260= <=3D=3D mon.3 192.168.242.92:6789/0 10 =3D=3D=3D=3D mon_subscribe_ack(3= 00s) v1 =3D=3D=3D=3D 20+0+0 (1524320885 0 0) 0x7f7a70000df0 con 0x7f7a80= 00e4e0=0A> 2013-09-04 11:09:56.047547 7f7a8820f700=C2=A0 1 -- 192.168.24= 2.36:0/1016260 --> 192.168.242.92:6789/0 -- mon_command({"prefix": "get_= command_descriptions"} v 0) v1 -- ?+0 0x7f7a8000b0f0 con 0x7f7a8000e4e0= =0A> 2013-09-04 11:09:56.050938 7f7a86a0c700=C2=A0 1 -- 192.168.242.36:0= /1016260 <=3D=3D mon.3 192.168.242.92:6789/0 11 =3D=3D=3D=3D mon_command= _ack([{"prefix": "get_command_descriptions"}]=3D0=C2=A0 v0) v1 =3D=3D=3D= =3D 72+0+24040 (1092875540 0 2922658865) 0x7f7a700008c0 con 0x7f7a8000e4= e0=0A> 2013-09-04 11:09:56.089981 7f7a8820f700=C2=A0 1 -- 192.168.242.36= :0/1016260 --> 192.168.242.92:6789/0 -- mon_command({"prefix": "status"}= v 0) v1 -- ?+0 0x7f7a8000b0d0 con 0x7f7a8000e4e0=0A> 2013-09-04 11:09:5= 6.091348 7f7a86a0c700=C2=A0 1 -- 192.168.242.36:0/1016260 <=3D=3D mon.3= 192.168.242.92:6789/0 12 =3D=3D=3D=3D mon_command_ack([{"prefix": "stat= us"}]=3D0=C2=A0 v0) v1 =3D=3D=3D=3D 54+0+558 (1155462804 0 1174924833) 0= x7f7a70000db0 con 0x7f7a8000e4e0=0A> =C2=A0 cluster b085fba3-8e17-443c-b= b61-7758504538f8=0A> =C2=A0=C2=A0 health HEALTH_WARN 1 mons down, quorum= 0,1,3,4 atom01,atom02,ping,pong=0A> =C2=A0=C2=A0 monmap e1: 5 mons at {= atom01=3D192.168.242.31:6789/0,atom02=3D192.168.242.32:6789/0,nuke36=3D1= 92.168.242.36:6789/0,ping=3D192.168.242.92:6789/0,pong=3D192.168.242.93:= 6789/0}, election epoch 26, quorum 0,1,3,4 atom01,atom02,ping,pong=0A>= =C2=A0=C2=A0 osdmap e22: 2 osds: 2 up, 2 in=0A> =C2=A0=C2=A0=C2=A0 pgma= p v46761: 1192 pgs: 1192 active+clean; 7806 MB data, 20618 MB used, 3702= GB / 3722 GB avail; 9756B/s wr, 0op/s=0A> =C2=A0=C2=A0 mdsmap e17: 1/1/= 1 up {0=3Dpong=3Dup:active}, 1 up:standby=0A> =0A> 2013-09-04 11:09:56.0= 96071 7f7a8820f700=C2=A0 1 -- 192.168.242.36:0/1016260 mark_down 0x7f7a8= 000e4e0 -- 0x7f7a8000e280=0A> 2013-09-04 11:09:56.096516 7f7a8820f700=C2= =A0 1 -- 192.168.242.36:0/1016260 mark_down_all=0A> 2013-09-04 11:09:56.= 097065 7f7a8820f700=C2=A0 1 -- 192.168.242.36:0/1016260 shutdown complet= e.=0A> ------------------=0A> =0A> this is the ceph.conf that was genera= ted during ceph-deploy (well I added the debug lines obviously)=0A> =0A>= ------------------=0A> root@nuke36[/0]:~ # cat /etc/ceph/ceph.conf =0A>= [global]=0A> fsid =3D b085fba3-8e17-443c-bb61-7758504538f8=0A> mon_init= ial_members =3D ping, pong, nuke36, atom01, atom02=0A> mon_host =3D 192.= 168.242.92,192.168.242.93,192.168.242.36,192.168.242.31,192.168.242.32= =0A> auth_supported =3D cephx=0A> osd_journal_size =3D 1024=0A> filestor= e_xattr_use_omap =3D true=0A> debug ms =3D 1=0A> debug mon =3D 20=0A> --= ----------------=0A> =0A> after a reboot of the node I now find=0A> =0A>= ------------------=0A> root@nuke36[/1]:~ # ps ax | egrep ceph=0A> =C2= =A0 855 ?=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Ssl=C2=A0=C2=A0=C2= =A0 0:00 /usr/bin/ceph-mon --cluster=3Dceph -i nuke36 -f=0A> =C2=A0 856= ?=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Ss=C2=A0=C2=A0=C2=A0=C2=A0= 0:00 /usr/bin/python /usr/sbin/ceph-create-keys --cluster=3Dceph -i nuk= e36=0A> =C2=A01813 pts/1=C2=A0=C2=A0=C2=A0 R+=C2=A0=C2=A0=C2=A0=C2=A0 0:= 00 egrep --color=3Dauto ceph=0A> ------------------=0A> =0A> with ceph-c= reate-keys runing infinetly,=0A> while the key files but already exist= =0A> =0A> ------------------=0A> root@nuke36[/1]:~ # ls -lh /etc/ceph/= =0A> total 88K=0A> -rw-r--r-- 1 root root=C2=A0 72 Aug 30 15:54 ceph.boo= tstrap-mds.keyring=0A> -rw-r--r-- 1 root root=C2=A0 72 Aug 30 15:54 ceph= .bootstrap-osd.keyring=0A> -rw------- 1 root root=C2=A0 64 Aug 30 15:54= ceph.client.admin.keyring=0A> -rw-r--r-- 1 root root 303 Sep=C2=A0 4 10= :19 ceph.conf=0A> -rw-r--r-- 1 root root 59K Sep=C2=A0 3 10:15 ceph.log= =0A> -rw-r--r-- 1 root root=C2=A0 73 Aug 30 15:53 ceph.mon.keyring=0A> -= rw-r--r-- 1 root root=C2=A0 92 Aug 30 00:03 rbdmap=0A> -----------------= -=0A> =0A> and=0A> =0A> ------------------=0A> root@nuke36[/1]:~ # tree= -pfugiAD /var/lib/ceph/=0A> /var/lib/ceph=0A> [drwxr-xr-x root=C2=A0=C2= =A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Aug 30 15:54]=C2=A0 /var/li= b/ceph/bootstrap-mds=0A> [-rw------- root=C2=A0=C2=A0=C2=A0=C2=A0 root= =C2=A0=C2=A0=C2=A0=C2=A0 Aug 30 15:54]=C2=A0 /var/lib/ceph/bootstrap-mds= /ceph.keyring=0A> [drwxr-xr-x root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2= =A0=C2=A0=C2=A0 Aug 30 15:54]=C2=A0 /var/lib/ceph/bootstrap-osd=0A> [-rw= ------- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Aug 30= 15:54]=C2=A0 /var/lib/ceph/bootstrap-osd/ceph.keyring=0A> [drwxr-xr-x r= oot=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Aug 30=C2=A0 0:= 00]=C2=A0 /var/lib/ceph/mds=0A> [drwxr-xr-x root=C2=A0=C2=A0=C2=A0=C2=A0= root=C2=A0=C2=A0=C2=A0=C2=A0 Aug 30 15:53]=C2=A0 /var/lib/ceph/mon=0A>= [drwxr-xr-x root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 A= ug 30 15:53]=C2=A0 /var/lib/ceph/mon/ceph-nuke36=0A> [-rw-r--r-- root=C2= =A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Aug 30 15:53]=C2=A0 /= var/lib/ceph/mon/ceph-nuke36/done=0A> [-rw-r--r-- root=C2=A0=C2=A0=C2=A0= =C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Aug 30 15:53]=C2=A0 /var/lib/ceph/mo= n/ceph-nuke36/keyring=0A> [drwxr-xr-x root=C2=A0=C2=A0=C2=A0=C2=A0 root= =C2=A0=C2=A0=C2=A0=C2=A0 Sep=C2=A0 4 11:16]=C2=A0 /var/lib/ceph/mon/ceph= -nuke36/store.db=0A> [-rw-r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0= =C2=A0=C2=A0=C2=A0 Sep=C2=A0 3=C2=A0 6:21]=C2=A0 /var/lib/ceph/mon/ceph-= nuke36/store.db/007726.sst=0A> [-rw-r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0= root=C2=A0=C2=A0=C2=A0=C2=A0 Sep=C2=A0 3=C2=A0 6:21]=C2=A0 /var/lib/cep= h/mon/ceph-nuke36/store.db/007727.sst=0A> [-rw-r--r-- root=C2=A0=C2=A0= =C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Sep=C2=A0 3=C2=A0 6:21]=C2=A0= /var/lib/ceph/mon/ceph-nuke36/store.db/007728.sst=0A> [-rw-r--r-- root= =C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Sep=C2=A0 3=C2=A0= 6:21]=C2=A0 /var/lib/ceph/mon/ceph-nuke36/store.db/007729.sst=0A> [-rw-= r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Sep=C2= =A0 3=C2=A0 6:21]=C2=A0 /var/lib/ceph/mon/ceph-nuke36/store.db/007730.ss= t=0A> [-rw-r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2= =A0 Sep=C2=A0 4 10:14]=C2=A0 /var/lib/ceph/mon/ceph-nuke36/store.db/0077= 67.sst=0A> [-rw-r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2= =A0=C2=A0 Sep=C2=A0 4 10:14]=C2=A0 /var/lib/ceph/mon/ceph-nuke36/store.d= b/007768.sst=0A> [-rw-r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2= =A0=C2=A0=C2=A0 Sep=C2=A0 4 10:14]=C2=A0 /var/lib/ceph/mon/ceph-nuke36/s= tore.db/007769.sst=0A> [-rw-r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2= =A0=C2=A0=C2=A0=C2=A0 Sep=C2=A0 4 10:14]=C2=A0 /var/lib/ceph/mon/ceph-nu= ke36/store.db/007770.sst=0A> [-rw-r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0 ro= ot=C2=A0=C2=A0=C2=A0=C2=A0 Sep=C2=A0 4 10:14]=C2=A0 /var/lib/ceph/mon/ce= ph-nuke36/store.db/007772.sst=0A> [-rw-r--r-- root=C2=A0=C2=A0=C2=A0=C2= =A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Sep=C2=A0 4 10:14]=C2=A0 /var/lib/ceph/= mon/ceph-nuke36/store.db/007773.sst=0A> [-rw-r--r-- root=C2=A0=C2=A0=C2= =A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Sep=C2=A0 4 10:14]=C2=A0 /var/lib= /ceph/mon/ceph-nuke36/store.db/007774.sst=0A> [-rw-r--r-- root=C2=A0=C2= =A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Sep=C2=A0 4 10:14]=C2=A0 /v= ar/lib/ceph/mon/ceph-nuke36/store.db/007775.sst=0A> [-rw-r--r-- root=C2= =A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Sep=C2=A0 4 10:18]=C2= =A0 /var/lib/ceph/mon/ceph-nuke36/store.db/007777.sst=0A> [-rw-r--r-- ro= ot=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Sep=C2=A0 4 10:1= 9]=C2=A0 /var/lib/ceph/mon/ceph-nuke36/store.db/007780.sst=0A> [-rw-r--r= -- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Sep=C2=A0 4= 11:16]=C2=A0 /var/lib/ceph/mon/ceph-nuke36/store.db/007783.sst=0A> [-rw= -r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Sep=C2= =A0 4 11:16]=C2=A0 /var/lib/ceph/mon/ceph-nuke36/store.db/007784.log=0A>= [-rw-r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 S= ep=C2=A0 4 11:16]=C2=A0 /var/lib/ceph/mon/ceph-nuke36/store.db/CURRENT= =0A> [-rw-r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2= =A0 Aug 30 15:53]=C2=A0 /var/lib/ceph/mon/ceph-nuke36/store.db/LOCK=0A>= [-rw-r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 S= ep=C2=A0 4 11:16]=C2=A0 /var/lib/ceph/mon/ceph-nuke36/store.db/LOG=0A> [= -rw-r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Sep= =C2=A0 4 10:19]=C2=A0 /var/lib/ceph/mon/ceph-nuke36/store.db/LOG.old=0A>= [-rw-r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 S= ep=C2=A0 4 11:16]=C2=A0 /var/lib/ceph/mon/ceph-nuke36/store.db/MANIFEST-= 007782=0A> [-rw-r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2= =A0=C2=A0 Aug 30 15:53]=C2=A0 /var/lib/ceph/mon/ceph-nuke36/upstart=0A>= [drwxr-xr-x root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 A= ug 30=C2=A0 0:00]=C2=A0 /var/lib/ceph/osd=0A> [drwxr-xr-x root=C2=A0=C2= =A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Aug 30 15:53]=C2=A0 /var/li= b/ceph/tmp=0A> ------------------=0A> =0A> to compare with atom01 which= is still running in the cluster...=0A> =0A> ------------------=0A> root= @atom01[/0]:~ # tree -pfugiAD /var/lib/ceph/=0A> /var/lib/ceph=0A> [drwx= r-xr-x root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Aug 30= 15:54]=C2=A0 /var/lib/ceph/bootstrap-mds=0A> [-rw------- root=C2=A0=C2= =A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Aug 30 15:54]=C2=A0 /var/li= b/ceph/bootstrap-mds/ceph.keyring=0A> [drwxr-xr-x root=C2=A0=C2=A0=C2=A0= =C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Aug 30 15:54]=C2=A0 /var/lib/ceph/bo= otstrap-osd=0A> [-rw------- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2= =A0=C2=A0=C2=A0 Aug 30 15:54]=C2=A0 /var/lib/ceph/bootstrap-osd/ceph.key= ring=0A> [drwxr-xr-x root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0= =C2=A0 Aug 30=C2=A0 0:00]=C2=A0 /var/lib/ceph/mds=0A> [drwxr-xr-x root= =C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Aug 30 15:53]=C2= =A0 /var/lib/ceph/mon=0A> [drwxr-xr-x root=C2=A0=C2=A0=C2=A0=C2=A0 root= =C2=A0=C2=A0=C2=A0=C2=A0 Aug 30 15:53]=C2=A0 /var/lib/ceph/mon/ceph-atom= 01=0A> [-rw-r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0= =C2=A0 Aug 30 15:53]=C2=A0 /var/lib/ceph/mon/ceph-atom01/done=0A> [-rw-r= --r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Aug 30 1= 5:53]=C2=A0 /var/lib/ceph/mon/ceph-atom01/keyring=0A> [drwxr-xr-x root= =C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Sep=C2=A0 4 11:18]= =C2=A0 /var/lib/ceph/mon/ceph-atom01/store.db=0A> [-rw-r--r-- root=C2=A0= =C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Sep=C2=A0 4 11:25]=C2=A0= /var/lib/ceph/mon/ceph-atom01/store.db/006339.log=0A> [-rw-r--r-- root= =C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Sep=C2=A0 4 11:18]= =C2=A0 /var/lib/ceph/mon/ceph-atom01/store.db/006342.sst=0A> [-rw-r--r--= root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Sep=C2=A0 4 1= 1:18]=C2=A0 /var/lib/ceph/mon/ceph-atom01/store.db/006343.sst=0A> [-rw-r= --r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Sep=C2= =A0 4 11:18]=C2=A0 /var/lib/ceph/mon/ceph-atom01/store.db/006344.sst=0A>= [-rw-r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 S= ep=C2=A0 4 11:18]=C2=A0 /var/lib/ceph/mon/ceph-atom01/store.db/006345.ss= t=0A> [-rw-r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2= =A0 Sep=C2=A0 4 11:18]=C2=A0 /var/lib/ceph/mon/ceph-atom01/store.db/0063= 46.sst=0A> [-rw-r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2= =A0=C2=A0 Sep=C2=A0 4 11:18]=C2=A0 /var/lib/ceph/mon/ceph-atom01/store.d= b/006347.sst=0A> [-rw-r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2= =A0=C2=A0=C2=A0 Sep=C2=A0 4 11:18]=C2=A0 /var/lib/ceph/mon/ceph-atom01/s= tore.db/006348.sst=0A> [-rw-r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2= =A0=C2=A0=C2=A0=C2=A0 Aug 30 15:53]=C2=A0 /var/lib/ceph/mon/ceph-atom01/= store.db/CURRENT=0A> [-rw-r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0= =C2=A0=C2=A0=C2=A0 Aug 30 15:53]=C2=A0 /var/lib/ceph/mon/ceph-atom01/sto= re.db/LOCK=0A> [-rw-r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0= =C2=A0=C2=A0 Sep=C2=A0 4 11:18]=C2=A0 /var/lib/ceph/mon/ceph-atom01/stor= e.db/LOG=0A> [-rw-r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0= =C2=A0=C2=A0 Aug 30 15:53]=C2=A0 /var/lib/ceph/mon/ceph-atom01/store.db/= LOG.old=0A> [-rw-r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2= =A0=C2=A0 Sep=C2=A0 4 11:18]=C2=A0 /var/lib/ceph/mon/ceph-atom01/store.d= b/MANIFEST-000004=0A> [-rw-r--r-- root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2= =A0=C2=A0=C2=A0=C2=A0 Aug 30 15:53]=C2=A0 /var/lib/ceph/mon/ceph-atom01/= upstart=0A> [drwxr-xr-x root=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2= =A0=C2=A0 Aug 30=C2=A0 0:00]=C2=A0 /var/lib/ceph/osd=0A> [drwxr-xr-x roo= t=C2=A0=C2=A0=C2=A0=C2=A0 root=C2=A0=C2=A0=C2=A0=C2=A0 Aug 30 15:53]=C2= =A0 /var/lib/ceph/tmp=0A> ------------------=0A> =0A> the problem with c= eph-create-keys seemed to have been fixed with wip-4924=0A> since in tha= t version "rbd create" wouldn't work I switched to=0A> deb http://gitbui= lder.ceph.com/ceph-deb-raring-x86_64-basic/ref/dumpling/=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 raring main=0A> (runing on an uptodate raring)=0A>= I thought of just removing and than re-adding the failing mon but who d= o I do that?=0A> The documentation on=0A> http://ceph.com/docs/master/ra= dos/operations/add-or-rm-mons/=0A> says:=0A> "service ceph -a stop mon.{= mon-id}"=0A> =0A> ------------------=0A> root@nuke36[/1]:~ # service cep= h -a stop mon.nuke36=0A> /etc/init.d/ceph: mon.nuke36 not found (/etc/ce= ph/ceph.conf defines , /var/lib/ceph defines )=0A> root@nuke36[/1]:~ # s= ervice ceph -a stop mon.c=0A> /etc/init.d/ceph: mon.c not found (/etc/ce= ph/ceph.conf defines , /var/lib/ceph defines )=0A> root@nuke36[/1]:~ # s= ervice ceph -a stop mon.2=0A> /etc/init.d/ceph: mon.2 not found (/etc/ce= ph/ceph.conf defines , /var/lib/ceph defines )=0A> root@nuke36[/1]:~ # s= ervice ceph -a stop mon.ceph-nuke36=0A> /etc/init.d/ceph: mon.ceph-nuke3= 6 not found (/etc/ceph/ceph.conf defines , /var/lib/ceph defines )=0A> -= -----------------=0A> =0A> that doesn't help, manually stopping the daem= on doesn't work either (respawning, okay)=0A> but this combination leave= s me quite curious=0A> =0A> ------------------=0A> root@atom01[/0]:~ # c= eph health detail=0A> HEALTH_WARN 1 mons down, quorum 0,1,3,4 atom01,ato= m02,ping,pong=0A> mon.nuke36 (rank 2) addr 192.168.242.36:6789/0 is down= (out of quorum)=0A> root@atom01[/0]:~ # service ceph -a stop mon.nuke36= =0A> /etc/init.d/ceph: mon.nuke36 not found (/etc/ceph/ceph.conf defines= , /var/lib/ceph defines )=0A> /etc/init.d/ceph: mon.2 not found (/etc/c= eph/ceph.conf defines , /var/lib/ceph defines )=0A> root@atom01[/0]:~ #= service ceph -a stop mon.rank2=0A> ------------------=0A> =0A> somethin= g seems to be out of sync, at least with the documentation?=0A> any hint= how to proceed from here?=0A> =0A> TIA=0A> =0A> Bernhard=0A> =0A> =0A>= -- =0A> =0A > =0A > =0A > =0A =0A> =0A > =0A = > =0A > =0A > Bernhard Glomm=0A> =0A = IT Administration=0A> =0A> =0A > =0A > =0A = Phone:=0A > =0A > =0A = +49 (30) 86880 134=0A > =0A > =0A= Fax:=0A > =0A > =0A = +49 (30) 86880 100=0A > =0A >= =0A Skype:=0A > =0A >= =0A bernhard.glomm.ecologic=0A > =0A = > =0A =0A =0A =0A > =0A = > =0A > =0A > =0A > =0A >= =0A > =0A > =0A =0A =0A > =0A = Ecologic Institut gemeinn=C3=BCtzige GmbH | Pfalzburger Str. 43/44= | 10717 Berlin | Germany=0A> =0A GF: R. Andreas Kraemer | AG:= Charlottenburg HRB 57947 | USt/VAT-IdNr.: DE811963464=0A> =0A = Ecologic=E2=84=A2 is a Trade Mark (TM) of Ecologic Institut gemeinn=C3= =BCtzige GmbH=0A > =0A =0A =0A > root@nuke=0A> __= _____________________________________________=0A> ceph-users mailing lis= t=0A> ceph-users-idqoXFIVOFJgJs9I8MT0rw@public.gmane.org=0A> http://lists.ceph.com/listinfo.cgi/c= eph-users-ceph.com=0A=0A=0A=0A=0A-- =0A=0A=0A =0A =0A =0A = =0A =0A =0A =0A Bernhard Glomm=0A= =0A IT Administration=0A=0A=0A =0A =0A = Phone:=0A =0A =0A = +49 (30) 86880 134=0A =0A =0A = Fax:=0A =0A =0A = +49 (30) 86880 100=0A =0A =0A = Skype:=0A =0A =0A = bernhard.glomm.ecologic=0A =0A =0A = =0A =0A =0A =0A =0A =0A = =0A =0A =0A =0A =0A= =0A =0A =0A Ecologic Institut gemeinn=C3=BCtzig= e GmbH | Pfalzburger Str. 43/44 | 10717 Berlin | Germany=0A=0A = GF: R. Andreas Kraemer | AG: Charlottenburg HRB 57947 | USt/VAT-IdNr.:= DE811963464=0A=0A Ecologic=E2=84=A2 is a Trade Mark (TM) of Ec= ologic Institut gemeinn=C3=BCtzige GmbH=0A =0A =0A =0A = =0A --=_fe7fbba5d5dc5fa6b5bdf92beab7a5d1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Removing a monitor, also like describe= d in
http://ceph.com/docs/master/rados/deployment/ceph-deploy-mon/doesn't work

----------------
root@nuke36[/1]:/etc/ceph # cep= h-deploy mon destroy nuke36
[ceph_deploy.mon][DEBUG ] Removing mon fr= om nuke36
[ceph_deploy.mon][ERROR ] ceph-mon deamon did not stop
[= ceph_deploy][ERROR ] GenericError: Failed to destroy 1 monitors
-----= -----------

is this, I can't destroy the mon on which I run the d= estroy command?
(I could destroy
but since I just added another t= wo monitors to my cluster,
the broken first one is alive again...
=
well that should do as a work around for now
(since I'm using th= e dev branch and do only testing stuff)
still, would be curious if I= could have repaired it any other way.

Bernhard

Am 04.09.2= 013 12:40:04, schrieb Bernhard Glomm:
Hi all,

after some days of successful creating= and destroying rbd's, snapshots,
clones and migrating formats all of= a sudden one of the monitors doesn't work anymore.
I tried to remove= and re-add the monitor from the cluster, but that doesn't seem to work= either.

Here's the situation:
I liked to use ceph-deploy to i= nitiate the cluster.
Due to the broken ceph-create-keys in dumpling I= turned to the gitbuilder version
now running

ceph version 0.6= 7.2-23-g24f2669 (24f2669783e2eb9d9af5ecbe106efed93366ba63)
on uptodat= e raring systems
All of a sudden the host from which I ran ceph-deplo= y, and which should be one of the
5 monitors (from which 2 are also= serving as OSDs) has fallen out of the quorum as you can see here
(y= es, time is in sync on all nodes):

------------------
root@nuk= e36[/0]:~ # ceph -s
2013-09-04 11:09:56.039547 7f7a8820f700  1 -= - :/0 messenger.start
2013-09-04 11:09:56.040646 7f7a8820f700  1= -- :/1016260 --> 192.168.242.92:6789/0 -- auth(proto 0 30 bytes epoc= h 0) v1 -- ?+0 0x7f7a8000e8f0 con 0x7f7a8000e4e0
2013-09-04 11:09:56.= 041304 7f7a84a08700  1 -- 192.168.242.36:0/1016260 learned my addr= 192.168.242.36:0/1016260
2013-09-04 11:09:56.042843 7f7a86a0c700&nbs= p; 1 -- 192.168.242.36:0/1016260 <=3D=3D mon.3 192.168.242.92:6789/0= 1 =3D=3D=3D=3D mon_map v1 =3D=3D=3D=3D 776+0+0 (2241333437 0 0) 0x7f7a7= 0000c30 con 0x7f7a8000e4e0
2013-09-04 11:09:56.043038 7f7a86a0c700&nb= sp; 1 -- 192.168.242.36:0/1016260 <=3D=3D mon.3 192.168.242.92:6789/0= 2 =3D=3D=3D=3D auth_reply(proto 2 0 Success) v1 =3D=3D=3D=3D 33+0+0 (20= 63715990 0 0) 0x7f7a70001060 con 0x7f7a8000e4e0
2013-09-04 11:09:56.0= 43324 7f7a86a0c700  1 -- 192.168.242.36:0/1016260 --> 192.168.24= 2.92:6789/0 -- auth(proto 2 32 bytes epoch 0) v1 -- ?+0 0x7f7a74001af0 c= on 0x7f7a8000e4e0
2013-09-04 11:09:56.044197 7f7a86a0c700  1 --= 192.168.242.36:0/1016260 <=3D=3D mon.3 192.168.242.92:6789/0 3 =3D= =3D=3D=3D auth_reply(proto 2 0 Success) v1 =3D=3D=3D=3D 206+0+0 (3910749= 728 0 0) 0x7f7a70001060 con 0x7f7a8000e4e0
2013-09-04 11:09:56.044375= 7f7a86a0c700  1 -- 192.168.242.36:0/1016260 --> 192.168.242.92:= 6789/0 -- auth(proto 2 165 bytes epoch 0) v1 -- ?+0 0x7f7a740020d0 con 0= x7f7a8000e4e0
2013-09-04 11:09:56.045376 7f7a86a0c700  1 -- 192.= 168.242.36:0/1016260 <=3D=3D mon.3 192.168.242.92:6789/0 4 =3D=3D=3D= =3D auth_reply(proto 2 0 Success) v1 =3D=3D=3D=3D 393+0+0 (3802320753 0= 0) 0x7f7a700008f0 con 0x7f7a8000e4e0
2013-09-04 11:09:56.045457 7f7a= 86a0c700  1 -- 192.168.242.36:0/1016260 --> 192.168.242.92:6789/= 0 -- mon_subscribe({monmap=3D0+}) v2 -- ?+0 0x7f7a8000ed80 con 0x7f7a800= 0e4e0
2013-09-04 11:09:56.045550 7f7a8820f700  1 -- 192.168.242.= 36:0/1016260 --> 192.168.242.92:6789/0 -- mon_subscribe({monmap=3D2+,= osdmap=3D0}) v2 -- ?+0 0x7f7a800079f0 con 0x7f7a8000e4e0
2013-09-04 1= 1:09:56.045559 7f7a8820f700  1 -- 192.168.242.36:0/1016260 --> 1= 92.168.242.92:6789/0 -- mon_subscribe({monmap=3D2+,osdmap=3D0}) v2 -- ?+= 0 0x7f7a8000fa10 con 0x7f7a8000e4e0
2013-09-04 11:09:56.046376 7f7a86= a0c700  1 -- 192.168.242.36:0/1016260 <=3D=3D mon.3 192.168.242.= 92:6789/0 5 =3D=3D=3D=3D mon_map v1 =3D=3D=3D=3D 776+0+0 (2241333437 0 0= ) 0x7f7a70001290 con 0x7f7a8000e4e0
2013-09-04 11:09:56.046417 7f7a86= a0c700  1 -- 192.168.242.36:0/1016260 <=3D=3D mon.3 192.168.242.= 92:6789/0 6 =3D=3D=3D=3D mon_subscribe_ack(300s) v1 =3D=3D=3D=3D 20+0+0= (1524320885 0 0) 0x7f7a70001480 con 0x7f7a8000e4e0
2013-09-04 11:09:= 56.046429 7f7a86a0c700  1 -- 192.168.242.36:0/1016260 <=3D=3D mo= n.3 192.168.242.92:6789/0 7 =3D=3D=3D=3D osd_map(22..22 src has 1..22) v= 3 =3D=3D=3D=3D 2355+0+0 (11792226 0 0) 0x7f7a70001f70 con 0x7f7a8000e4e0=
2013-09-04 11:09:56.046828 7f7a86a0c700  1 -- 192.168.242.36:0/= 1016260 <=3D=3D mon.3 192.168.242.92:6789/0 8 =3D=3D=3D=3D mon_subscr= ibe_ack(300s) v1 =3D=3D=3D=3D 20+0+0 (1524320885 0 0) 0x7f7a700008f0 con= 0x7f7a8000e4e0
2013-09-04 11:09:56.046948 7f7a86a0c700  1 -- 19= 2.168.242.36:0/1016260 <=3D=3D mon.3 192.168.242.92:6789/0 9 =3D=3D= =3D=3D osd_map(22..22 src has 1..22) v3 =3D=3D=3D=3D 2355+0+0 (11792226= 0 0) 0x7f7a700008c0 con 0x7f7a8000e4e0
2013-09-04 11:09:56.047071 7f= 7a86a0c700  1 -- 192.168.242.36:0/1016260 <=3D=3D mon.3 192.168.= 242.92:6789/0 10 =3D=3D=3D=3D mon_subscribe_ack(300s) v1 =3D=3D=3D=3D 20= +0+0 (1524320885 0 0) 0x7f7a70000df0 con 0x7f7a8000e4e0
2013-09-04 11= :09:56.047547 7f7a8820f700  1 -- 192.168.242.36:0/1016260 --> 19= 2.168.242.92:6789/0 -- mon_command({"prefix": "get_command_descriptions"= } v 0) v1 -- ?+0 0x7f7a8000b0f0 con 0x7f7a8000e4e0
2013-09-04 11:09:5= 6.050938 7f7a86a0c700  1 -- 192.168.242.36:0/1016260 <=3D=3D mon= .3 192.168.242.92:6789/0 11 =3D=3D=3D=3D mon_command_ack([{"prefix": "ge= t_command_descriptions"}]=3D0  v0) v1 =3D=3D=3D=3D 72+0+24040 (1092= 875540 0 2922658865) 0x7f7a700008c0 con 0x7f7a8000e4e0
2013-09-04 11:= 09:56.089981 7f7a8820f700  1 -- 192.168.242.36:0/1016260 --> 192= .168.242.92:6789/0 -- mon_command({"prefix": "status"} v 0) v1 -- ?+0 0x= 7f7a8000b0d0 con 0x7f7a8000e4e0
2013-09-04 11:09:56.091348 7f7a86a0c7= 00  1 -- 192.168.242.36:0/1016260 <=3D=3D mon.3 192.168.242.92:6= 789/0 12 =3D=3D=3D=3D mon_command_ack([{"prefix": "status"}]=3D0  v= 0) v1 =3D=3D=3D=3D 54+0+558 (1155462804 0 1174924833) 0x7f7a70000db0 con= 0x7f7a8000e4e0
  cluster b085fba3-8e17-443c-bb61-7758504538f8   health HEALTH_WARN 1 mons down, quorum 0,1,3,4 atom01,ato= m02,ping,pong
   monmap e1: 5 mons at {atom01=3D192.168.242= .31:6789/0,atom02=3D192.168.242.32:6789/0,nuke36=3D192.168.242.36:6789/0= ,ping=3D192.168.242.92:6789/0,pong=3D192.168.242.93:6789/0}, election ep= och 26, quorum 0,1,3,4 atom01,atom02,ping,pong
   osdmap e2= 2: 2 osds: 2 up, 2 in
    pgmap v46761: 1192 pgs: 1192= active+clean; 7806 MB data, 20618 MB used, 3702 GB / 3722 GB avail; 975= 6B/s wr, 0op/s
   mdsmap e17: 1/1/1 up {0=3Dpong=3Dup:activ= e}, 1 up:standby

2013-09-04 11:09:56.096071 7f7a8820f700  1= -- 192.168.242.36:0/1016260 mark_down 0x7f7a8000e4e0 -- 0x7f7a8000e280<= br>2013-09-04 11:09:56.096516 7f7a8820f700  1 -- 192.168.242.36:0/1= 016260 mark_down_all
2013-09-04 11:09:56.097065 7f7a8820f700  1= -- 192.168.242.36:0/1016260 shutdown complete.
------------------
this is the ceph.conf that was generated during ceph-deploy (well I= added the debug lines obviously)

------------------
root@nuke= 36[/0]:~ # cat /etc/ceph/ceph.conf
[global]
fsid =3D b085fba3-8e1= 7-443c-bb61-7758504538f8
mon_initial_members =3D ping, pong, nuke36,= atom01, atom02
mon_host =3D 192.168.242.92,192.168.242.93,192.168.24= 2.36,192.168.242.31,192.168.242.32
auth_supported =3D cephx
osd_jo= urnal_size =3D 1024
filestore_xattr_use_omap =3D true
debug ms =3D= 1
debug mon =3D 20
------------------

after a reboot of th= e node I now find

------------------
root@nuke36[/1]:~ # ps ax= | egrep ceph
  855 ?       = Ssl    0:00 /usr/bin/ceph-mon --cluster=3Dceph -i nuke36= -f
  856 ?        Ss &n= bsp;   0:00 /usr/bin/python /usr/sbin/ceph-create-keys --clust= er=3Dceph -i nuke36
 1813 pts/1    R+  =    0:00 egrep --color=3Dauto ceph
------------------
with ceph-create-keys runing infinetly,
while the key files but alre= ady exist

------------------
root@nuke36[/1]:~ # ls -lh /etc/c= eph/
total 88K
-rw-r--r-- 1 root root  72 Aug 30 15:54 ceph.b= ootstrap-mds.keyring
-rw-r--r-- 1 root root  72 Aug 30 15:54 cep= h.bootstrap-osd.keyring
-rw------- 1 root root  64 Aug 30 15:54= ceph.client.admin.keyring
-rw-r--r-- 1 root root 303 Sep  4 10:= 19 ceph.conf
-rw-r--r-- 1 root root 59K Sep  3 10:15 ceph.log-rw-r--r-- 1 root root  73 Aug 30 15:53 ceph.mon.keyring
-rw-r-= -r-- 1 root root  92 Aug 30 00:03 rbdmap
------------------
<= br>and

------------------
root@nuke36[/1]:~ # tree -pfugiAD /v= ar/lib/ceph/
/var/lib/ceph
[drwxr-xr-x root    = ; root     Aug 30 15:54]  /var/lib/ceph/bootstr= ap-mds
[-rw------- root     root   = ;  Aug 30 15:54]  /var/lib/ceph/bootstrap-mds/ceph.keyring
= [drwxr-xr-x root     root     Au= g 30 15:54]  /var/lib/ceph/bootstrap-osd
[-rw------- root &= nbsp;   root     Aug 30 15:54]  /var/= lib/ceph/bootstrap-osd/ceph.keyring
[drwxr-xr-x root   = ;  root     Aug 30  0:00]  /var/lib/c= eph/mds
[drwxr-xr-x root     root  &nbs= p;  Aug 30 15:53]  /var/lib/ceph/mon
[drwxr-xr-x root =     root     Aug 30 15:53]  /var= /lib/ceph/mon/ceph-nuke36
[-rw-r--r-- root     ro= ot     Aug 30 15:53]  /var/lib/ceph/mon/ceph-nu= ke36/done
[-rw-r--r-- root     root  &n= bsp;  Aug 30 15:53]  /var/lib/ceph/mon/ceph-nuke36/keyring
= [drwxr-xr-x root     root     Se= p  4 11:16]  /var/lib/ceph/mon/ceph-nuke36/store.db
[-rw-r-= -r-- root     root     Sep = 3  6:21]  /var/lib/ceph/mon/ceph-nuke36/store.db/007726.sst[-rw-r--r-- root     root    = Sep  3  6:21]  /var/lib/ceph/mon/ceph-nuke36/store.db/00= 7727.sst
[-rw-r--r-- root     root  &nb= sp;  Sep  3  6:21]  /var/lib/ceph/mon/ceph-nuke36/st= ore.db/007728.sst
[-rw-r--r-- root     root =     Sep  3  6:21]  /var/lib/ceph/mon/ceph-= nuke36/store.db/007729.sst
[-rw-r--r-- root     r= oot     Sep  3  6:21]  /var/lib/ceph/= mon/ceph-nuke36/store.db/007730.sst
[-rw-r--r-- root   = ;  root     Sep  4 10:14]  /var/lib/c= eph/mon/ceph-nuke36/store.db/007767.sst
[-rw-r--r-- root  &= nbsp;  root     Sep  4 10:14]  /var/l= ib/ceph/mon/ceph-nuke36/store.db/007768.sst
[-rw-r--r-- root &nb= sp;   root     Sep  4 10:14]  /v= ar/lib/ceph/mon/ceph-nuke36/store.db/007769.sst
[-rw-r--r-- root = ;    root     Sep  4 10:14] = ; /var/lib/ceph/mon/ceph-nuke36/store.db/007770.sst
[-rw-r--r-- root&= nbsp;    root     Sep  4 10:14]&= nbsp; /var/lib/ceph/mon/ceph-nuke36/store.db/007772.sst
[-rw-r--r-- r= oot     root     Sep  4 10:= 14]  /var/lib/ceph/mon/ceph-nuke36/store.db/007773.sst
[-rw-r--r= -- root     root     Sep  4= 10:14]  /var/lib/ceph/mon/ceph-nuke36/store.db/007774.sst
[-rw-= r--r-- root     root     Sep&nbs= p; 4 10:14]  /var/lib/ceph/mon/ceph-nuke36/store.db/007775.sst
[= -rw-r--r-- root     root     Sep=   4 10:18]  /var/lib/ceph/mon/ceph-nuke36/store.db/007777.sst<= br>[-rw-r--r-- root     root    = Sep  4 10:19]  /var/lib/ceph/mon/ceph-nuke36/store.db/007780.= sst
[-rw-r--r-- root     root   &n= bsp; Sep  4 11:16]  /var/lib/ceph/mon/ceph-nuke36/store.db/007= 783.sst
[-rw-r--r-- root     root  &nbs= p;  Sep  4 11:16]  /var/lib/ceph/mon/ceph-nuke36/store.db= /007784.log
[-rw-r--r-- root     root  =    Sep  4 11:16]  /var/lib/ceph/mon/ceph-nuke36/stor= e.db/CURRENT
[-rw-r--r-- root     root  = ;   Aug 30 15:53]  /var/lib/ceph/mon/ceph-nuke36/store.db= /LOCK
[-rw-r--r-- root     root   =   Sep  4 11:16]  /var/lib/ceph/mon/ceph-nuke36/store.db/L= OG
[-rw-r--r-- root     root   &nb= sp; Sep  4 10:19]  /var/lib/ceph/mon/ceph-nuke36/store.db/LOG.= old
[-rw-r--r-- root     root   &n= bsp; Sep  4 11:16]  /var/lib/ceph/mon/ceph-nuke36/store.db/MAN= IFEST-007782
[-rw-r--r-- root     root  = ;   Aug 30 15:53]  /var/lib/ceph/mon/ceph-nuke36/upstart<= br>[drwxr-xr-x root     root    = Aug 30  0:00]  /var/lib/ceph/osd
[drwxr-xr-x root &nb= sp;   root     Aug 30 15:53]  /var/li= b/ceph/tmp
------------------

to compare with atom01 which is= still running in the cluster...

------------------
root@atom0= 1[/0]:~ # tree -pfugiAD /var/lib/ceph/
/var/lib/ceph
[drwxr-xr-x r= oot     root     Aug 30 15:54]&n= bsp; /var/lib/ceph/bootstrap-mds
[-rw------- root   &n= bsp; root     Aug 30 15:54]  /var/lib/ceph/boot= strap-mds/ceph.keyring
[drwxr-xr-x root     root&= nbsp;    Aug 30 15:54]  /var/lib/ceph/bootstrap-osd<= br>[-rw------- root     root    = Aug 30 15:54]  /var/lib/ceph/bootstrap-osd/ceph.keyring
[drwxr-= xr-x root     root     Aug 30&nb= sp; 0:00]  /var/lib/ceph/mds
[drwxr-xr-x root   &= nbsp; root     Aug 30 15:53]  /var/lib/ceph/mon=
[drwxr-xr-x root     root    = ; Aug 30 15:53]  /var/lib/ceph/mon/ceph-atom01
[-rw-r--r-- root&= nbsp;    root     Aug 30 15:53] = /var/lib/ceph/mon/ceph-atom01/done
[-rw-r--r-- root   = ;  root     Aug 30 15:53]  /var/lib/ceph/m= on/ceph-atom01/keyring
[drwxr-xr-x root     root&= nbsp;    Sep  4 11:18]  /var/lib/ceph/mon/ceph-= atom01/store.db
[-rw-r--r-- root     root &n= bsp;   Sep  4 11:25]  /var/lib/ceph/mon/ceph-atom01/= store.db/006339.log
[-rw-r--r-- root     root&nbs= p;    Sep  4 11:18]  /var/lib/ceph/mon/ceph-ato= m01/store.db/006342.sst
[-rw-r--r-- root     root=      Sep  4 11:18]  /var/lib/ceph/mon/ceph= -atom01/store.db/006343.sst
[-rw-r--r-- root    = root     Sep  4 11:18]  /var/lib/ceph/mon= /ceph-atom01/store.db/006344.sst
[-rw-r--r-- root   &n= bsp; root     Sep  4 11:18]  /var/lib/ceph= /mon/ceph-atom01/store.db/006345.sst
[-rw-r--r-- root  &nbs= p;  root     Sep  4 11:18]  /var/lib/= ceph/mon/ceph-atom01/store.db/006346.sst
[-rw-r--r-- root  =    root     Sep  4 11:18]  /var/= lib/ceph/mon/ceph-atom01/store.db/006347.sst
[-rw-r--r-- root &n= bsp;   root     Sep  4 11:18]  /= var/lib/ceph/mon/ceph-atom01/store.db/006348.sst
[-rw-r--r-- root&nbs= p;    root     Aug 30 15:53]  /v= ar/lib/ceph/mon/ceph-atom01/store.db/CURRENT
[-rw-r--r-- root &n= bsp;   root     Aug 30 15:53]  /var/l= ib/ceph/mon/ceph-atom01/store.db/LOCK
[-rw-r--r-- root  &nb= sp;  root     Sep  4 11:18]  /var/lib= /ceph/mon/ceph-atom01/store.db/LOG
[-rw-r--r-- root   =   root     Aug 30 15:53]  /var/lib/ceph/mo= n/ceph-atom01/store.db/LOG.old
[-rw-r--r-- root   &nbs= p; root     Sep  4 11:18]  /var/lib/ceph/m= on/ceph-atom01/store.db/MANIFEST-000004
[-rw-r--r-- root  &= nbsp;  root     Aug 30 15:53]  /var/lib/ce= ph/mon/ceph-atom01/upstart
[drwxr-xr-x root     r= oot     Aug 30  0:00]  /var/lib/ceph/osd[drwxr-xr-x root     root    = Aug 30 15:53]  /var/lib/ceph/tmp
------------------

the= problem with ceph-create-keys seemed to have been fixed with wip-4924since in that version "rbd create" wouldn't work I switched to
deb= http://gitbuilder.ceph.com/ceph-deb-raring-x86_64-basic/ref/dumpling/&n= bsp;      raring main
(runing on an uptodate= raring)
I thought of just removing and than re-adding the failing mo= n but who do I do that?
The documentation on
http://ceph.com/docs/= master/rados/operations/add-or-rm-mons/
says:
"service ceph -a sto= p mon.{mon-id}"

------------------
root@nuke36[/1]:~ # service= ceph -a stop mon.nuke36
/etc/init.d/ceph: mon.nuke36 not found (/etc= /ceph/ceph.conf defines , /var/lib/ceph defines )
root@nuke36[/1]:~ #= service ceph -a stop mon.c
/etc/init.d/ceph: mon.c not found (/etc/c= eph/ceph.conf defines , /var/lib/ceph defines )
root@nuke36[/1]:~ # s= ervice ceph -a stop mon.2
/etc/init.d/ceph: mon.2 not found (/etc/cep= h/ceph.conf defines , /var/lib/ceph defines )
root@nuke36[/1]:~ # ser= vice ceph -a stop mon.ceph-nuke36
/etc/init.d/ceph: mon.ceph-nuke36 n= ot found (/etc/ceph/ceph.conf defines , /var/lib/ceph defines )
-----= -------------

that doesn't help, manually stopping the daemon doe= sn't work either (respawning, okay)
but this combination leaves me qu= ite curious

------------------
root@atom01[/0]:~ # ceph health= detail
HEALTH_WARN 1 mons down, quorum 0,1,3,4 atom01,atom02,ping,po= ng
mon.nuke36 (rank 2) addr 192.168.242.36:6789/0 is down (out of quo= rum)
root@atom01[/0]:~ # service ceph -a stop mon.nuke36
/etc/init= .d/ceph: mon.nuke36 not found (/etc/ceph/ceph.conf defines , /var/lib/ce= ph defines )
/etc/init.d/ceph: mon.2 not found (/etc/ceph/ceph.conf d= efines , /var/lib/ceph defines )
root@atom01[/0]:~ # service ceph -a= stop mon.rank2
------------------

something seems to be out o= f sync, at least with the documentation?
any hint how to proceed from= here?

TIA

Bernhard


--
=0A =0A <= td style=3D"text-align:center;background-color:#FFFFFF;color:#182983;" a= lign=3D"center">=0A
=0A
=0A
=0A =0A =0A = Bernhard Glomm
=0A IT Administration

=0A =0A
=0A Phone:=0A = =0A =0A +49 (30) 86880 134= =0A =0A =0A = Fax:=0A =0A = =0A +49 (30) 86880 100=0A = =0A =0A = Skype:=0A =0A =0A bernhard.glomm.ecologic=0A =0A =0A =0A =0A = =0A =0A= =0A =0A =0A =0A =0A =0A =0A =0A =0A =0A Ecologic Inst= itut gemeinn=C3=BCtzige GmbH | Pfalzburger Str. 43/44 | 10717 Berlin | G= ermany
=0A GF: R. Andreas Kraemer | AG: Charlottenburg HRB 5= 7947 | USt/VAT-IdNr.: DE811963464
=0A Ecologic=E2=84=A2 is a= Trade Mark (TM) of Ecologic Institut gemeinn=C3=BCtzige GmbH=0A =
=0A =0A =0A
root@nuke
=0A =
_______________________________________________
ce= ph-users mailing list
ceph-users-idqoXFIVOFJgJs9I8MT0rw@public.gmane.org
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



--
=0A =0A =0A = =0A
=0A =0A
=0A =0A =0A 3D"*Ecologic=0A =0A =0A =0A =0A =0A =0A =0A =0A =0A =0A =0A =0A
= =0A =0A =0A Bernhard Glomm
=0A IT Administratio= n

=0A =0A =0A = =0A = =0A =0A =0A =0A= =0A = =0A =0A=0A =0A =0A =0A =0A =
=0A Phone:=0A <= /td>=0A =0A +49 (30) 86880 134=0A =
=0A = Fax:=0A = =0A +49 (30) 86880 100=0A
=0A Skype:=0A =0A bernhard.glomm.ecolo= gic=0A
=0A
=0A
= =0A
=0A= 3D"Website:"=0A =0A= 3D"|=0A 3D"|=0A = 3D"|=0A =3D"|<= /a>=0A 3D"|=0A 3D"|=0A
=0A =0A = Ecologic Institut gemeinn=C3=BCtzige GmbH | Pfalzburger Str. 43/= 44 | 10717 Berlin | Germany
=0A GF: R. Andreas Kraemer | AG:= Charlottenburg HRB 57947 | USt/VAT-IdNr.: DE811963464
=0A E= cologic=E2=84=A2 is a Trade Mark (TM) of Ecologic Institut gemeinn=C3=BC= tzige GmbH=0A
=0A
=0A
=0A
=0A
--=_fe7fbba5d5dc5fa6b5bdf92beab7a5d1-- --===============0331687445== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ceph-users mailing list ceph-users-idqoXFIVOFJgJs9I8MT0rw@public.gmane.org http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com --===============0331687445==--