From: Sebastian Wagner Date: Wed, 3 Nov 2021 13:11:00 +0000 (+0100) Subject: doc/cephadm: purge X-Git-Tag: v17.1.0~528^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F43790%2Fhead;p=ceph.git doc/cephadm: purge Fixes: https://tracker.ceph.com/issues/50534 Signed-off-by: Sebastian Wagner --- diff --git a/doc/cephadm/operations.rst b/doc/cephadm/operations.rst index 5ccbc8c4bc12..08e493bd73a5 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