Newbie question - how do I add more monitors?
version 14.2.9 nautilus I have just set up my first cluster with one admin/monitor host and six OSDs. Everything appears to be working fine. I wanted to add a couple more monitors on the OSDs, and following the quick ceph deploy documentation I did: ceph-deploy mon add icephnode01 ceph-deploy mon add icephnode04 This installs and starts the monitor daemons on the two nodes, but they are stuck at probing. They have the right networking and firewall exemptions as far as I can tell, so I don't think it's that. If I get a copy of the monmap with 'ceph mon getmap' and use monmaptool to look at it I can only see that one host. Likewise ceph.conf only contains the one initial host. Should I have done something before the ceph-deploy mon add to modify the monmap? Or am I way off base? Thanks for your patience with a beginner question! Chris
Hello Chris, When using ceph deploy I use `ceph-deploy mon create $HOSTNAME` that then should add that host to the cluster as a monitor. Here is a link to the documentation: https://docs.ceph.com/docs/master/rados/deployment/ceph-deploy-mon/ Hope that helps Kind regards Gabryel Mason-Williams, Placement Student Address: Diamond Light Source Ltd., Diamond House, Harwell Science & Innovation Campus, Didcot, Oxfordshire OX11 0DE Email: gabryel.mason-williams@diamond.ac.uk ________________________________ From: c.stoddart@sheffield.ac.uk <c.stoddart@sheffield.ac.uk> Sent: 24 April 2020 11:01 To: ceph-users@ceph.io <ceph-users@ceph.io> Subject: [ceph-users] Newbie question - how do I add more monitors? version 14.2.9 nautilus I have just set up my first cluster with one admin/monitor host and six OSDs. Everything appears to be working fine. I wanted to add a couple more monitors on the OSDs, and following the quick ceph deploy documentation I did: ceph-deploy mon add icephnode01 ceph-deploy mon add icephnode04 This installs and starts the monitor daemons on the two nodes, but they are stuck at probing. They have the right networking and firewall exemptions as far as I can tell, so I don't think it's that. If I get a copy of the monmap with 'ceph mon getmap' and use monmaptool to look at it I can only see that one host. Likewise ceph.conf only contains the one initial host. Should I have done something before the ceph-deploy mon add to modify the monmap? Or am I way off base? Thanks for your patience with a beginner question! Chris _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io -- This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message. Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
The easiest way I have found to add monitors is to add them to the initial monitors list which will create them all at the same time. After running "ceph-deploy new {primary-node-name}" You will need to edit the ceph.conf file to add the other additional monitors. Edit the lines “mon_initial_members” and “mon_host” to contain all of the nodes hostnames/IPs that will be hosting monitor nodes ex: mon_initial_members = icephnode01, icephnode04 ex: mon_host = node01.IP, node04.IP Then after installing ceph on each of the nodes with ceph-deploy you need only run "ceph-deploy mon create-initial" This will deploy the monitor daemon to all hosts in the mon_initial_members group and they will then be able to communicate with each other.
participants (3)
-
c.stoddart@sheffield.ac.uk
-
jhamster@chem.byu.edu
-
Mason-Williams, Gabryel (DLSLtd,RAL,LSCI)