I was trying to remove the (mon-node) without replacing it. 

What really happen is this, I was adding a new mon-node after an initial 
successful cluster setup with one mon-node 
but addition was not successful and it already affected the monmap, trying to 
remove with "ceph mon remove" or ceph-deploy mon destroy" are not successful. 

Also, when I removed the bad mon-node from the extracted monmap, the print was 
fine then I injected it but "ceph mon dump" after starting the mon with "start 
ceph-mon" is still showing the old monmap not the newly injected. 


Thanks, 

Sunday Olutayo 
Sadeeb Technologies Ltd 
7 Mayegun Street, Ojo 
Lagos State, Nigeria. 

Tel: +234 1 7404524 
D/L: +234 1 8169922 
Cell: +234 8054600338, 234 8096441688 
Fax: +234 8054895664 
mail: olut...@sadeeb.com 



----- Original Message -----

From: "Brian Andrus" <band...@redhat.com> 
To: "SUNDAY A. OLUTAYO" <olut...@sadeeb.com> 
Cc: "LOPEZ Jean-Charles" <jelo...@redhat.com>, ceph-de...@lists.ceph.com, 
"ceph-users" <ceph-users@lists.ceph.com> 
Sent: Thursday, February 19, 2015 6:23:50 PM 
Subject: Re: [ceph-users] Updating monmap 


Hi Sunday, 


did you verify the contents of your monmap? In general, the procedure might 
look something like this: 


    * ceph-mon -i <id> --extract-monmap /tmp/monmap 
    * monmaptool --print /tmp/monmap 
    * monmaptool --rm <old_mon_id> --add <new_mon_id> <new_mon_ip_and_port> 
--clobber /tmp/monmap 
    * monmaptool --print /tmp/monmap 


at this point, the monmap should look as you intend it to, with the old monitor 
removed and new monitor properly listed. Stop all ceph monitor daemons and 
inject the monmap to each one, then start them. 


    * stop ceph-mon 
    * ceph-mon -i <id> --inject-monmap /tmp/monmap 
    * start ceph-mon 



On Thu, Feb 19, 2015 at 9:39 AM, SUNDAY A. OLUTAYO < olut...@sadeeb.com > 
wrote: 




After the injection of the new monmap done. the monmap dump still reveal the 
old one. The old one is not overwritten to the new one 


Thanks, 

Sunday Olutayo 
Sadeeb Technologies Ltd 
7 Mayegun Street, Ojo 
Lagos State, Nigeria. 

Tel: +234 1 7404524 
D/L: +234 1 8169922 
Cell: +234 8054600338 , 234 8096441688 
Fax: +234 8054895664 
mail: olut...@sadeeb.com 





From: "LOPEZ Jean-Charles" < jelo...@redhat.com > 
To: "SUNDAY A. OLUTAYO" < olut...@sadeeb.com > 
Cc: "LOPEZ Jean-Charles" < jelo...@redhat.com >, "ceph-users" < 
ceph-users@lists.ceph.com >, ceph-de...@lists.ceph.com 
Sent: Wednesday, February 18, 2015 8:21:03 PM 
Subject: Re: [ceph-users] Updating monmap 



Hi, 


use the following command line: ceph-mon -i {monitor_id} --inject-monmap 
{updated_monmap_file} 


JC 



<blockquote>

On 18 Feb 2015, at 11:15, SUNDAY A. OLUTAYO < olut...@sadeeb.com > wrote: 



How do I update the ceph monmap after extracting and removing unwanted an ip in 
the monmap to the clean monmap? 



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





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


</blockquote>

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

Reply via email to