Rebalancing
Cheat sheet · https://pcornel.dk/topic.php?topic=4052
Answer
Changes to OSD membership/weights, CRUSH topology or PG counts alter mappings. Recovery/backfill then move data until actual placement matches desired acting sets; balancing mechanisms may further reduce utilization skew.
Remember
- Rebalancing ≠ one command or one mechanism.
- Equal OSD utilization ≠ always correct target.
- Remapped PGs ≠ failure automatically.
- Balance improvement ≠ no workload cost.
First checks
ceph balancer status— balancer modeceph osd df— usage spread (VAR)ceph balancer eval— distribution score
Verify in this order
imbalance → balancer upmaps → data moves
Where it usually breaks
First mismatch in member media → metadata/layout → allocation/placement → redundancy/recovery → logical object → consumer; preserve identity/pre-state before mutation.
Ceph → Rebalancing Ceph map
| Ceph boundary | What to verify | Proof limit |
|---|---|---|
| Control / placement | MON/map/auth, pool, PG and CRUSH context for the exact workload | Cluster visibility or one healthy daemon does not prove the data path |
| Data / redundancy | Acting OSD set, device/network state, capacity and replica/EC availability | Up/in or active state alone does not prove clean redundancy or integrity |
| Failure boundary | Rebalancing progress proves adaptation to current maps, not that current maps represent the best failure-domain/capacity design. | Correlate Ceph, host, device and network evidence in the same time window |
| Acceptance | Healthy evidence: movement converges, OSD utilization becomes policy-appropriate, PGs return to healthy states and workload remains acceptable. | Close only after original client operation plus redundancy/read-back verification |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4052