Removing a Ceph OSD node
To reduce the capacity of a storage cluster, remove an OSD node.
WARNING:
Before removing a Ceph OSD node, ensure that the storage cluster can
backfill the contents of all OSDs without reaching the full ratio.
Reaching the full ratio will cause the storage cluster to refuse write
operations.
Prerequisites
A running IBM Storage Ceph cluster.
Root-level access to all nodes in the storage cluster.
Procedure
Check the storage cluster’s capacity:
Syntax
ceph df rados df ceph osd dfTemporarily disable scrubbing:
Syntax
ceph osd set noscrub ceph osd set nodeep-scrubLimit the backfill and recovery features:
Syntax
ceph tell DAEMON_TYPE.* injectargs --OPTION_NAME VALUE [--OPTION_NAME VALUE]Example
[ceph: root@host01 /]# ceph tell osd.* injectargs --osd-max-backfills 1 --osd-recovery-max-active 1 --osd-recovery-op-priority 1Remove each OSD on the node from the storage cluster:
IMPORTANT: When removing an OSD node from the storage cluster, IBM recommends removing one OSD at a time within the node and allowing the cluster to recover to an
active+cleanstate before proceeding to remove the next OSD.After you remove an OSD, check to verify that the storage cluster is not getting to the
near-full ratio:Syntax
ceph -s ceph dfRepeat this step until all OSDs on the node are removed from the storage cluster.
Once all OSDs are removed, remove the host:
Using Removing hosts.
Reference
See the Setting a specific configuration at runtime section in the IBM Storage Ceph Configuration Guide for more details.