Tried to purge and no ceph.conf anymore, it didn't work!There seems to be some leftover. After you purged Ceph, is/var/lib/ceph/
empty? And is there no ceph.conf anymore?
Tried many ways,
found out at last, with no this parameter, it‘s ok!
Tried to purge and no ceph.conf anymore, it didn't work!There seems to be some leftover. After you purged Ceph, is/var/lib/ceph/
empty? And is there no ceph.conf anymore?
# pveceph init --disable_cephx 1 --network 172.22.255.0/24
# pveceph mon create
unable to get monitor info from DNS SRV with service name: ceph-mon
Could not connect to ceph cluster despite configured monitors
# ceph -s
unable to get monitor info from DNS SRV with service name: ceph-mon
[errno 2] error connecting to the cluster
/etc/hosts
and ip addresses.There's nothing special in /etc/hosts, there were fresh systems on the nodes. I saw the article, nothing related to the problem there.@albert_a, check your/etc/hosts
and ip addresses.
https://pve.proxmox.com/pve-docs/chapter-pveceph.html
pveceph mds destroy <mdsid>
pveceph osd destroy <osdid>
pveceph mgr destroy <mgrid>
pveceph mon destroy <monid>
rm /etc/ceph/ceph.conf #removes the link
systemctl stop ceph-mon@<monid>.service
systemctl disable ceph-mon@<monid>.service
rm /etc/pve/ceph.conf
rm -r /var/lib/ceph/mon/ceph-<monid>/
My first thought, the cluster hast network issues. If you more issues pop up, best open up a new thread.
rm -rf /etc/systemd/system/ceph*
killall -9 ceph-mon ceph-mgr ceph-mds
rm -rf /var/lib/ceph/mon/ /var/lib/ceph/mgr/ /var/lib/ceph/mds/
pveceph purge
apt purge ceph-mon ceph-osd ceph-mgr ceph-mds
rm /etc/init.d/ceph
for i in $(apt search ceph | grep installed | awk -F/ '{print $1}'); do apt reinstall $i; done
dpkg-reconfigure ceph-base
dpkg-reconfigure ceph-mds
dpkg-reconfigure ceph-common
dpkg-reconfigure ceph-fuse
for i in $(apt search ceph | grep installed | awk -F/ '{print $1}'); do apt reinstall $i; done
pveceph install
The ceph.conf is still a leftover from the previous install.After running your script, my next step was "pveceph init" -no error messages- but then "pveceph mon create" produced the message
"Could not connect to ceph cluster despite configured monitors"
True. I meant a more improved version of the pveceph purge is available in Proxmox VE 6.2.@Alwin, the pvceph purge command is part of the script provided by Younex.
This helps me a lot !I fixed it for my situation.
My final solution to reinstall CEPH on all nodes:
Code:rm -rf /etc/systemd/system/ceph* killall -9 ceph-mon ceph-mgr ceph-mds rm -rf /var/lib/ceph/mon/ /var/lib/ceph/mgr/ /var/lib/ceph/mds/ pveceph purge apt purge ceph-mon ceph-osd ceph-mgr ceph-mds rm /etc/init.d/ceph for i in $(apt search ceph | grep installed | awk -F/ '{print $1}'); do apt reinstall $i; done dpkg-reconfigure ceph-base dpkg-reconfigure ceph-mds dpkg-reconfigure ceph-common dpkg-reconfigure ceph-fuse for i in $(apt search ceph | grep installed | awk -F/ '{print $1}'); do apt reinstall $i; done pveceph install