Ceph 版本:0.94.1
ceph -s
cluster 30266c5f-5e10-4027-936c-e4409667b409
health HEALTH_WARN
65 pgs stale
22 pgs stuck inactive
65 pgs stuck stale
22 pgs stuck unclean
monmap e7: 7 mons at {kvm1=10.136.8.129:6789/0,kvm2=10.136.8.130:6789/0,kvm3=10.136.8.131:6789/0,kvm4=10.136.8.132:6789/0,kvm5=10.136.8.133:6789/0,kvm6=10.136.8.134:6789/0,kvm7=10.136.8.135:6789/0}
election epoch 122, quorum 0,1,2,3,4,5,6 kvm1,kvm2,kvm3,kvm4,kvm5,kvm6,kvm7
osdmap e368: 14 osds: 14 up, 14 in
pgmap v1072573: 1128 pgs, 8 pools, 186 GB data, 51533 objects
630 GB used, 7330 GB / 8319 GB avail
1041 active+clean
65 stale+active+clean
22 creating
客户端 io 361 kB/s rd,528 kB/s wr,48 op/s
ceph osd stat
osdmap e368: 14 osds: 14 up, 14 in
如您所见,我遇到了陈旧/非活动/不干净的问题。我试着做
ceph pg 0.21 query
这挂了。(0.21 是陈旧的 pgs 之一)。Strace 显示了这一点:
[pid 4850] futex(0x7f8cd8003984, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0x7f8cd8003980,
{FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1} <unfinished ...>
[pid 4855] <... sendmsg resumed> ) = 9
[pid 4850] <... futex resumed> ) = 1
[pid 4855] futex(0x7f8cd8026cd4, FUTEX_WAIT_PRIVATE, 19, NULL <unfinished ...>
[pid 4841] <... futex resumed> ) = 0
[pid 4850] futex(0x7f8cd801e2ac, FUTEX_WAIT_PRIVATE, 11, NULL <unfinished ...>
[pid 4841] futex(0x7f8cd8003900, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 4841] futex(0x7f8cd8003984, FUTEX_WAIT_PRIVATE, 39, NULL <unfinished ...>
[pid 4833] <... select resumed> ) = 0 (Timeout)
[pid 4833] select(0, NULL, NULL, NULL, {0, 4000}) = 0 (Timeout)
[pid 4833] select(0, NULL, NULL, NULL, {0, 8000}) = 0 (Timeout)
[pid 4833] select(0, NULL, NULL, NULL, {0, 16000}) = 0 (Timeout)
[pid 4833] select(0, NULL, NULL, NULL, {0, 32000}) = 0 (Timeout)
[pid 4833] select(0, NULL, NULL, NULL, {0, 50000}) = 0 (Timeout)
[pid 4833] select(0, NULL, NULL, NULL, {0, 50000}) = 0 (Timeout)
[pid 4833] select(0, NULL, NULL, NULL, {0, 50000}) = 0 (Timeout)
它永远不会返回信息。其他 PG 确实显示了正确的 JSON 数据。我尝试重新启动 osd0,但没有看到任何错误。
有人有什么想法吗?