Ceph 數據一致性檢查

數據一致性檢查

Architecture — Ceph Documentationnode

[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
相關文章
相關標籤/搜索