]> 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:49:52 +0000 (19:19 +0530)
commit6cc97db86e996aa3d30a851adb7e25f2b07c6b7e
tree62c0567c02f445230f9e323db7af8d5086d8c211
parent79d5a009ffe59bbc36e888ea835d1845fc4b106c
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