2019-02-03 20:47:14.528 7ff368abf700 5 osd.7 pg_epoch: 189 pg[2.5s0( v 182'165 (0'0,182'165] local-lis/les=149/150 n=4 ec=19/19 lis/c 149/149 les/c/f 150/150/0 189/189/19) [7,0,2147483647]p7(0) r=0 lpr=189 pi=[149,189)/1 crt=182'165 lcod 158'163 mlcod 0'0 peering mbc={} ps=[9b~1,9e~1]] enter Started/Primary/Peering/GetLog
2019-02-03 20:47:14.528 7ff368abf700 10 osd.7 pg_epoch: 189 pg[2.5s0( v 182'165 (0'0,182'165] local-lis/les=149/150 n=4 ec=19/19 lis/c 149/149 les/c/f 150/150/0 189/189/19) [7,0,2147483647]p7(0) r=0 lpr=189 pi=[149,189)/1 crt=182'165 lcod 158'163 mlcod 0'0 peering mbc={} ps=[9b~1,9e~1]] choose_acting all_info osd.0(1) 2.5s1( v 182'165 (0'0,182'165] local-lis/les=149/150 n=4 ec=
19/19 lis/c 149/149 les/c/f 150/150/0 189/189/19)
2019-02-03 20:47:14.528 7ff368abf700 10 osd.7 pg_epoch: 189 pg[2.5s0( v 182'165 (0'0,182'165] local-lis/les=149/150 n=4 ec=19/19 lis/c 149/149 les/c/f 150/150/0 189/189/19) [7,0,2147483647]p7(0) r=0 lpr=189 pi=[149,189)/1 crt=182'165 lcod 158'163 mlcod 0'0 peering mbc={} ps=[9b~1,9e~1]] choose_acting all_info osd.7(0) 2.5s0( v 182'165 (0'0,182'165] local-lis/les=149/150 n=4 ec=
19/19 lis/c 149/149 les/c/f 150/150/0 189/189/19)
2019-02-03 20:47:14.528 7ff368abf700 10 osd.7 pg_epoch: 189 pg[2.5s0( v 182'165 (0'0,182'165] local-lis/les=149/150 n=4 ec=19/19 lis/c 149/149 les/c/f 150/150/0 189/189/19) [7,0,2147483647]p7(0) r=0 lpr=189 pi=[149,189)/1 crt=182'165 lcod 158'163 mlcod 0'0 peering mbc={} ps=[9b~1,9e~1]] calc_acting prefer osd.7(0) because it is current primary
2019-02-03 20:47:14.528 7ff368abf700 10 osd.7 pg_epoch: 189 pg[2.5s0( v 182'165 (0'0,182'165] local-lis/les=149/150 n=4 ec=19/19 lis/c 149/149 les/c/f 150/150/0 189/189/19) [7,0,2147483647]p7(0) r=0 lpr=189 pi=[149,189)/1 crt=182'165 lcod 158'163 mlcod 0'0 peering mbc={} ps=[9b~1,9e~1]] For position 0: selecting up[i]: 7(0)
2019-02-03 20:47:14.528 7ff368abf700 10 osd.7 pg_epoch: 189 pg[2.5s0( v 182'165 (0'0,182'165] local-lis/les=149/150 n=4 ec=19/19 lis/c 149/149 les/c/f 150/150/0 189/189/19) [7,0,2147483647]p7(0) r=0 lpr=189 pi=[149,189)/1 crt=182'165 lcod 158'163 mlcod 0'0 peering mbc={} ps=[9b~1,9e~1]] recoverable_and_ge_min_size failed, below min size
2019-02-03 20:47:14.528 7ff368abf700 5 osd.7 pg_epoch: 189 pg[2.5s0( v 182'165 (0'0,182'165] local-lis/les=149/150 n=4 ec=19/19 lis/c 149/149 les/c/f 150/150/0 189/189/19) [7,0,2147483647]p7(0) r=0 lpr=189 pi=[149,189)/1 crt=182'165 lcod 158'163 mlcod 0'0 peering mbc={} ps=[9b~1,9e~1]] exit Started/Primary/Peering/GetLog 0.000147 0 0.000000
the relevant code:
// We go incomplete if below min_size for ec_pools since backfill
// does not currently maintain rollbackability
// Otherwise, we will go "peered", but not "active"
if (num_want_acting < pool.info.min_size &&
(pool.info.is_erasure() ||
!cct->_conf->osd_allow_recovery_below_min_size)) {
dout(10) << __func__ << " failed, below min size" << dendl;
return false;
}