Actions
Feature #12257
openScrub recovery&resume on MDS replay
Status:
New
Priority:
Normal
Assignee:
-
Category:
fsck/damage handling
Target version:
-
% Done:
0%
Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Component(FS):
Labels (FS):
Pull request ID:
Description
During replay, load the state we stored when starting scrubs (#12255) and use it to reconstruct the in-memory record of which scrubs are in progress from which positions in the tree, using which tags.
Also traverse the tree to reconstruct the progress metric for the scrub (i.e. count rstats of items with a scrub stamp indicating they've already been touched as done, and count rstats of other items as still to do).
Finally, actually kick off the scrubbing for any scrubs that were incomplete at the point the MDS was killed, so that an MDS restart does not logically interrupt ongoing scrubs.
Actions