From be2d137e21f5250129c75daf81693b6e08e40339 Mon Sep 17 00:00:00 2001 From: Alwin Antreich Date: Wed, 6 Nov 2019 15:09:02 +0100 Subject: [PATCH] pveceph: add section - Destroying Ceph OSDs Signed-off-by: Alwin Antreich Signed-off-by: Thomas Lamprecht --- pveceph.adoc | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/pveceph.adoc b/pveceph.adoc index cfb86a8..20b5b63 100644 --- a/pveceph.adoc +++ b/pveceph.adoc @@ -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 +systemctl stop ceph-osd@.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 +---- +WARNING: The above command will destroy data on the disk! + + [[pve_ceph_pools]] Creating Ceph Pools -------------------