Ceph 数据一致性检查

一笑奈何 提交于 2020-12-23 11:04:43

数据一致性检查

Architecture — Ceph Documentation


[root@node1 my-cluster]# ceph pg dump
PG   OBJECTS DEGRADED MISPLACED UNFOUND BYTES    OMAP_BYTES* OMAP_KEYS* LOG  STATE        SINCE VERSION REPORTED UP        ACTING    SCRUB_STAMP                DEEP_SCRUB_STAMP
1.0        1        0         0       0   147456           0          0   65 active+clean  108m   21'65   98:198 [1,5,3]p1 [1,5,3]p1 2020-12-21 08:36:19.586850 2020-12-18 11:09:36.484516
1.1        0        0         0       0        0           0          0   40 active+clean  108m   21'40    98:44 [5,0,1]p5 [5,0,1]p5 2020-12-21 08:34:48.520073 2020-12-18 11:09:36.484516
·····

# scrub 检查比对 PG 的 metadata 
[root@node1 my-cluster]# ceph pg scrub 6.f
instructing pg 6.f on osd.3 to scrub

# deep-scrub 检查比对 PG 的实际内容(耗费资源)
[root@node1 my-cluster]# ceph pg deep-scrub 6.f
instructing pg 6.f on osd.3 to deep-scrub
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!