]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/cephadm: purge
authorSebastian Wagner <sewagner@redhat.com>
Wed, 3 Nov 2021 13:11:00 +0000 (14:11 +0100)
committerSebastian Wagner <sewagner@redhat.com>
Wed, 17 Nov 2021 10:25:57 +0000 (11:25 +0100)
Fixes: https://tracker.ceph.com/issues/50534
Signed-off-by: Sebastian Wagner <sewagner@redhat.com>
(cherry picked from commit ecf8b8ebde3bcb8353dd59a4abfccab86502eb39)

doc/cephadm/operations.rst

index 5ccbc8c4bc12ae4b22b273cb1979d90cb454ace5..08e493bd73a50d88a713ecc15b813bf9fb88915e 100644 (file)
@@ -518,3 +518,28 @@ For example, to distribute configs to hosts with the ``bare_config`` label, run
   ceph config set mgr mgr/cephadm/manage_etc_ceph_ceph_conf_hosts label:bare_config
 
 (See :ref:`orchestrator-cli-placement-spec` for more information about placement specs.)
+
+Purging a cluster
+=================
+
+.. danger:: THIS OPERATION WILL DESTROY ALL DATA STORED IN THIS CLUSTER
+
+In order to destory a cluster and delete all data stored in this cluster, pause 
+cephadm to avoid deploying new daemons.
+
+.. prompt:: bash #
+
+  ceph orch pause
+
+Then verify the FSID of the cluster:
+
+.. prompt:: bash #
+
+  ceph fsid 
+
+Purge ceph daemons from all hosts in the cluster
+
+.. prompt:: bash #
+
+  # For each host:
+  cephadm rm-cluster --force --zap-osds --fsid <fsid>