﻿# Replacing a Ceph OSD is different from purging its identity

An OSD replacement can retain its identifier and CRUSH entry. Verify safe-to-destroy state and device identity before confusing replacement with permanent removal.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/ceph-device-replacement-osd-identity/
Language: en

## The same slot does not mean the same operation

A failed storage device is replaced in its original bay. The physical action looks simple, but Ceph can treat the work as replacing an OSD while retaining its identity or as permanently removing an OSD and adding a different one. Those paths have different effects on the cluster map.

The [OSD lifecycle reference](https://docs.ceph.com/en/tentacle/rados/operations/add-or-rm-osds/) explicitly distinguishes replacement from removal. For replacement, the OSD identifier and CRUSH entry remain intact after the old OSD is destroyed. A purge instead removes membership and authentication information.

## Resolve the identities before destruction

Record the cluster identity, OSD identifier, OSD filesystem identity and actual data, DB and WAL devices. Resolve logical volumes and persistent device identifiers rather than relying on a short operating-system path that could now name another disk.

A shared metadata device can make the replacement scope larger than the failed primary device. Enumerate every dependency before preparing new storage. The [CRUSH reference](https://docs.ceph.com/en/tentacle/rados/operations/crush-map/) supplies the placement context, but map labels alone do not reveal every shared backing device.

## Establish that destruction is safe now

The documented replacement procedure checks safe-to-destroy before destroying an OSD. This is a cluster-state question, not a synonym for a stopped process or a disconnected drive. Capture the result for the exact OSD at the decision point.

Also preserve affected placement-group state and remaining capacity. A previously recorded safe result should not be reused after an intervening failure or placement change. This article describes the review boundary and does not execute destructive lifecycle commands.

## Preserve the intended map behavior

If retaining the identity is intended, use the supported replacement path for the deployed management system and release. Verify that the new preparation is associated with the intended OSD identifier and that activation uses the correct identity.

If permanent removal is intended, review the consequences for CRUSH placement, credentials and remaining capacity separately. A cleanup that erases the entry merely to make an inventory tidy can turn an intended replacement into a different topology change and complicate the planned recovery.

## Acceptance extends through data movement

A newly running daemon is not the end of the replacement. Check that it is associated with the intended map entry, reaches the expected membership state and participates in the required recovery. Follow the affected placement groups until the agreed protection state is restored.

[Checkpoint failure-domain reasoning](/journal/google-multi-tier-checkpoints-failure-domains-restore-overrides/) helps assess the remaining recovery options while the device is absent. [Storage placement fundamentals](/journal/storage-optimized-hosting/) explain why normal process health need not imply normal load behavior during migration.

## Limits of retained identity

Retaining an OSD identifier does not preserve the old device's contents, certify the replacement's hardware or establish sanitization of retired media. Those are separate lifecycle tasks. The accepted result is narrower: the intended replacement or removal path was followed for the correct identity, with current safety evidence and verified placement recovery rather than an assumption based on the physical slot.
