]> git.proxmox.com Git - pve-docs.git/commitdiff
pveceph: add section - Destroying Ceph OSDs
authorAlwin Antreich <a.antreich@proxmox.com>
Wed, 6 Nov 2019 14:09:02 +0000 (15:09 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 6 Nov 2019 18:22:32 +0000 (19:22 +0100)
Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
pveceph.adoc

index cfb86a81226a3679ce5fc048250c1d05746f0642..20b5b63a38e9138d5245a20b458fadedaf012dd0 100644 (file)
@@ -358,6 +358,34 @@ Starting with Ceph Nautilus, {pve} does not support creating such OSDs with
 ceph-volume lvm create --filestore --data /dev/sd[X] --journal /dev/sd[Y]
 ----
 
+Destroying Ceph OSDs
+--------------------
+
+To remove an OSD via the GUI first select a {PVE} node in the tree view and go
+to the **Ceph -> OSD** panel. Select the OSD to destroy. Next click the **OUT**
+button. Once the OSD status changed from `in` to `out` click the **STOP**
+button. As soon as the status changed from `up` to `down` select **Destroy**
+from the `More` drop-down menu.
+
+To remove an OSD via the CLI run the following commands.
+[source,bash]
+----
+ceph osd out <ID>
+systemctl stop ceph-osd@<ID>.service
+----
+NOTE: The first command instructs Ceph not to include the OSD in the data
+distribution. The second command stops the OSD service. Until this time, no
+data is lost.
+
+The following command destroys the OSD. Specify the '-cleanup' option to
+additionally destroy the partition table.
+[source,bash]
+----
+pveceph osd destroy <ID>
+----
+WARNING: The above command will destroy data on the disk!
+
+
 [[pve_ceph_pools]]
 Creating Ceph Pools
 -------------------