ceph: cannot create monitor: monitor address 'xxx' already in use (500)

kyriazis

Well-Known Member
Oct 28, 2019
98
6
48
Austin, TX
Hello,

I have a monitor node in our cluster that had an ungraceful reboot. After the node came up, the monitor could not join the cluster. After some retries I destroyed the monitor (from the GUI) and recreated it, but still could not join the cluster. I waited about a day "just in case" the issue resolved itself over time, but it didn't. Finally I decided to destroy the monitor again, and remove any possible breadcrumbs in the system; ie. remove the entry from ceph.conf and removed the /var/lib/ceph/mon/<monname> directory.

Trying to recreate the monitor from the GUI give me the error "monitor address 'xxx' already in use (500)".

What else do I need to clean up before I can recreate the monitor?

Thank you!

George
 
(a little bit late but...)

Look in your pve-ceph config /etc/pve/ceph.conf and delete the [mon.XYZ] section containing your address. Also delete your IP from the "mon_host" setting in the [globla] section above.
 
  • Like
Reactions: logiczny
Thanks (even though a bit late)!

I remember trying both of those things back then, but it didn't help. I ended up moving the mon to another node, but it still bugs me that I couldn't find a rational reason why there was an issue.