]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: include cluster fsid/uuid in status output
authorSage Weil <sage@inktank.com>
Wed, 29 May 2013 23:36:34 +0000 (16:36 -0700)
committerDan Mick <dan.mick@inktank.com>
Tue, 4 Jun 2013 00:30:41 +0000 (17:30 -0700)
Implements: #5147
Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/Monitor.cc

index fdf2ab3dc4f0486ca73dcbad62813709a5fe23a3..fc423bd696a3c2dea9c21bbfa8baeaa93a179ee6 100644 (file)
@@ -2444,6 +2444,7 @@ void Monitor::get_status(stringstream &ss, Formatter *f)
   get_health(health, NULL, f);
 
   if (f) {
+    f->dump_stream("fsid") << monmap->get_fsid();
     f->dump_stream("monmap") << *monmap;
     f->dump_stream("election_epoch") << get_epoch();
     f->dump_stream("quorum") << get_quorum();
@@ -2453,6 +2454,7 @@ void Monitor::get_status(stringstream &ss, Formatter *f)
     f->dump_stream("mdsmap") << mdsmon()->mdsmap;
     f->close_section();
   } else {
+    ss << "  cluster " << monmap->get_fsid() << "\n";
     ss << "   health " << health << "\n";
     ss << "   monmap " << *monmap << ", election epoch " << get_epoch()
       << ", quorum " << get_quorum() << " " << get_quorum_names() << "\n";