数据一致性检查
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