]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: skip tell command scrub on multimds 32602/head
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 20 Jan 2020 16:23:29 +0000 (08:23 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 5 Feb 2020 01:52:09 +0000 (17:52 -0800)
The master version of this PR deals with the unified asok/tell
interface. Nautilus- are separated.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/MDSRank.cc

index e99a11233e6217a6f8c4befcb7c3319059911668..24ab5b525fbdd5cc1d8f6a901af4490c880e288a 100644 (file)
@@ -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));