]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephfs,mon: require confirmation to fail unhealthy MDS
authorRishabh Dave <ridave@redhat.com>
Fri, 8 Mar 2024 15:39:18 +0000 (21:09 +0530)
committerRishabh Dave <ridave@redhat.com>
Mon, 3 Jun 2024 13:46:11 +0000 (19:16 +0530)
commit4f037dec7fdf6ac23b7a06bafba5ed3e80e134be
tree18250fb095a81d11ab74c13359aedf67a8438b34
parentf824fbdc574eff0115a8de0a1d67e5b6e01fbe68
cephfs,mon: require confirmation to fail unhealthy MDS

When running the command "ceph mds fail" for an MDS that is unhealthy
due to, MDS_CACHE_OVERSIZED or MDS_TRIM, user must pass confirmation
flag. Else, the command will fail and print an appropriate error
message.

Restarting an MDS with such health warnings is not recommended since it
will have a slow reocvery during restart which will create new problems.

Fixes: https://tracker.ceph.com/issues/61866
Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit eeda00eea5043d3ba806695a207b732cb53b35c4)
src/mon/FSCommands.h
src/mon/MDSMonitor.cc
src/mon/MDSMonitor.h
src/mon/MonCommands.h