Appendix J. Purging a Ceph Cluster by Using Ansible
If you deployed a Ceph cluster using Ansible and you want to purge the cluster, then use the purge-cluster.yml Ansible playbook located in the infrastructure-playbooks directory.
Purging a Ceph cluster will lose data stored on the cluster’s OSDs.
Before purging the Ceph cluster…
Check the osd_auto_discovery option in the osds.yml file. Having this option set to true will cause the purge to fail. To prevent the failure, do the following steps before running the purge:
-
Declare the OSD devices in the
osds.ymlfile. See Section 3.2, “Installing a Red Hat Ceph Storage Cluster” for more details. -
Comment out the
osd_auto_discoveryoption in theosds.ymlfile.
To purge the Ceph cluster…
As
root, navigate to the/usr/share/ceph-ansible/directory:# cd /usr/share/ceph-ansible
As
root, copy thepurge-cluster.ymlAnsible playbook to the current directory:# cp infrastructure-playbooks/purge-cluster.yml .
Run the
purge-cluster.ymlAnsible playbook:$ ansible-playbook purge-cluster.yml

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.