Skip to content

Instantly share code, notes, and snippets.

@hunzo
Last active June 28, 2024 03:43
Show Gist options
  • Save hunzo/e766cc962f2e3ba2cb27f3393c73f7f0 to your computer and use it in GitHub Desktop.
Save hunzo/e766cc962f2e3ba2cb27f3393c73f7f0 to your computer and use it in GitHub Desktop.
clear ceph
#!/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