Skip to main content

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

Applicable à : proxmox VE 8.0+

Symptôme(s)

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


Problème

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


Solution

Prérequis : Access au Shell (via a console web ou en direct).

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

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


Sources

[SOLVED] - Help! Ceph access totally broken | Proxmox Support Forum