How to Delete Ghost Monitor in Ceph Cluster

How to delete ghost monitor in ceph cluster


Today , after I let a new server join pve cluster. ceph mon is stopped. I want to start or delete it , I always got a failed notification. After search and try to fix it. At last I fixed it.Here is what I had do

Issue description

1
2
3
4
root@xa-autotest-hci04:~# pveceph createmon
monitor 'xa-autotest-hci04' already exists
root@xa-autotest-hci04:~# pveceph mon destroy xa-autotest-hci04
no such monitor id 'xa-autotest-hci04'

How to fixed it

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#stop ceph-mon@xa-autotest-hci04 service
systemctl stop ceph-mon@xa-autotest-hci04

#Disable ceph-mon@xa-autotest-hci04 service
systemctl disable ceph-mon@xa-autotest-hci04


pveceph purge
rm -rf  /var/lib/ceph/mon/ceph-xa-autotest-hci04

pveceph createmon
#Created symlink /etc/systemd/system/ceph-mon.target.wants/ceph-mon@xa-autotest-hci04.service -> /lib/systemd/system/ceph-mon@.service.
Licensed under CC BY-NC-SA 4.0
Last updated on Sep 19, 2024 09:13 UTC
Built with Hugo
Theme Stack designed by Jimmy