Pcornel
Storage · Ceph

Rebalancing

Cheat sheet · https://pcornel.dk/topic.php?topic=4052

Back to the Topic

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 mode
  • ceph 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 boundaryWhat to verifyProof limit
Control / placementMON/map/auth, pool, PG and CRUSH context for the exact workloadCluster visibility or one healthy daemon does not prove the data path
Data / redundancyActing OSD set, device/network state, capacity and replica/EC availabilityUp/in or active state alone does not prove clean redundancy or integrity
Failure boundaryRebalancing 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
AcceptanceHealthy 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

Confirmation

Confirm action

Continue?