diff options
author | Sage Weil <sage@inktank.com> | 2012-11-13 13:25:50 -0800 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2012-11-13 15:12:33 -0800 |
commit | 735df024ad12f7617031c968f8446348d33757e8 (patch) | |
tree | 0d10088530cfcb00b0f4ceb787fc465e750303bd | |
parent | 1679a55662a74db0bfd7e4c0b370ec9f8a32c485 (diff) | |
download | ceph-735df024ad12f7617031c968f8446348d33757e8.tar.gz |
mon: helpful warning in 'health detail' output about incomplete pgs
Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r-- | src/mon/PGMonitor.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc index 14b97df97bb..f8d311235ce 100644 --- a/src/mon/PGMonitor.cc +++ b/src/mon/PGMonitor.cc @@ -1291,6 +1291,13 @@ void PGMonitor::get_health(list<pair<health_status_t,string> >& summary, ss << ", acting " << p->second.acting; if (p->second.stats.sum.num_objects_unfound) ss << ", " << p->second.stats.sum.num_objects_unfound << " unfound"; + if (p->second.state & PG_STATE_INCOMPLETE) { + const pg_pool_t *pi = mon->osdmon()->osdmap.get_pg_pool(p->first.pool()); + if (pi && pi->min_size > 1) { + ss << " (reducing pool " << mon->osdmon()->osdmap.get_pool_name(p->first.pool()) + << " min_size from " << (int)pi->min_size << " may help; search ceph.com/docs for 'incomplete')"; + } + } detail->push_back(make_pair(HEALTH_WARN, ss.str())); } } |