Running through a few DR scenarios and our scripts we used to reinstall Ceph (both at the cluster level and per node) are not working under 8. While we can pull Ceph off the node/cluster, when we go to add the 2nd node back in(on either an existing or new install) Ceph blows up at the cluster level and all Ceph members go back to an unconfigured state.
Below is the purge scripting we use, what are we missing?
-Mind you, we want to be able to do both a full cluster rebuild on Ceph if needed and a single PVE node without pulling Ceph out of the cluster.
ceph osd down 0 && ceph osd destroy 0 --force
ceph osd down 1 && ceph osd destroy 1 --force
ceph osd down 2 && ceph osd destroy 2 --force
rm /etc/ceph/ceph.conf
systemctl stop ceph-mon@pve1
systemctl stop ceph-mon@pve2
systemctl stop ceph-mon@pve3
systemctl disable ceph-mon@pve1
systemctl disable ceph-mon@pve2
systemctl disable ceph-mon@pve3
umount /var/lib/ceph/osd/ceph-0
umount /var/lib/ceph/osd/ceph-1
umount /var/lib/ceph/osd/ceph-3
rm -rf /var/lib/ceph
killall -9 ceph-mon ceph-mgr ceph-mds
rm -rf /etc/systemd/system/ceph*
reboot
pveceph purge
apt purge ceph-mon ceph-osd ceph-mgr ceph-mds
apt purge ceph-base ceph-mgr-modules-core
rm -rf /var/lib/ceph/mon/ /var/lib/ceph/mgr/ /var/lib/ceph/mds/
rm -f /etc/pve/ceph/*
rm -rf /etc/pve/ceph
rm -r /etc/pve/ceph.conf
rm -r /etc/ceph
rm -rf /etc/pve/priv/ceph.*
reboot
Below is the purge scripting we use, what are we missing?
-Mind you, we want to be able to do both a full cluster rebuild on Ceph if needed and a single PVE node without pulling Ceph out of the cluster.
ceph osd down 0 && ceph osd destroy 0 --force
ceph osd down 1 && ceph osd destroy 1 --force
ceph osd down 2 && ceph osd destroy 2 --force
rm /etc/ceph/ceph.conf
systemctl stop ceph-mon@pve1
systemctl stop ceph-mon@pve2
systemctl stop ceph-mon@pve3
systemctl disable ceph-mon@pve1
systemctl disable ceph-mon@pve2
systemctl disable ceph-mon@pve3
umount /var/lib/ceph/osd/ceph-0
umount /var/lib/ceph/osd/ceph-1
umount /var/lib/ceph/osd/ceph-3
rm -rf /var/lib/ceph
killall -9 ceph-mon ceph-mgr ceph-mds
rm -rf /etc/systemd/system/ceph*
reboot
pveceph purge
apt purge ceph-mon ceph-osd ceph-mgr ceph-mds
apt purge ceph-base ceph-mgr-modules-core
rm -rf /var/lib/ceph/mon/ /var/lib/ceph/mgr/ /var/lib/ceph/mds/
rm -f /etc/pve/ceph/*
rm -rf /etc/pve/ceph
rm -r /etc/pve/ceph.conf
rm -r /etc/ceph
rm -rf /etc/pve/priv/ceph.*
reboot