Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

Scrub

Direct answer

A scrub systematically traverses allocated pool blocks and validates them against ZFS checksums. It is distinct from normal foreground reads and from resilvering missing/out-of-date replicas after topology changes. Scrub duration and impact depend on pool size, allocation, workload and device performance.

When to use this

Use it when configuring, checking or troubleshooting Scrub in ZFS.

First 30 seconds

1. Scrub reads and verifies all data.

2. Monthly for most pools.

3. Repairs from redundancy.

4. Heavy I/O — schedule off-peak.

5. Check results and errors.

Operational verification

scrub → read all blocks → verify → repair

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Failure and recovery traps

A clean scrub shows allocated blocks read during that scan matched checksums or were successfully repaired, but it does not show application-level consistency, backup recoverability or blocks created afterward.

Suspicious evidence: scrub repeatedly finds errors, scan stalls, vdevs accumulate read/checksum faults, or a clean scrub is treated as a backup restore test.

Platform / version applicability
ZFS storage
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.

PlatformZFS storage
Scope / prerequisiteUse it when configuring, checking or troubleshooting Scrub in ZFS.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification path Verify boundary

pool allocation tree → systematic block read → checksum validation → alternate replica/parity if mismatch → repair/report → workload verification

Healthy evidence: scrub completes within expected window with zero unexplained permanent errors, redundancy stays intact, and workload remains within acceptable latency.

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
  • Scrub ≠ backup.
  • Scrub ≠ resilver.
  • Scrub complete with errors repaired ≠ application consistency proof.
  • No scrub errors ≠ future device failure impossible.
Key checks
  • zpool scrub <pool> — start scrub
  • zpool status <pool> | grep scan — progress/result
  • systemctl list-timers | grep -i scrub — scheduled scrubs
ReferenceImportant terms & boundaries2 sections · depth on demand

Topology

A clean scrub shows allocated blocks read during that scan matched checksums or were successfully repaired, but it does not show application-level consistency, backup recoverability or blocks created afterward.

In depth

A scrub reads every allocated block, verifies its checksum and repairs bad copies from redundancy. It catches latent errors before a disk failure makes them unrecoverable.

zpool scrub tank
zpool status tank          # progress, speed, errors repaired
zpool scrub -p tank        # pause; run again to resume

Typical schedule: monthly for enterprise disks, every two weeks for consumer drives (many distributions ship a systemd timer or cron job). Scrubs run at reduced priority but still add load; schedule them outside backup windows.

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 docZFS storage current

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

Basis: https://openzfs.github.io/openzfs-docs/ · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
zfs scrubscrubzpool scrub
Embedded reference data

Quick lookup tables

ZFS → Scrub ZFS map

Fast topology, capacity, integrity and proof boundaries for ZFS → Scrub.

ZFS boundaryWhat to verifyProof limit
Identity / topologyPool GUID/name, dataset/zvol, top-level vdev class, leaf-device identity and effective propertiesObject presence alone does not prove integrity, performance or recovery
Capacity / protectionPool free space, quotas/reservations, snapshot retention, redundancy and active scrub/resilver stateFree space or ONLINE state at one layer does not prove end-to-end health
Failure boundaryA clean scrub proves allocated blocks read during that scan matched checksums or were successfully repaired; it does not prove application-level consistency, backup recoverability or blocks created afterward.Correlate ZFS evidence with both workload and lower device/path evidence
AcceptanceHealthy evidence: scrub completes within expected window with zero unexplained permanent errors, redundancy stays intact, and workload remains within acceptable latency.Close only after original workload plus checksum/read-back/recovery verification succeeds
Confirmation

Confirm action

Continue?