From: Patrick Donnelly Date: Mon, 20 Jan 2020 16:23:29 +0000 (-0800) Subject: mds: skip tell command scrub on multimds X-Git-Tag: v14.2.8~63^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3f7f0c72f1cb3fe60951c13fbb5f4ae003bf1d02;p=ceph.git 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 --- 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));