Last active
June 28, 2024 03:43
-
-
Save hunzo/e766cc962f2e3ba2cb27f3393c73f7f0 to your computer and use it in GitHub Desktop.
clear ceph
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
systemctl stop ceph-mon.target | |
systemctl stop ceph-mgr.target | |
systemctl stop ceph-mds.target | |
systemctl stop ceph-osd.target | |
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 -y | |
apt purge ceph-base ceph-mgr-modules-core -y | |
rm -rf /etc/ceph/* | |
rm -rf /etc/pve/ceph.conf | |
rm -rf /etc/pve/priv/ceph.* | |
rm -rf /var/lib/ceph/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment