Project

General

Profile

Actions

Bug #5059

closed

PGs can get stuck degraded if OSD removed before being out

Added by David Zafman almost 11 years ago. Updated almost 11 years ago.

Status:
Won't Fix
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

If an OSD goes down and the user marks it lost and/or removes before it is marked out, then PGs are left degraded and new locations are not selected. This is the example when I got into this state.

$ ./ceph pg dump
dumped all in format plain
version 300
stamp 2013-05-13 17:58:02.994100
last_osdmap_epoch 121
last_pg_scan 17
full_ratio 0.95
nearfull_ratio 0.85
pg_stat objects mip degr unf bytes log disklog state state_stamp v reported up acting last_scrub scrub_stamp last_deep_scrub deep_scrub_stamp
3.4 11 0 11 0 154 0 0 active+degraded 2013-05-13 17:53:32.545272 117'242 17'357 [1] [1] 0'0 0.000000 0'0 0.000000
3.5 20 0 20 0 279 0 0 active+degraded 2013-05-13 17:53:32.564806 102'440 17'551 [2] [2] 0'0 0.000000 0'0 0.000000
3.6 12 0 12 0 168 0 0 active+degraded 2013-05-13 17:53:32.549988 115'264 119'384 [1] [1] 0'0 0.000000 0'0 0.000000
3.7 10 0 10 0 138 0 0 active+degraded 2013-05-13 17:53:32.540431 111'220 119'340 [0] [0] 0'0 0.000000 0'0 0.000000
3.0 18 0 18 0 8236 0 0 active+degraded 2013-05-13 17:53:32.558160 118'376 17'508 [0] [0] 0'0 0.000000 0'0 0.000000
3.1 8 0 0 0 110 0 0 active+clean 2013-05-13 17:41:44.205230 116'176 17'282 [1,0] [1,0] 0'0 0.000000 0'0 0.000000
3.2 10 0 0 0 140 0 0 active+clean 2013-05-13 17:41:44.238774 103'220 17'312 [3,0] [3,0] 0'0 0.000000 0'0 0.000000
3.3 12 0 12 0 167 0 0 active+degraded 2013-05-13 17:53:32.596090 112'264 17'368 [2] [2] 0'0 0.000000 0'0 0.000000
pool 3 101 0 83 0 9392 0 0
sum 101 0 83 0 9392 0 0
osdstat kbused kbavail kb hb in hb out
0 17174964 2682232 20905820 [] []
1 17174964 2682232 20905820 [0] []
2 17174964 2682232 20905820 [] []
3 17174964 2682232 20905820 [0] []
sum 68699856 10728928 83623280

Actions

Also available in: Atom PDF