# KB-Proxmox VE - Désinstaller / réinitialiser CEPH

<p class="callout info">Applicable à : proxmox VE 8.0+</p>

### <span style="text-decoration: underline;">Symptôme(s)</span>

Un problème est survenu, rendant CEPH inopérant.

---

### <span style="text-decoration: underline;">Problème</span>

Corruption des données du quorum, problème sur le volume, etc...

---

### <span style="text-decoration: underline;">Solution</span>

<p class="callout danger">Prérequis : Access au Shell (via a console web ou en direct).</p>

Sur tous les nœuds du cluster, exécuter les commandes suivantes.

```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.*

lvremove -y /dev/ceph*
vgremove -y ceph-<press-tab-for-bash-completion>
pvremove /dev/nvme1n1

mv /var/lib/ceph/bootstrap-osd /var/lib/ceph/bootstrap-osd.old
mkdir /var/lib/ceph/bootstrap-osd
chown ceph /var/lib/ceph/* -R
```

---

### <span style="text-decoration: underline;">Sources</span>

[\[SOLVED\] - Help! Ceph access totally broken | Proxmox Support Forum](https://forum.proxmox.com/threads/help-ceph-access-totally-broken.162624/)