From ecf8b8ebde3bcb8353dd59a4abfccab86502eb39 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Wed, 3 Nov 2021 14:11:00 +0100 Subject: [PATCH] doc/cephadm: purge Fixes: https://tracker.ceph.com/issues/50534 Signed-off-by: Sebastian Wagner --- doc/cephadm/operations.rst | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/doc/cephadm/operations.rst b/doc/cephadm/operations.rst index 5ccbc8c4bc1..08e493bd73a 100644 --- a/doc/cephadm/operations.rst +++ b/doc/cephadm/operations.rst @@ -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 -- 2.39.5