]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/cephadm/services: Add mention of --zap for OSD removal 62442/head
authorAnthony D'Atri <anthonyeleven@users.noreply.github.com>
Fri, 21 Mar 2025 21:59:02 +0000 (17:59 -0400)
committerAnthony D'Atri <anthonyeleven@users.noreply.github.com>
Fri, 21 Mar 2025 21:59:02 +0000 (17:59 -0400)
Signed-off-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
doc/cephadm/services/osd.rst

index bc72a1903d58a172c91bf0035fb4e706405720aa..b4072adb50cf746a9770beb65ddb69824a3de6f6 100644 (file)
@@ -288,26 +288,29 @@ Remove an OSD
 
 Removing an OSD from a cluster involves two steps:
 
-#. evacuating all placement groups (PGs) from the OSD
-#. removing the PG-free OSD from the cluster
+#. Evacuating all placement groups (PGs) from the OSD
+#. Removing the PG-free OSD from the cluster
 
 The following command performs these two steps:
 
 .. prompt:: bash #
 
-  ceph orch osd rm <osd_id(s)> [--replace] [--force]
+  ceph orch osd rm <osd_id(s)> [--replace] [--force] [--zap]
 
 Example:
 
 .. prompt:: bash #
 
   ceph orch osd rm 0
+  ceph orch osd rm 1138 --zap
 
 Expected output::
 
   Scheduled OSD(s) for removal
 
-OSDs that are not safe to destroy will be rejected.
+OSDs that are not safe to destroy will be rejected.  Adding the ``--zap`` flag
+directs the orchestrator to remove all LVM and partition information from the
+OSD's drives, leaving it a blank slate for redeployment or other reuse.
 
 .. note::
     After removing OSDs, if the OSDs' drives