osd_purge
Purge a Ceph OSD by destroying it, removing from CRUSH map, and deleting auth keys. Irreversible; requires prior drain and an approver.
Instructions
[WRITE][risk=high] Purge an OSD (destroy + crush rm + auth del). Irreversible.
Pass dry_run=True to preview. Requires an approver (CEPH_AUDIT_APPROVED_BY). Drain first (osd_reweight 0 → mark out → wait active+clean) before purging.
Args: osd_id: Numeric OSD id (from osd_tree). dry_run: If True, preview without purging. target: Ceph target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| osd_id | Yes | ||
| target | No | ||
| dry_run | No |