From 735df024ad12f7617031c968f8446348d33757e8 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 13 Nov 2012 13:25:50 -0800 Subject: [PATCH] mon: helpful warning in 'health detail' output about incomplete pgs Signed-off-by: Sage Weil --- src/mon/PGMonitor.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc index 14b97df97bb9d..f8d311235ceae 100644 --- a/src/mon/PGMonitor.cc +++ b/src/mon/PGMonitor.cc @@ -1291,6 +1291,13 @@ void PGMonitor::get_health(list >& 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())); } } -- 2.39.5