7.3. Removing a host from the Ceph cluster
Remove a host from your hyperconverged Ceph cluster before decommissioning the node. This process safely removes the node from the Ceph cluster while maintaining cluster availability.
Prerequisites
- You are running HCI on a DCN cluster
- You have Root-level access to all the nodes.
- The host you are removing is added to the storage cluster.
- Cephadm is deployed on the node where the service is to be removed.
Procedure
Log in to the Cephadm shell:
[root@host01 ~]# cephadm shellFetch the host details:
[ceph: root@host01 /]# ceph orch host lsDrain all the daemons from the host:
[ceph: root@host01 /]# ceph orch host drain <hostname>Replace
<hostname>with the name of the host that you are removing.For more information about managing Red Hat Ceph Storage services, see the Administration Guide for your Red Hat Ceph Storage version:
Check the status of OSD removal:
[ceph: root@host01 /]# ceph orch osd rm statusWhen no placement groups (PG) are left on the OSD, the OSD is decommissioned and removed from the storage cluster.
Check if all the daemons are removed from the storage cluster:
[ceph: root@host01 /]# ceph orch ps <hostname>-
Replace
<hostname>with the name of the host that you are removing.
-
Replace
Remove the host:
[ceph: root@host01 /]# ceph orch host rm <hostname>-
Replace
<hostname>with the name of the host that you are removing.
-
Replace