Proxmox Ceph Commands

Monitors Removal

MUST be done on the MON NODE

ceph mon dump --format json-pretty cat /etc/pve/ceph.conf ceph -s pveceph mon destroy hp0105blade07duplicate cd /etc/systemd/system/ ls -al unlink ceph-mon@hp0105blade07duplicate.service ls -al cd /var/lib/ceph/mon/ ls rm -R ceph-hp0105blade07duplicate/ ls pvestatd status pvestatd restart
Code language: JavaScript (javascript)

Can follow similar process for MGR and MDS

OSDs removal

ssh {osd-to-be-retained-host} ceph osd tree # suppose osd 20 is to be removed ceph osd out osd.20 ceph osd down osd.20 ssh {osd-to-be-removed-host} systemctl stop ceph-osd@20 sudo /etc/init.d/ceph stop osd.{osd-num} ssh {osd-to-be-retained-host} ceph osd crush rm osd.20 ceph auth del osd.20 ceph osd destroy 20 --yes-i-really-mean-it
Code language: PHP (php)

CEPH Crashes, Warnings, Status etc.

ceph crash ls ceph crash info <id> ceph crash archive <id> ceph crash archive-all
Code language: HTML, XML (xml)