]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon [stretch mode]: support disable_stretch_mode
authorKamoltat Sirivadhna <ksirivad@redhat.com>
Wed, 28 Aug 2024 13:40:59 +0000 (13:40 +0000)
committerroot <root@vossi06.front.sepia.ceph.com>
Tue, 5 Nov 2024 19:08:29 +0000 (19:08 +0000)
commit882b506644c87eeb6da4604fdc8cee870b219f96
tree80b1098b4a58a5a148045fdc016dd2bc327b5d01
parent1a3d52ddeaa9cf649b80a81a37de8b56bef74b23
mon [stretch mode]: support disable_stretch_mode

Problem:

Currently, Ceph lacks the ability
to exit stretch mode and move back
to normal cluster (non-stretched).

Solution:

Provide a command to allow
the user to exit stretch mode gracefully:

`ceph mon disable_stretch_mode <crush_rule> --yes-i-really-mean-it`

User can either specify a crush rule that
they want all pools to move to or not specify
a rule and Ceph will use a default replicated crush rule.

Fixes: https://tracker.ceph.com/issues/67467
Signed-off-by: Kamoltat Sirivadhna <ksirivad@redhat.com>
(cherry picked from commit 78ce68de41b1d5278e14cf56dff7f15394969255)
src/mon/MonCommands.h
src/mon/Monitor.cc
src/mon/Monitor.h
src/mon/MonmapMonitor.cc
src/mon/OSDMonitor.cc
src/mon/OSDMonitor.h