How to pause/stop rebalance in Ceph?
Environment
- Red Hat Ceph Storage 1.3.x
- Red Hat Ceph Storage 2.x
Issue
-
How to pause/stop re-balance in Ceph?
-
Is it possible to stop an on-going re-balance operation in a Ceph cluster?
Resolution
-
To stop an ongoing re-balance, set the
norebalanceflag.# ceph osd set norebalance -
To resume the rebalance , unset the
norebalanceflag.# ceph osd unset norebalance
NOTE:
>* The re-balance operation happens in (osd_recovery_max_chunk x osd_recovery_max_active) chunks.
>* If a re-balance process is going on and a norebalance flag is set, the ongoing chunk is re-balanced and a new one is not allowed to kick in.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.