天天看点

ClusterStorage-9-基本排错之BitRot检测基本配置

0.实验前的环境检查与配置

[[email protected] ~]$ lab bitrot setup

1.gluster volume bitrot replvol enable开启bitrot检测功能。

[[email protected] ~]# gluster volume bitrot replvol enable

volume bitrot: success

2.gluster volume bitrot replvol scrub-frequency hourly设置检测的频度。

[[email protected] ~]# gluster volume bitrot replvol scrub-frequency hourly

volume bitrot: success

3.gluster volume bitrot replvol scrub-throttle aggressive设置一次尽可能多的扫描文件。

[[email protected] ~]# gluster volume bitrot replvol scrub-throttle aggressive

volume bitrot: success

4.gluster volume get replvol all | grep scrub查看配置的功能的参数。

[[email protected] ~]# gluster volume get replvol all | grep scrub

features.scrub-throttle                 aggressive                              

features.scrub-freq                     hourly                                  

features.scrub                          Active    

5.任务测评

lab bitrot grade进行测评。主要包括:bitrot 检测是否开启,扫描的频度,文件控制器的设置等。

[[email protected] ~]$ lab bitrot grade

Grading the student's work:

 · Checking if bitrot is enabled for replvol...................  PASS

 · Checking bitrot scrub frequency for replvol.................  PASS

 · Checking bitrot scrub throttling for replvol................  PASS

Overall lab grade..............................................  PASS

继续阅读