ceph pg unfound状态处理

2021-01-13  本文已影响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
上一篇 下一篇

猜你喜欢

热点阅读