美文网首页
ceph pg unfound状态处理

ceph pg unfound状态处理

作者: 崇尚赛跑的蜗牛 | 来源:发表于2021-01-13 19:11 被阅读0次

为了让虚拟机访问正常,先将存储池的min_size调整为1

ceph osd pool set ssd min_size 1

查看存储池,找出unfound状态

查看存储池状态
ceph osd pool stats ssd
查看归置组不响应的pg
ceph pg dump_stuck stale
ceph pg dump_stuck inactive
ceph pg dump_stuck unclean
might_have_unfound的osd有以下四种状态
already probed
querying
OSD is down
not queried (yet)

查看pg恢复状态

 ceph pg 4.210 query

处理pg unfound

两种解决方案,回退旧版或者直接删除
# ceph pg 4.210 mark_unfound_lost revert
Error EINVAL: pg has 1 unfound objects but we haven't probed all sources,not marking lost
# ceph pg 4.210 mark_unfound_lost delete
Error EINVAL: pg has 1 unfound objects but we haven't probed all sources,not marking lost

恢复存储池min_size

# ceph osd pool set ssd min_size 2
set pool 4 min_size to 2

相关文章

网友评论

      本文标题:ceph pg unfound状态处理

      本文链接:https://www.haomeiwen.com/subject/qtmnoktx.html