Use this when scheduling background verification of stored data.
Scrubbing · Data Integrity
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.
1. Scrubbing reads all data and verifies/repairs.
2. Monthly for most systems.
3. Schedule off-peak.
4. Review results.
5. Alert on errors.
scrub → read all → verify → repair
Context & applicabilityCommon mistakes · platform/version boundaries
- Never scrubbing, so errors are found only during a rebuild.
- Scrubbing during peak hours.
- Ignoring checksum errors reported by scrubs (
zpool statusCKSUM column). - RAID controllers with patrol read disabled.
Operational reference
Fast context before you go deeper.
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.
- Scrubs read everything and repair from redundancy.
- Run them regularly, for example monthly.
- Scrubs add I/O load.
zpool status <pool> | grep scan— last scrubbtrfs scrub status <mount>— last scrubecho check > /sys/block/md0/md/sync_action— md check
ReferenceHow it works1 section · depth on demand
Scheduling scrubs
| System | Default / typical schedule |
|---|---|
| ZFS | Monthly (zfs-scrub-monthly@ timer or cron) |
| Linux md RAID | Monthly checkarray (Debian) / raid-check (RHEL) |
| Btrfs | Monthly btrfs-scrub@ timer |
| Ceph | Light scrub daily, deep scrub weekly per PG |
| Hardware RAID | Patrol 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.
| Platform | Command | Typical schedule |
|---|---|---|
| ZFS | zpool scrub tank | Monthly / biweekly |
| Btrfs | btrfs scrub start /mnt | Monthly |
| md RAID | echo check > /sys/block/md0/md/sync_action | Monthly (distro cron) |
| Hardware RAID | Patrol read / consistency check | Continuous / weekly |
| Ceph | Light scrub daily, deep scrub weekly | Automatic |
| Storage Spaces/ReFS | Data Integrity Scan task | Monthly |
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.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%