Issues trying to delete mon

cjdnad

Member
Jul 21, 2022
40
2
13
I recently rebuilt a VM that acts as a node in my cluster. I forgot to remove the monitor attached to it.

Now the new node is up and running with the same name and working fine I still have the mon in the gui as 'unknown'
Tried removing it from the command line but says it does not exist. Cannot see it on the conf file either if I pull up 'ceph quorum_status --format json-pretty'

BUT if I try to add a new on for the node it says - 'already exists'!!

Catch 22. How can I remove the trail of the old mon with the same name that does not exist but does when I try to create it.
The old one is dead as unknown and will not start.

Thanks
 
Last edited:
Did you remove the mon dir in /var/lib/ceph?
Just to check - I need to remove the 'mon' in this directory?


root@pve3v:/var/lib/ceph# ls
bootstrap-mds bootstrap-mgr bootstrap-osd bootstrap-rbd bootstrap-rbd-mirror bootstrap-rgw crash mds mgr mon osd tmp
root@pve3v:/var/lib/ceph#
 
Just to check - I need to remove the 'mon' in this directory?


root@pve3v:/var/lib/ceph# ls
bootstrap-mds bootstrap-mgr bootstrap-osd bootstrap-rbd bootstrap-rbd-mirror bootstrap-rgw crash mds mgr mon osd tmp
root@pve3v:/var/lib/ceph#
Sorry, I meant to only delete the contents of the directory related to the monitor you're trying to get rid of
 
Sorry, I meant to only delete the contents of the directory related to the monitor you're trying to get rid of
Sorry can you clarify the steps I should take?
pve3v is the new node currently working but there is the old mon pve3v hanging around that is unknown
 
sorry still stuck with the old mon, but cannot create a new one for the same node as it says it already exists, but cannot delete it says 'no such monitor'
 
Thanks. This did it:

ls /var/lib/ceph/mon #should see name of monitor
rm -rf /var/lib/ceph/mon/<name of monitor

systemctl stop ceph-mon@<impacted-mon>
systemctl disable ceph-mon@<impacted-mon>
systemctl daemon-reload
systemctl reset-failed
pveceph mon destroy <impacted-mon>
 
Last edited:
Not quite clean - monitor at least is not shown under monitors anymore - but still shown on the overview of services - will look at this another time when I have more time


1671200247801.png

1671200076998.png
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!