]> git-server-git.apps.pok.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:24:25 +0000 (18:54 +0530)
commitfa2aae39716113989129f8e6d626655d8d09da62
treefd74e291da9a18a8678e403fd298489d0dc18eb1
parentfd81d117fbe4397b81dceca2823b1eea23aeb86b
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