Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Scrubbing · Data Integrity

Direct answer

Scrubbing is a scheduled background read of all data to verify checksums and repair bad blocks from redundant copies, for example zpool scrub, btrfs scrub or RAID consistency checks.

When to use this

Use this when scheduling background verification of stored data.

First 30 seconds

1. Scrubbing reads all data and verifies/repairs.

2. Monthly for most systems.

3. Schedule off-peak.

4. Review results.

5. Alert on errors.

Operational verification

scrub → read all → verify → repair

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Never scrubbing, so errors are found only during a rebuild.
  • Scrubbing during peak hours.
  • Ignoring checksum errors reported by scrubs (zpool status CKSUM column).
  • RAID controllers with patrol read disabled.
Platform / version applicability
Storage architecture and operations
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformStorage architecture and operations
Scope / prerequisiteUse this when scheduling background verification of stored data.
What next?2 suggested next steps
Evidence1
On this pageJump to a specific section
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • Scrubs read everything and repair from redundancy.
  • Run them regularly, for example monthly.
  • Scrubs add I/O load.
Key checks
  • zpool status <pool> | grep scan — last scrub
  • btrfs scrub status <mount> — last scrub
  • echo check > /sys/block/md0/md/sync_action — md check
ReferenceHow it works1 section · depth on demand

Scheduling scrubs

SystemDefault / typical schedule
ZFSMonthly (zfs-scrub-monthly@ timer or cron)
Linux md RAIDMonthly checkarray (Debian) / raid-check (RHEL)
BtrfsMonthly btrfs-scrub@ timer
CephLight scrub daily, deep scrub weekly per PG
Hardware RAIDPatrol read / consistency check weekly

Scrubs cost I/O; run them off-peak and alert on any repaired or unrecoverable errors.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

Scrubbing reads all stored data in the background, verifies it against checksums or parity, and repairs bad copies from redundancy.

PlatformCommandTypical schedule
ZFSzpool scrub tankMonthly / biweekly
Btrfsbtrfs scrub start /mntMonthly
md RAIDecho check > /sys/block/md0/md/sync_actionMonthly (distro cron)
Hardware RAIDPatrol read / consistency checkContinuous / weekly
CephLight scrub daily, deep scrub weeklyAutomatic
Storage Spaces/ReFSData Integrity Scan taskMonthly

After an md check, cat /sys/block/md0/md/mismatch_cnt shows inconsistent sectors (some non-zero values are normal on RAID1 with swap).

ReferenceConfiguration & state1 section · depth on demand

Commands

zpool scrub tank ; zpool status tank
btrfs scrub start /data ; btrfs scrub status /data
echo check > /sys/block/md0/md/sync_action    # Linux md RAID
Start-ScheduledTask -TaskPath \Microsoft\Windows\Data Integrity Scan\ -TaskName 'Data Integrity Scan'

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docStorage architecture and operations current

Authoritative/upstream documentation reviewed for bounded claims in Data Integrity → Scrubbing. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://csrc.nist.gov/pubs/sp/800/209/final · confidence 94%
Confirmation

Confirm action

Continue?