Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / doc / dev / osd_internals / scrub.rst
1
2 Scrubbing Behavior Table
3 ========================
4
5 +-------------------------------------------------+----------+-----------+---------------+----------------------+
6 |                                          Flags  | none     | noscrub   | nodeep_scrub  | noscrub/nodeep_scrub |
7 +=================================================+==========+===========+===============+======================+
8 | Periodic tick                                   |   S      |    X      |     S         |         X            |
9 +-------------------------------------------------+----------+-----------+---------------+----------------------+
10 | Periodic tick after osd_deep_scrub_interval     |   D      |    D      |     S         |         X            |
11 +-------------------------------------------------+----------+-----------+---------------+----------------------+
12 | Initiated scrub                                 |   S      |    S      |     S         |         S            |
13 +-------------------------------------------------+----------+-----------+---------------+----------------------+
14 | Initiated scrub after osd_deep_scrub_interval   |   D      |    D      |     S         |         S            |
15 +-------------------------------------------------+----------+-----------+---------------+----------------------+
16 | Initiated deep scrub                            |   D      |    D      |     D         |         D            |
17 +-------------------------------------------------+----------+-----------+---------------+----------------------+
18
19 - X = Do nothing
20 - S = Do regular scrub
21 - D = Do deep scrub
22
23 State variables
24 ---------------
25
26 - Periodic tick state is !must_scrub && !must_deep_scrub && !time_for_deep 
27 - Periodic tick after osd_deep_scrub_interval state is !must_scrub && !must_deep_scrub && time_for_deep 
28 - Initiated scrub state is  must_scrub && !must_deep_scrub && !time_for_deep
29 - Initiated scrub after osd_deep_scrub_interval state is must scrub && !must_deep_scrub && time_for_deep
30 - Initiated deep scrub state is  must_scrub && must_deep_scrub