OK - found the problem:

> mon_status
> { "name": "ceph-mon3",
..
>       "mons": [
>             { "rank": 2,
>               "name": "mon.ceph-mon3",
NAME is wrong

>               "addr": "192.168.135.33:6789\/0"}]}}
>

In the docu http://ceph.com/docs/master/man/8/monmaptool/
the creation of the monmap is described like

"monmaptool  --create  --add  mon.a 192.168.0.10:6789 --add mon.b 
192.168.0.11:6789 \
  --add mon.c 192.168.0.12:6789 --clobber monmap"

But it must be 

"monmaptool  --create  --add  a 192.168.0.10:6789 --add b 192.168.0.11:6789 \
  --add c 192.168.0.12:6789 --clobber monmap"

So, i recreate my monmap again

monmaptool --create --add ceph-mon1 192.168.135.31:6789 --add ceph-mon2 
192.168.135.32:6789 --add ceph-mon3 192.168.135.33:6789 --fsid 
c7b12656-15a6-41b0-963f-4f47c62497dc --clobber monmap

and reinject the it to all my mon's
        ceph-mon -i ceph-mon3 --inject-monmap /tmp/monmap

Now, all looks fine:
root@ceph-mon3:~# ceph --cluster=ceph --admin-daemon 
/var/run/ceph/ceph-mon.ceph-mon3.asok mon_status
{ "name": "ceph-mon3",
  "rank": 2,
  "state": "peon",
  "election_epoch": 236,
  "quorum": [
        0,
        1,
        2],

Maybe somebody will adjust the docu on 
ttp://ceph.com/docs/master/man/8/monmaptool/ ?

thx
Danny

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to