Research notes / Storage integrity
Disk scrubbing: detection time is not a durability guarantee
Published · Updated · Literature synthesis and exact synthetic worksheet, not a hardware benchmark
Scrubbing can expose damage before a rebuild needs the affected data. That does not make a clean scan a prediction of future survival, or every detected error an instance of irrecoverable data loss.
On this page22 sections
Three boundaries to keep separate
For command-level comparison modes and the distinction from write completion, see read-after-write verification, IRAW and SCSI VERIFY.
A latent sector error becomes visible when the affected location is accessed. Bairavasundaram and colleagues distinguish this from a drive's internally recovered error. Their NetApp study also separates media verification inside the drive from data scrubs that read and compare higher-level checksums. Recovery can require reconstruction from another member before rewriting the sector. [1, sections 2-3]
| Observed outcome | Question still open | Evidence to retain |
|---|---|---|
| An error was detected | Can another valid copy reconstruct the data? | Address, error type, redundancy state |
| Redundancy disagrees | Which content is correct? | Checksum coverage and repair policy |
| A scan finished cleanly | What did it actually verify? | Scope, completion and unreadable regions |
The historical field observations are conditioned on that operator's logging, remapping and removal policies. Section 4 documents missing write-error reports for nearline drives and censoring after removal. They are not an unfiltered sample of every physical defect. [1]
ASER: count errors, affected drives and read exposure separately
The same sector-error rate can accompany very different fractions of affected drives. The ASER definition uses an annual mean error count divided by sectors per drive. In SIGMETRICS 2007, Figure 2 compares two annual windows in the same 24-month cohort. [1, section 5.3.1]
For 1,000 equal-capacity drives with 1,000,000 sectors each and complete one-year observations, the capacity exposure is 1,000,000,000 sector-years. These invented counts generate the following table; they are not field measurements.
| Error placement | Errors | Affected drives / 1,000 | Affected fraction | Errors / sector-year |
|---|---|---|---|---|
| Concentrated | 100 | 1 | 0.1% | 1e-7 |
| Dispersed | 100 | 100 | 10% | 1e-7 |
| More errors | 1000 | 100 | 10% | 1e-6 |
The first row puts all 100 errors on one drive; the second puts one on each of 100 drives. Both give 100 / 1,000,000,000 = 1e-7 errors per sector-year. The third puts ten on each of those 100 drives: the affected fraction stays 10%, while ASER rises tenfold. Neither summary determines which redundancy groups contain the damaged sectors.
Capacity is not read traffic. Even knowing bytes per sector does not supply bits read or a matching error event definition. For comparison, one ECC study defines UBER as codeword failure rate divided by codeword length. [28, section VI.C] Do not substitute ASER into a per-bit rebuild-error formula.
For real logs, retain the annual window, sector size and capacity, zero-error drives, discovery policy, removal and repeated-report handling. Short or missing histories cannot silently become complete one-year observations.
Download the calculation and tests; run node --test aser-denominators.test.mjs with both files together. The worksheet accepts complete, equal-capacity one-year counts only; it estimates neither modern drive reliability nor array data-loss probability.
Ceph: clean placement is not a completed data check
Ceph deep scrub adds data reads and checksum verification to the metadata comparisons of a light scrub. The distinction matters when interpreting a dashboard: in Squid, active permits requests and clean describes the required replication count. Those states do not record a successful checksum scan. [26] [30]
| Observation | What it describes | Still verify |
|---|---|---|
| Light scrub | Object sizes and attributes | This scan does not establish a data-payload checksum pass |
| deep state | Data checking in progress | Completion and reported errors |
| active+clean | Requests allowed and replication count satisfied | Last completed deep scrub and its result |
| Repair initiated | An attempt to resolve inconsistencies | Recovery outcome and remaining inconsistencies |
In replicated pools, pg repair can mark an inconsistent replica missing; recovery then supplies replacement content. It does not resolve every fault. For the documented erasure-coded and BlueStore cases, Squid disables automatic scrub repair by default; enabling it still leaves a configured damaged-object threshold. Detection, attempted repair and successful recovery are separate observations. [31]
Inspect per-shard errors as well as the aggregate mismatch. A read_error warrants checking the underlying storage. Retain the PG and object identifiers, error report, scan completion and recovery result. A scheduled date or a transient state is not a substitute for that evidence. [31]
Why version knowledge is not a byte check. The 2007 RADOS design separates a PG log's record of expected object versions from replicas that may still be missing. Peering reconciles that history before background recovery restores missing content. This is useful historical context for distinguishing metadata agreement from data verification, not a specification of Squid's scrub algorithm or evidence of its present-day performance. [32]
Two parity sectors do not promise recovery from any two losses
Our 16+2 interleaved example recovers all 17 adjacent pairs of lost positions, but only 81 of the 153 possible pairs. Scrubbing can locate unreadable sectors; the layout of the surviving equations decides whether this particular redundancy can reconstruct them.
Intra-disk redundancy keeps recovery information on the same drive. In the FAST 2010 review [2, section 4], interleaved parity spaces members of each XOR group across logical sectors. Its trace evaluation found weaker protection than MDS under the observed error patterns. The selected cohort already had latent errors and at least 12 months in service; these results are not whole-fleet loss rates.
Follow the equations, including the parity positions
Our constructed codeword stores 16 data bytes followed by two parity bytes. Positions are numbered 0 through 17; the order is linear, without wraparound. Group A contains even positions and group B odd positions. The XOR of every complete group is zero:
p0 = d0 XOR d2 XOR d4 XOR d6 XOR d8 XOR d10 XOR d12 XOR d14
p1 = d1 XOR d3 XOR d5 XOR d7 XOR d9 XOR d11 XOR d13 XOR d15
Stored order: d0, d1, ... d14, d15, p0, p1One missing member per group is recoverable by XORing its surviving members. Two missing members of the same group leave one equation for two unknowns. This applies to missing parity too: losing d0 and p0 is ambiguous; losing p0 and p1 permits recomputation from all surviving data.
| Lost positions | Checked | Can recover |
|---|---|---|
| Any two positions | 153 | 81 |
| Adjacent positions | 17 | 17 |
| Positions two apart | 16 | 0 |
The 81 recoverable pairs choose one of nine positions from each group: 9 times 9. The remaining 72 choose two within a group: 2 times choose(9, 2). Adjacent positions always belong to different groups; positions two apart always belong to the same one. These counts do not assign equal probabilities to real faults.
For a concrete ambiguity, erase d0 and d2. An all-zero payload and a payload with d0 = d2 = 1 produce identical surviving bytes: their two changes cancel in p0. Both fit the same observation, so no decoder can choose between them using only these survivors. The complete pair list and two payloads make the counterexample independently checkable.
A suitable 16+2 MDS code instead guarantees recovery from any two known erasures, with correct survivors. That is a different code construction, not a property bestowed by the number two. RFC 5510 defines the any-k property for its erasure channel; our XOR example does not implement that specification. [17] See the matrix recovery analysis for explicit MDS construction checks.
Recovery scope determines read cost
The 2005 ixt3 prototype gives each file one parity block. A failed data block is reconstructed by reading that parity and the other data blocks of the file. Metadata instead uses replicas. A file modification reads and updates its parity block; this is an implementation description, not a universal I/O count for intra-disk coding. [24, sections 6.1-6.2]
In the constructed layout above, recovering d0 uses seven surviving data bytes and p0, not group B. For equal-sized sectors with no cached survivors, that becomes eight sector payloads to reconstruct one sector, before metadata, retries or repair writes. This is an algebraic read-set count, not a measured device workload. Record the reconstruction group and available survivors alongside parity capacity: the space overhead alone does not describe the repair work.
A wrong survivor can poison reconstruction
Rechecking parity after reconstruction can accept the wrong payload. Keep the same 16+2 codeword, initially all zero. Erase d0 and silently change surviving d2 to 1. XOR reconstruction returns d0 = 1: the two wrong bytes cancel, so both groups pass parity again. The decoder has not verified that the survivors were correct; it has satisfied their equations.
We injected one known erasure and one distinct unflagged byte error into the unchanged teaching decoder. Both data and parity positions take each role: 18 erasure positions times 17 other positions times 255 nonzero XOR masks gives 78,030 cases. Each row below is disjoint; the all-zero base extends to other valid payloads by XOR linearity.
| Fault positions | Checked | Wrong result accepted | Inconsistency rejected |
|---|---|---|---|
| Same XOR group | 36,720 | 36,720 | 0 |
| Different XOR groups | 41,310 | 0 | 41,310 |
In the same group, the bad survivor's XOR mask also enters the missing byte. In the other group, the error leaves a nonzero XOR where there is no erasure to absorb it. This explains the result without assigning equal likelihood to real faults. Repeating the original parity equations cannot independently certify the reconstructed content.
The IRON prototype separately checks block contents against stored checksums and uses redundancy for recovery. Our injection does not implement or test that filesystem. [24, sections 6.1-6.2] In this XOR construction, correctly identifying the corrupt survivor as a second erasure prevents silent acceptance but leaves two missing members in one group. Detection has exposed a recovery limit, not supplied the missing information.
Download the case summary and counterexample, injection script and tests beside the original codec below; run node --test intradisk-survivor-integrity.test.mjs. No hardware failure rate or new error-correcting code is claimed.
What this changes in a scrub or repair review
Record the actual parity-group mapping and the unrecoverable pattern, not just a total bad-sector count. A second loss in another group and a second loss in the same group are different recovery cases. The erasure-only calculation assumes trustworthy survivors; the fault-injection extension deliberately violates that assumption. Both keep matching data/parity versions before injection, with no intervening repair. Neither locates an unknown corrupt member or models interrupted parity updates.
The same byte equations can be applied at every offset of equal-size sectors. They do not establish physical adjacency after drive remapping, protection from complete drive loss or a throughput result. Keep independent copies and failure-domain placement in the recovery design.
Download the model and tests beside the JSON, then run node --test intradisk-parity.test.mjs. Tests compare every 16+2 pair with binary-matrix rank, exhaust every erasure mask and one-bit payload for a smaller 4+2 construction, and check byte reconstruction. This is a teaching calculation, not a replication of the paper's private traces.
The overlooked variable: scan order
Oprea and Juels proposed staggered scrubbing: divide the address space into regions and visit a segment of each before advancing to the next segment. Finding a problem triggers closer inspection of its region. This aims to discover a damaged region earlier, not merely to scan adjacent sectors faster after discovery. [3, section 4.2]
Their evaluation considers seek overhead and a modeled single-drive latent-error exposure metric, MLET. It is not array mean time to data loss. The paper explicitly leaves system-level redundancy analysis and transfer to flash as future work. Treat scan-order design as an interesting hypothesis for a controlled evaluation, not a universal SSD tuning recipe. [3, sections 2 and 6]
Less time exposed can still mean slower detection
In the histories below, A has the lowest exposed-time fraction, while B has the shortest mean detection delay. Choosing a metric changes what an improvement means.
Oprea and Juels define LET as the fraction of a drive's operating time with at least one undetected latent sector error. MLET averages LET over modeled error histories. Despite its name, it is dimensionless, not a duration. [3, section 5] Schroeder and colleagues instead evaluate mean time to error detection, MTTED. [2, section 5.1]
Consider one drive over ten hours. Error 1 begins at hour 0 and error 2 at hour 2 in every row. Each persists until its stated detection time. These are invented, complete histories, not measurements or an equal-cost comparison of scrub algorithms.
| History | Detection hours Error 1 / 2 | Mean delay (hours) | Exposed time (hours / 10) | LET |
|---|---|---|---|---|
| A: overlapping | 4 / 4 | 3 | 4 / 10 | 40% |
| B: shorter mean delay | 1 / 6 | 2.5 | 5 / 10 | 50% |
| C: no overlap | 2 / 6 | 3 | 6 / 10 | 60% |
For A, the undetected intervals are [0,4) and [2,4). Their combined coverage is four hours, so LET is 4/10. Adding the two delays gives six event-hours; dividing by two errors gives a three-hour mean. Counting the overlap twice would incorrectly report 6/10 as exposed time.
B detects the first error at hour 1 and the second at hour 6. Its delays average (1+4)/2 = 2.5 hours, but its disjoint intervals cover five hours. C matches A's three-hour mean while covering six hours. Neither error count nor event-mean delay determines the time-union measure.
Each row is LET for one stipulated history, not an estimate of MLET. At detection, an error stops being undetected; successful repair is a separate event. Unknown onset, unfinished detection and unverified blocks require additional evidence or a stated censoring model.
For a policy comparison, keep the horizon, error process, I/O budget and detection rules explicit. Report the metric actually optimized. This example provides no probability of data loss and no optimal scan interval.
The MLET corpus record links this distinction to the existing detection-time terms. Reproduce the table with the calculation module and tests; place them together and run node --test scrub-exposure.test.mjs. The JSON results include the invented inputs, assumptions and module hash. Tests compare interval merging with independent hourly occupancy for 2,025 pairs.
The same read budget can miss an entire damaged region
Checking 460 blocks can give a 99.12% or a 5.59% chance of finding damage in the same constructed object. The difference is which sets of blocks can be chosen, not how many bytes the checks cover.
Suppose 100 consecutive blocks are damaged in an unchanging sequence of 10,000 equal-sized blocks. Compare a uniformly selected set of 460 distinct positions with one 460-block window whose start is uniform. For the window calculation, the end wraps back to the beginning: a cyclic model that gives every block the same inclusion probability.
| Selection rule | At least one hit | Expected damaged blocks checked |
|---|---|---|
| Uniform subset | 99.12% | 4.6 |
| One cyclic window | 5.59% | 4.6 |
Equal inclusion chances do not mean equivalent samples
For a uniform size-C subset, the miss probability is choose(N-M,C) / choose(N,C). This is the zero-hit case of the hypergeometric distribution and the sampling calculation in the PDP paper. It applies to any fixed arrangement of M damaged positions: it does not require damage at different positions to occur independently. [15] [16, section 5.1]
A cyclic window instead hits the damaged run from M starts inside that run or C-1 starts immediately before it. For positive M and C, the hit probability is min(N, M+C-1) / N: here, 559 of 10,000 possible starts. This derivation is Hesela's counting example, not a result measured in the cited papers.
Both designs include each individual block with probability C/N. Therefore both have expected damaged-block count C*M/N = 4.6, by adding individual inclusion probabilities. But one contiguous window usually misses this cluster; when it hits, it can encounter many damaged blocks together. An average count alone conceals that distinction. With just one damaged block, both designs give the same 4.6% hit probability.
Optimize the read order without silently changing the sample
Sorting an already selected random set by address preserves its membership and this hit probability, provided all selected checks complete on the same unchanged object. Replacing that set with one convenient contiguous range changes the sampling design. Reading additional neighbors need not invalidate the original sample, but count them separately from the requested sample and retain incomplete-check evidence.
Oprea and Juels' staggered scrub visits segments across regions to expose clustered errors earlier, while accounting for seek overhead. That is a scheduling policy, not the same design as either row above. [3, section 4.2] Nor is a 100-block damaged run a typical-case estimate: the historical FAST 2010 dataset reported that 90-98% of contiguous error bursts were singletons, while also showing longer tails and nearby errors. [2, sections 3.1-3.2]
The cyclic boundary is deliberate; a linear, nonwrapping window needs its own edge calculation. This example gives no seek-time estimate, optimal scrub rate, cryptographic assurance or probability of data loss. It isolates a coverage assumption that can be lost during an I/O optimization.
Reproduce the table with the calculation module and its uniform-subset dependency. The JSON results record inputs, assumptions, generation time and both source hashes. Download the enumeration tests into a scripts/ directory beside public/research/ containing both modules, then run node --test scripts/sampling-design.test.mjs. Tests enumerate every start and cluster rotation for small cyclic populations; a separate subset enumeration checks arbitrary fixed damage patterns.
For repeated challenges and the distinction between a sampling hit and a storage proof, see remote audit sampling.
First alarm and complete detection can favor different scans
Finding one damaged segment sooner does not mean finding every damaged segment sooner. Oprea and Juels motivate staggering with early discovery of an affected region; their MLET counts time with latent errors. Schroeder and colleagues compare mean error-detection time and distinguish accelerated policies. Keep the objective and the response to an alarm explicit. [3, sections 4.2 and 5] [2, section 5]
Consider sixteen segments in four adjacent regions. Sequential order is 0, 1, 2, 3, 4, through 15. Staggered order is 0, 4, 8, 12, 1, 5, 9, 13, 2, 6, 10, 14, 3, 7, 11, 15. Each check is instantaneous at an integer time, and the sixteen-unit cycle repeats. All four segments in one region become persistently faulty together, at an onset uniform over a complete cycle. There is no repair, seek cost, extra read or alarm-triggered change of order or speed.
| Detection objective | Sequential | Staggered |
|---|---|---|
| First affected segment detected | 5.375 | 2 |
| Mean delay across the four errors | 8 | 8 |
| All four affected segments detected | 10.625 | 14 |
For the first hit, sequential checks of the affected region leave cyclic gaps of 1, 1, 1 and 13 units; staggering leaves four gaps of 4. Integrating the triangular waiting-time areas gives (1 + 1 + 1 + 169) / 32 = 5.375 and (16 + 16 + 16 + 16) / 32 = 2. Every individual segment is still checked once per sixteen units, so its mean delay remains 8. Averaging over the four errors preserves that value.
The last hit reverses the comparison: its mean is 10.625 for sequential checks and 14 for staggered checks. After a first alarm, immediately checking neighboring segments would be a different policy and would require recalculating both coverage and cost. Sixteen checks also do not imply equal disk-head movement or elapsed scan time on real HDDs.
This is a fixed-order teaching example, not a reproduction of either FAST simulator or a contradiction of its conditional results. It models neither data repair nor array loss. Report first-alarm delay, per-error delay, time to complete detection and repair completion separately when evaluating staggered scrubbing. No universal scheduling recommendation follows.
The calculation module generates this table. Download it beside the tests and run node --test scrub-objectives.test.mjs. Tests compare midpoint integration against a separate cyclic-gap formula for all 1,820 four-position subsets of a sixteen-check cycle, with single-error, phase and malformed-input controls.
A discovery timestamp is not a fault timestamp
Schroeder, Damouras and Gill reused a subset of the earlier NetApp observations; this is not an independent fleet replication. Their traces identify error-discovery time. The authors bound onset using an assumed two-week scrub interval; that bound is not a general guarantee supplied by any configured scrub schedule. They compare alternative onset assignments when evaluating scan policies. [2, sections 2 and 5.1]
In their trace-driven evaluation, staggered policies reduced mean detection time by 10-20% at 7-14-day scan intervals. Under their independent, randomly assigned onset-time scenario, gains fell to 2-5%. These are model-conditional comparisons, not measured reductions in lost files. [2, sections 5.2.3-5.2.4]
Our inference: an apparent change in error frequency can reflect a change in observation. Preserve the last successful verification time for the affected content and the detection time separately. When the verification actually rules out the event, those times bound onset; a job-level completion timestamp alone need not do so.
What can the log actually date?
Interval-censoring means an event is known to have occurred between observations, without an exact occurrence time. It differs from right-censoring, where observation ends before the event is seen. NIST distinguishes these record types. [12]
Hesela's application to storage: if the same content version was verified intact at time L and first found corrupt at R, a persistent, detectable corruption has onset L < T ≤ R. The tests must cover that block and that failure mode. An intervening overwrite, repair, checksum exclusion or unreliable check can invalidate this interpretation.
| Record available | Supported timing claim |
|---|---|
| Same content verified at L; corrupt at R | Onset lies in (L, R], under the stated coverage assumptions. |
| Corrupt at first observation | Onset is no later than R; there is no observed last-good lower bound. |
| Verified intact through C; observation ends | No qualifying event observed through C; a right-censored record under those assumptions. |
| Scheduled, skipped or incomplete scan only | No block-level onset bound follows from the schedule alone. |
Invented example, not fleet data: a block verified at day 0 is first found corrupt at day 14. Onset on day 1 gives a 13-day detection delay; onset on day 13 gives a 1-day delay. Both fit the same two observations. Assigning day 7 as onset is an imputation assumption, not a measurement. The observations alone do not identify mean time to detection.
A scan's finish time can be later than the actual verification of an early block. Keep per-block timestamps where available, or retain a conservative verification window rather than inventing precision. Unknown coverage is missing evidence, not proof of a clean interval. If health alarms trigger extra checks, inspection timing can depend on health; modeling it as independent needs justification.
Detection bursts do not settle the cause
FAST 2008 considered whether clustered checksum detections reflected scan order. Its authors also examined counts in two-week windows and reported temporal dependence beyond the immediate discovery burst. Section 3.2 separately says their logs could not confirm periodic scrubbing for every disk. This supports neither treating every burst as simultaneous damage nor dismissing all clustering as a scanner artifact. These checksum observations differ from the latent-sector-error population in FAST 2010. [13, sections 3.2 and 4.3.4]
An opportunistic target is not a deadline
Opportunistic scrubbing uses another disk access as a chance to check overdue regions. Schwarz and colleagues studied this for powered-down archives in MASCOTS 2004. Their model balances detection against extra operating time and power cycles; it is not a modern-drive measurement. Section 4.3 adjusts the trigger earlier when comparing equal mean scrub intervals. Section 7.3 calls for periodic wake-ups when ordinary accesses are too rare. [25]
The opportunity is a disk access, not necessarily a read of the overdue region. Section 4.3 keeps a separate last-scrub time per disk portion and checks overdue portions when the disk is accessed. Reading a hot region therefore does not itself verify cold regions. [25]
A target can become overdue without causing any I/O. Our synthetic trace assumes one region successfully checked at day zero. At each listed access, it checks that region only if its age is strictly greater than 14 days. Checks succeed instantaneously; equality does not trigger. These are explicit worksheet rules, not a Ceph implementation or a reproduction of the paper's reliability simulation.
| Access day | Age before access | Check completed |
|---|---|---|
| 7 | 7 | No |
| 13 | 13 | No |
| 29 | 29 | Yes |
| 43 | 14 | No |
| 44 | 15 | Yes |
The first actual gap is 29 days, not 14. At day 60, the last check remains day 44: the unfinished age is 16 days. The observation cutoff does not create a check. With no further accesses, this policy supplies no finite age ceiling. An independent fallback can create another opportunity, but successful completion and coverage still require evidence.
Scheduling limits and completed coverage are different records
Ceph's Squid configuration reference documents an overdue-scrub exception to its time window. Its separate health-check reference still describes overdue PGs and eligibility restrictions. Those are versioned scheduler semantics, not proof that every byte was verified by a deadline. Light and deep scrubs also have different read coverage. [26] [27]
Record the target, trigger, actual start, successful completion, verified regions and unfinished work separately. Do not count an ordinary user read as verification of the whole disk, or silence an overdue interval by replacing its last-check time with a scheduled date.
Replay the exact trace with the standalone model and tests: node --test opportunistic-scrub.test.mjs. The model exports example() for machine-readable results. No empirical failure rate or optimal maintenance interval is inferred.
The same average interval can hide longer waits
Four checks in 56 days need not give the same detection delay. Our constructed schedules below all average 14 days between checks, yet their mean waits are 7, 8.75 and 12.25 days. These are exact model results, not measured disk behavior.
Let d be a gap between successful checks of the same block. If a hypothetical fault onset is uniform over a window made of complete gaps, its mean wait to the next check is sum(d * d) / (2 * sum(d)). A gap contributes a triangular waiting-time area d * d / 2; divide the summed area by the window length. Choosing each gap equally would answer a different question.
| Gaps | Mean wait | Wait >14 |
|---|---|---|
| 14, 14, 14, 14 | 7 | 0% |
| 7, 21, 7, 21 | 8.75 | 25% |
| 7, 7, 7, 35 | 12.25 | 37.5% |
In the alternating schedule, the 21-day gaps occupy 42 of 56 days, so a uniform onset falls in them with probability 3/4, not 1/2. The result is a 25% longer mean wait than regular spacing at the same count of checks. The final column is the fraction of possible onset times whose wait exceeds 14 days, not a probability of data loss. It equals sum(max(d - 14, 0)) / sum(d).
This is an instance of the inspection paradox. In a renewal model with independent identically distributed positive gaps and finite second moment, the long-run mean residual wait is E[D^2] / (2 E[D]). It equals E[D] / 2 + Var(D) / (2 E[D]): interval variability matters. Gallager derives the time-average result in Example 4.4.1 and equation 4.15. [14]
Where this model stops
The finite-window calculation does not require independent gaps, but its detection interpretation requires uniform onset and a detecting check at each endpoint. Health-triggered scans, workload-linked faults, intervening reads, overwrites or incomplete coverage break that interpretation. A scrub's start or finish time is not every block's verification time. Incomplete edge intervals must not silently disappear from an operational report.
These are known schedules, not sampled fleet histories, so we attach no confidence intervals. The worksheet does not select an optimal scrub frequency, model repair or reproduce the FAST papers. Its practical use is to expose what a mean interval alone omits. Retain the full gap distribution and coverage evidence.
Reproduce with Python's standard library: generator, tests and exact results and provenance. Run python3 model.py --check and python3 -m unittest test_model.py together with the downloaded results. The tests independently integrate 340 small schedules at half-day points; they also check the displayed examples and reject invalid inputs.
The unfinished gap must stay in the report
Dropping an unfinished interval changes the population being averaged. In this constructed example, keeping only completed gaps gives 7 days; the full-window mean wait is at least 10.5 days and has no finite upper bound without evidence about the next check.
One block is checked at days 0, 14 and 28. A complete inspection log then runs through day 56 without another detecting check. Assume a hypothetical persistent fault starts uniformly anywhere in the original 56 days. The two finished gaps occupy 28 days; the unfinished gap occupies the other 28. A reporting cutoff is not a successful verification.
| Treatment | Mean wait (days) | Wait >14 days |
|---|---|---|
| Drop unfinished gap 28-day window | 7 | 0% |
| Cutoff lower bound 56-day window | At least 10.5 | At least 25% |
| Next check on day 70 56-day window | 17.5 | 50% |
| Next check on day 98 56-day window | 31.5 | 50% |
Separate elapsed waiting from assumed future checks
Let a be the unfinished gap's observed age, d_i the completed gaps and H = sum(d_i) + a the window length. The lower bound is B = (sum(d_i*d_i) + a*a) / (2*H). For each hypothetical onset, count time until the next check or until observation ends, whichever comes first. This gives elapsed waiting, not a claim that every fault was detected at the cutoff.
If the next check occurs u days after cutoff, the true mean under this constructed onset model is B + a*u/H. Here half of the onset window lies in the unfinished gap: each additional day before the next check adds half a day to the mean. A check on day 70 gives 17.5 days; on day 98, 31.5 days. These futures fit the same log through day 56.
For a threshold h, the exact tail is (sum(max(d_i-h,0)) + min(a,max(a+u-h,0))) / H. At h = 14, the log and our onset assumptions bound the full-window tail between 25% and 50%, even though completed gaps alone give zero. The lower bounds are approached as the next check approaches the cutoff; no check at day 56 was observed.
What to retain in an operational report
Keep the observation start and cutoff, completed per-block gaps, age of the unfinished gap and missing-log status. Do not encode that age as another completed interval. Here the next inspection time is right-censored; no actual fault onset was observed. NIST distinguishes an observation ending from an event occurring. [12]
This extends the residual-wait area argument in Gallager's Example 4.4.1, which includes a final partial interval before taking a long-run limit. [14] It is not a survival-model fit, a fixed-horizon restricted mean survival time, a measured MTTD or a replication of the FAST study. That study also distinguishes discovery timestamps from assumed onset times. [2, sections 2 and 5.1]
The bounds require complete logs and detecting checks of the same block and failure mode, with no intervening reads, repairs or overwrites. Missing records are not proof that no check occurred. Health-dependent fault onset, unknown initial checks and incomplete coverage need other models. No sampling confidence interval applies to these invented inputs.
Download the reproduction notes, generator, tests and exact results. In one directory, run python3 model.py --check and python3 -m unittest -v test_model.py. Tests independently integrate 153 small timelines, including entirely unfinished windows, and reject invalid durations.
Patrol read is not a RAID consistency check
Media readability and agreement between redundant blocks are different checks. A controller's successful scan does not certify filesystem structure or application meaning.
| Operation | Checks | Boundary |
|---|---|---|
| Patrol read | Eligible physical drives for media read errors. | Eligibility and possible recovery depend on controller and array state. [18] |
| RAID consistency check | Mirror or parity agreement. | Dell PERC can correct redundancy; this is not an application-content oracle. [19] |
| Checksum-based scrub | Data against recorded checksums. | OpenZFS repair needs usable redundancy; checksum agreement does not prove application intent. [5] |
Dell PERC 11 includes configured members and hot spares, not unconfigured disks. Other maintenance can block patrol read. Dell iDRAC10 1.20.xx also lists SSDs as excluded; do not turn that product-specific restriction into a universal rule. Check the deployed model, firmware and mode. [18] [20]
A launch request is weaker evidence than a completed scan. iDRAC can accept the request and then fail the job when no virtual disk exists. Intel documents RS25/RMS25 firmware where consistency checking interrupts patrol read, with automatic restart depending on firmware. Keep the actual target, completed coverage, interruptions, errors and repairs. A calendar entry supplies none of those results. [20] [21]
The mdadm 4.2 manual makes another useful distinction: check records readable-data mismatches without reconciling them, while ordinary read-error recovery can still write reconstructed blocks. repair may rewrite parity or mirror copies. A nonzero mismatch count is not a count of damaged files. [22]
Ask which checks run on maintenance reads. In Krioukov et al.'s single-error model, recomputing parity from unvalidated data can cause parity pollution. A check available on user reads need not protect the scrub path. Stored physical identity can expose misdirection, but an old block at the right address can pass it. Version comparison needs identity checks too. These are modeled protection boundaries, not measured controller failure rates or a reason to disable scrubbing. [23, sections 3-4] See the checksum, identity and freshness analysis for the broader mechanism.
Our inference: identical replicas can hold the same wrong application output, and parity computed from that output can also agree. Restoring agreement alone does not recover the intended payload. Preserve independent content validation and recovery copies; no universal maintenance interval or measured reliability improvement follows from this comparison.
What do MD and ZFS check?
Linux MD's check requests a full redundancy check; the documentation warns that some RAID levels may also repair. Do not describe it as a universally read-only operation. Its mismatch_cnt counts sectors rewritten, or that would be rewritten, and page-sized processing can inflate that count relative to individual errors. It is not a count of damaged files. [4]
OpenZFS documents ordinary scrubbing as verification of pool data against block checksums, with repair supported by redundant devices. Resilvering instead targets data known to be out of date. Scrub completion, repair and unrepairable errors are reported separately; no redundancy can recover arbitrary damage once all valid copies are gone. [5]
These are different verification boundaries. Neither label alone establishes application-level correctness. A valid checksum over the wrong application output is still possible. Consult documentation for the deployed version before acting; this review does not execute maintenance commands or prescribe an aggressive scan schedule.
Start, resume and completion are different evidence
A successful launch is not a completed verification. Btrfs starts scrub in the background by default; -B runs in the foreground and prints statistics when the operation ends. A device target limits the scan to that device, although repair may read another replica. A filesystem path selects all its devices. [6]
Btrfs resume continues from saved progress; it does not start a fresh scan after a successful completed run. With no active scrub, status reports the last finished or cancelled run. Check its date, target and state before treating it as today's evidence. [6]
OpenZFS 2.3 separates metadata traversal (scanned) from data scrub I/O (issued). A large scanned value is not a completed checksum pass. Paused scrubs resume from saved progress. [10]
| Mode | Selected data | Remaining boundary |
|---|---|---|
| Regular scrub | Pool data | Check completion and remaining errors. [10] |
Error scrub (-e) | Files with known data errors reported by zpool status -v | Requires a prior scrub with head_errlog enabled. [10] |
Changed-data continuation (-C) | Changes since the last completed scrub's TXG boundary | Not a fresh verification of unchanged data. [11] |
The last_scrubbed_txg property supplies the boundary for -C; an error scrub does not update it. This boundary is distinct from a paused scan's resume position. [11]
Hesela's reporting rule: retain the software version, mode, target devices, run timestamps, completion state and final error counters together. Limited coverage must remain explicit even when no errors are reported. These are documentation-based interpretation rules, not a tested maintenance schedule.
Machine-readable concept: ZFS error scrub.
Btrfs: checksum exclusions and read-only limits
Btrfs NOCOW also sets NODATASUM: scrub still validates metadata, but not the affected file data. Redundant copies alone do not tell it which silently damaged copy is correct. Scrub is also not a full filesystem consistency checker. [6]
The nodatacow and nodatasum mount options concern newly created files. Do not infer an existing file's checksum coverage from today's mount options alone. [7] The filesystem-counter analysis covers additional detection limits.
Read-only scrub is not necessarily write-free. Btrfs documents internal writes when that scrub runs on a read-write mount; preventing scrub writes also requires a read-only filesystem. This is a scope warning, not an instruction to remount a damaged volume. [6]
The earlier mount is a separate boundary: Btrfs can replay its tree log even on a read-only mount. See mount-time replay and version-specific suppression before interpreting read-only scrub as evidence preservation. Skipping replay is not equivalent to clearing the log. [7]
Valid checksums can preserve invalid structures
A checksum over an already incorrect structure can match later. Recon (FAST 2012) instead checked relationships between metadata updates at transaction commit, such as agreement between live block references and allocation records. Its evaluation focused on ext3 and the transaction-layer implementation, not a modern Btrfs scrub benchmark. [8, sections 2, 4.1 and 5]
The 2012 tests did not inject misdirected writes. A write to ext3 metadata whose type Recon had not yet learned could escape checking. The evaluated transaction-layer implementation also trusted checkpointing; checking the journal was not checking every later write. The proof assumes initially consistent metadata and trustworthy checker state and lower layers. [8, sections 2.4 and 4.1]
The FAST 2014 follow-up added per-write location invariants: internally consistent transactions can still be undermined by missing, misdirected or incorrectly ordered writes. [9, sections 2.2-3.1]
The ext3 prototype changed the on-disk format. It added a metadata allocation bitmap so the checker could distinguish metadata destinations from data destinations. The metadata-only data-flush exception still permits writes to data blocks; it cannot detect misdirected writes between data blocks. This is not an unchanged ext3 deployment or a complete file-content oracle. [9, sections 3.2 and 4.3]
| Outcome | Cases | Interpretation |
|---|---|---|
| Detected by location invariants | 131 | Write-placement or transaction-protection checks triggered. |
| Detected by consistency invariants | 7 | Metadata relationship checks triggered. |
| Neither class triggered | 22 | 15 affected unused bytes; 7 omitted checkpoint writes already superseded in the journal. |
The authors found no filesystem inconsistency in those 22 cases, including with e2fsck. Calling them 22 harmful false negatives would misread the experiment. Ext3 used Linux 3.8.11; their separate Btrfs prototype used 2.6.35 and could not check barrier/flush requests through its device-mapper path. This is historical fault injection, not contemporary production validation. [9, section 5]
A consistent journal can still lose a committed update
Consistency and durability need separate checks. In this deliberately small Hesela model, two metadata fields start at (0, 0). A complete, durable journal transaction commits (1, 1). One field represents a block reference and the other its allocation bit; equality is the only consistency rule in this example.
The four checkpoint masks describe which whole home-block writes have persisted before a crash, not which writes were merely submitted. Recovery replays (1, 1) when the committed journal is retained. We also inject premature journal removal, leaving only the home blocks.
| Journal | Persistent home fields | After recovery | Result |
|---|---|---|---|
| Retained | (0, 0) | (1, 1) | Committed state restored |
| Retained | (1, 0) | (1, 1) | Committed state restored |
| Retained | (0, 1) | (1, 1) | Committed state restored |
| Retained | (1, 1) | (1, 1) | Committed state restored |
| Removed | (0, 0) | (0, 0) | Consistent but stale |
| Removed | (1, 0) | (1, 0) | Inconsistent |
| Removed | (0, 1) | (0, 1) | Inconsistent |
| Removed | (1, 1) | (1, 1) | Committed state restored |
Retaining the journal recovers the committed state in all four masks. After removal, (0, 0) passes the equality check but loses the committed update; (1, 0) and (0, 1) fail that check. Only (1, 1) retains the committed result. Releasing the journal only after both writes persist avoids all three failures in this model. Premature removal is an injected protocol violation, not a legitimate journaling option.
The 2014 paper motivates checking transaction placement and persistence, including checkpoint writes, in addition to transaction contents. [9, sections 2.2-3.2] This two-bit enumeration is an original teaching model, not a reproduction of Recon, ext3 recovery, the authors' 160 injections or a production bug. It omits later transactions, torn blocks, checksums, write reordering and device-cache behavior.
Do not turn this one-transaction rule into a requirement to replay every historical block. The FAST 2014 checker also handled revoke records when metadata was freed and reused as file data: replaying the old metadata would overwrite the new data. Its checker treated revoked blocks as checkpointed for transaction release. [9, section 4.3.2] The JBD2 format documentation distinguishes this reuse protection from simply replacing one journaled version with a newer one. [JBD2, Revocation Block] Supersession and revocation are outside the eight-state model; neither licenses dropping the only durable copy of a still-needed update. See journal revoke records and journal checkpointing.
Download the eight outcomes and assumptions, model and tests. Run node --test journal-checkpoint-boundary.test.mjs with all three files together. Tests also reverse allocation into deallocation and verify that safe release preserves the committed state.
Hesela's interpretation: record the property actually tested. A checksum match, a structurally consistent filesystem and an application returning the intended document are separate outcomes. None should silently stand in for the others.
Recon cost: setup time is not throughput loss
The paper's 15% worst throughput penalty at its smallest cache concerns workload execution. Initial setup is a separate measurement: Webproxy took 323.0 rather than 229.4 seconds, or 40.8% longer. These historical ext3 results are not a cost bound for a current scrubber. [8, section 5.3, Table 6 and Figure 4]
| Workload | Cache / journal (MB) | Ext3 (s) | Recon (s) | Extra time |
|---|---|---|---|---|
| Webserver | 64 / 32 | 2171.0 | 2903.2 | 33.7% |
| Webproxy | 64 / 32 | 229.4 | 323.0 | 40.8% |
| Varmail | 64 / 32 | 110.2 | 110.8 | 0.5% |
| Fileserver | 64 / 32 | 13728.5 | 17705.8 | 29.0% |
| Networkfs | 64 / 32 | 2096.8 | 2113.8 | 0.8% |
Arithmetic, not a rerun. Extra time = 100 × (Recon seconds − ext3 seconds) / ext3 seconds. All 15 recalculated ratios agree with the paper to one decimal. A ratio of rounded means is not a mean of per-run ratios or a confidence interval. Cache and journal sizes changed together; this does not isolate the effect of either.
Inspect the 15 source pairs and provenance, calculation, tests and method and limitations. This qualifies the existing filesystem consistency invariant record without changing its detection claims.
Repair ordering: validate the destination before modifying it
A later pointer correction cannot undo an earlier overwrite. SQCK motivates this dependency-order example. [33]
In this original in-memory model, eight blocks have independently trusted roles. Block 0 is a header containing [99, 8]; blocks 3 and 5 are indexes. Only blocks 2, 4, 6 and 7 are valid data children, and zero means no child. A corrupted parent points to block 0. A children-first policy treats the header as an index and replaces both words with zero before discovering that the parent points to the wrong kind of block.
| Starting pointer | Children first | Parent first |
|---|---|---|
| Pointer to header block 0 | Header [99, 8] becomes [0, 0] | Header retained; pointer detached |
| Index block 3 with child 99 | Index [4, 99] becomes [4, 0] | Index [4, 99] becomes [4, 0] |
| Clean index block 5 | No block changes | No block changes |
Both policies end with the invalid parent detached. Only the parent-first policy leaves the header intact. The legitimate damaged index is repaired identically under both orders; the clean index remains unchanged. Checking just the final parent value would miss the collateral damage.
Avoiding an overwrite is not recovering the file. The early check does not reconstruct the lost original reference. The trusted role map is supplied, not discovered. No concurrent writes, crashes, filesystem parser or storage device are modeled. This is not a claim that current e2fsck behaves like the deliberately unsafe policy.
Interruption is another obligation: rfsck-lib separates repair writes from their durable redo log, with ordered safe transactions. [34, section 5.3] The version-pinned e2fsprogs 1.47.3 manual explicitly excludes power/system-crash recovery from the -z undo file. [35] See crash-consistent filesystem repair; the ordering example does not test that property.
Download the model, tests, 22 cases and method. With the files together, run python3 -B test_model.py and python3 -B model.py --check. The model never opens a disk image.
A useful reliability record
Our reporting checklist, not a measured experiment:
- Name the verification layer: media readability, redundancy consistency, block checksum or application validation.
- Record scan scope and completion, including pauses, skipped regions, checksum-excluded files and outstanding errors.
- Separate detected, repaired and unrecoverable outcomes. Keep their units explicit.
- Record missing members and the validation available for reconstructed data.
- Retain timestamps and policy changes before comparing periods or fitting an onset model.
- Test restoration separately. A scrub is not an independent backup or a restore rehearsal.
This review does not reproduce the cited experiments, estimate contemporary failure rates or identify an optimal interval. See the separate prediction-assisted scrubbing review and RAID write-hole analysis for different failure mechanisms.
Structured definitions: latent sector error, data scrubbing, staggered scrubbing, RAID 5, Btrfs NODATASUM and filesystem consistency invariant.
Primary sources
- Bairavasundaram, Goodson, Pasupathy and Schindler. An Analysis of Latent Sector Errors in Disk Drives. SIGMETRICS 2007, sections 2-5.3.1.
- Schroeder, Damouras and Gill. Understanding latent sector errors and how to protect against them. FAST 2010, sections 2, 4 and 5.
- Oprea and Juels. A Clean-Slate Look at Disk Scrubbing. FAST 2010, sections 2, 4.2, 5 and 6.
- Linux kernel documentation: RAID arrays, sync_action and mismatch_cnt (retrieved 11 October 2026).
- OpenZFS master documentation: zpool-scrub(8), description and operation boundaries (retrieved 11 October 2026).
- Btrfs documentation: btrfs-scrub(8), checksum exclusions, consistency-check and read-only boundaries.
- Btrfs documentation: btrfs(5), datacow/nodatacow and datasum/nodatasum mount options.
- Fryer, Sun, Mahmood, Cheng, Benjamin, Goel and Brown. Recon: Verifying File System Consistency at Runtime. FAST 2012, updated 16 February paper, sections 2, 4.1 and 5.
- Fryer, Qin, Sun, Lee, Brown and Goel. Checking the Integrity of Transactional Mechanisms. FAST 2014, sections 2.2, 3.1 and 5.1, Table 1.
- OpenZFS 2.3: zpool-scrub(8), restricted scope, pause and progress accounting.
- OpenZFS 2.3: zpoolprops(7), last_scrubbed_txg and changed-data scrubbing.
- NIST/SEMATECH e-Handbook: Censoring, readout or interval data.
- Bairavasundaram, Goodson, Schroeder, Arpaci-Dusseau and Arpaci-Dusseau. An Analysis of Data Corruption in the Storage Stack. FAST 2008, sections 3.2 and 4.3.4.
- Robert G. Gallager. Discrete Stochastic Processes, chapter 4: Renewal Processes, Example 4.4.1 and equation 4.15, pp. 167-169; MIT 6.262 course notes (2011).
- NIST Dataplot Reference Manual: HYPCDF, finite-population sampling without replacement, equation 8-241.
- Ateniese et al. Provable Data Possession at Untrusted Stores. CCS 2007, section 5.1.
- Lacan et al. RFC 5510: Reed-Solomon Forward Error Correction (FEC) Schemes, abstract and section 1.
- Dell PERC 11 User's Guide: Patrol Read, eligibility and concurrent operations
- Dell KB 000139796: PERC Check Consistency, mirror and parity correction
- Dell iDRAC10 1.20.xx: controller properties, patrol eligibility and job-start limitations
- Intel article 000023659: RS25/RMS25 patrol-read interruption and firmware-dependent restart
- mdadm 4.2 md(4): Scrubbing and mismatches, read-error handling versus readable mismatches
- Krioukov et al. Parity Lost and Parity Regained. FAST 2008, sections 3-4.
- Prabhakaran et al. IRON File Systems. SOSP 2005, sections 6.1 and 6.2: ixt3 implementation and recovery.
- Schwarz, Xin, Miller, Long, Hospodor and Ng. Disk Scrubbing in Large Archival Storage Systems. MASCOTS 2004, pp. 409-418, sections 4.3 and 7.3.
- Ceph Squid documentation: OSD Config Reference, scrubbing windows, intervals and light/deep coverage.
- Ceph Squid documentation: PG_NOT_SCRUBBED and PG_NOT_DEEP_SCRUBBED health checks.
- Cai et al. Error Characterization, Mitigation, and Recovery in Flash Memory Based Solid-State Drives (2017), section VI.C.
- Linux kernel documentation: ext4 Journal (jbd2), Revocation Block; metadata-to-data reuse versus supersession
- Ceph Squid: Placement Group States, active, clean, scrubbing, deep and repair
- Ceph Squid: Troubleshooting PGs, inconsistent shards and More Information on PG Repair
- Weil et al. (PDSW 2007): RADOS, sections 3.4 and 3.4.1
- Gunawi et al. SQCK: A Declarative File System Checker. OSDI 2008, sections 2.3-5.3.
- Gatla et al. Towards Robust File System Checkers. FAST 2018, sections 3-5.
- e2fsprogs v1.47.3: e2fsck(8), -z undo_file crash limitation.
For a different medium and observation boundary, see optical-disc error metrics and lifetime estimates.
Updated . No third-party figures reproduced; the attributed Table 6 setup means are numerical transcriptions.