osd_reweight
Adjust an OSD's reweight to manage data distribution; set to 0.0 to drain it, with reversible changes and dry-run preview to avoid unintended impact.
Instructions
[WRITE][risk=medium] Set an OSD's reweight (0.0 drains it). Reversible → prior weight.
Pass dry_run=True to preview the current→target weight without applying it.
Args: osd_id: Numeric OSD id (from osd_tree). weight: New reweight 0.0–1.0 (0.0 = full drain). dry_run: If True, read the current weight and preview without reweighting. target: Ceph target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| osd_id | Yes | ||
| target | No | ||
| weight | Yes | ||
| dry_run | No |