From bd4ba40b9e3938fcdf7f9d24bc6d471e96b5bd80 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 3 Apr 2017 12:46:32 -0400 Subject: [PATCH] mgr: move 'osd perf' and 'osd blocked-by' to mgr Signed-off-by: Sage Weil --- src/mgr/MgrCommands.h | 10 ++++++++++ src/mon/MonCommands.h | 8 -------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/mgr/MgrCommands.h b/src/mgr/MgrCommands.h index 6a407f4e669..f55161589a1 100644 --- a/src/mgr/MgrCommands.h +++ b/src/mgr/MgrCommands.h @@ -54,3 +54,13 @@ COMMAND("pg deep-scrub name=pgid,type=CephPgid", "start deep-scrub on ", \ "pg", "rw", "cli,rest") COMMAND("pg repair name=pgid,type=CephPgid", "start repair on ", \ "pg", "rw", "cli,rest") + +// stuff in osd namespace +COMMAND("osd perf", \ + "print dump of OSD perf summary stats", \ + "osd", \ + "r", \ + "cli,rest") +COMMAND("osd blocked-by", \ + "print histogram of which OSDs are blocking their peers", \ + "osd", "r", "cli,rest") diff --git a/src/mon/MonCommands.h b/src/mon/MonCommands.h index 6e0e70ddecf..8dc9f511dab 100644 --- a/src/mon/MonCommands.h +++ b/src/mon/MonCommands.h @@ -428,14 +428,6 @@ COMMAND("osd getmap " \ COMMAND("osd getcrushmap " \ "name=epoch,type=CephInt,range=0,req=false", \ "get CRUSH map", "osd", "r", "cli,rest") -COMMAND("osd perf", \ - "print dump of OSD perf summary stats", \ - "osd", \ - "r", \ - "cli,rest") -COMMAND("osd blocked-by", \ - "print histogram of which OSDs are blocking their peers", \ - "osd", "r", "cli,rest") COMMAND("osd getmaxosd", "show largest OSD id", "osd", "r", "cli,rest") COMMAND("osd find " \ "name=id,type=CephOsdName", \ -- 2.39.5