From 3f7f0c72f1cb3fe60951c13fbb5f4ae003bf1d02 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Mon, 20 Jan 2020 08:23:29 -0800 Subject: [PATCH] mds: skip tell command scrub on multimds The master version of this PR deals with the unified asok/tell interface. Nautilus- are separated. Signed-off-by: Patrick Donnelly --- src/mds/MDSRank.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mds/MDSRank.cc b/src/mds/MDSRank.cc index e99a11233e6..24ab5b525fb 100644 --- a/src/mds/MDSRank.cc +++ b/src/mds/MDSRank.cc @@ -3610,6 +3610,13 @@ bool MDSRankDispatcher::handle_command( cmd_getval(g_ceph_context, cmdmap, "path", path); cmd_getval(g_ceph_context, cmdmap, "tag", tag); + /* Multiple MDS scrub is not currently supported. See also: https://tracker.ceph.com/issues/12274 */ + if (mdsmap->get_max_mds() > 1) { + *ss << "Scrub is not currently supported for multiple active MDS. Please reduce max_mds to 1 and then scrub."; + *r = ENOTSUP; + return true; + } + *need_reply = false; *run_later = create_async_exec_context(new C_ScrubExecAndReply (this, m, path, tag, scrubop_vec)); -- 2.47.3