]> 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>
Fri, 19 Apr 2024 11:46:46 +0000 (17:16 +0530)
commiteeda00eea5043d3ba806695a207b732cb53b35c4
treeeed8ba9c59fc6ee4dab1a02689a31b118096479d
parentaddad6cdc38a74010cbde597d8df5fb9e20307b1
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>
src/mon/FSCommands.h
src/mon/MDSMonitor.cc
src/mon/MDSMonitor.h
src/mon/MonCommands.h