Skip to content

Commit 0680f17

Browse files
committed
doc/rados/operations/stretch-mode.rst: Added Exitting Stretch Mode
Added documentation about exiting stretch mode. Fixes: https://tracker.ceph.com/issues/67467 Signed-off-by: Kamoltat Sirivadhna <[email protected]>
1 parent 78ce68d commit 0680f17

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

doc/rados/operations/stretch-mode.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,34 @@ possible, if needed).
247247

248248
.. _Changing Monitor elections: ../change-mon-elections
249249

250+
Exiting Stretch Mode
251+
=====================
252+
To exit stretch mode, run the following command:
253+
254+
.. prompt:: bash $
255+
256+
ceph mon disable_stretch_mode [{crush_rule}] --yes-i-really-mean-it
257+
258+
259+
.. describe:: {crush_rule}
260+
261+
The CRUSH rule that the user wants all pools to move back to. If this
262+
is not specified, the pools will move back to the default CRUSH rule.
263+
264+
:Type: String
265+
:Required: No.
266+
267+
The command will move the cluster back to normal mode,
268+
and the cluster will no longer be in stretch mode.
269+
All pools will move its ``size`` and ``min_size``
270+
back to the default values it started with.
271+
At this point the user is responsible for scaling down the cluster
272+
to the desired number of OSDs if they choose to operate with less number of OSDs.
273+
274+
Please note that the command will not execute when the cluster is in
275+
``recovery stretch mode``. The command will only execute when the cluster
276+
is in ``degraded stretch mode`` or ``healthy stretch mode``.
277+
250278
Limitations of Stretch Mode
251279
===========================
252280
When using stretch mode, OSDs must be located at exactly two sites.

0 commit comments

Comments
 (0)