Use it when configuring, checking or troubleshooting Scrub in ZFS.
Scrub
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.
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.
scrub → read all blocks → verify → repair
Context & applicabilityCommon mistakes · platform/version boundaries
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.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
- Scrub ≠ backup.
- Scrub ≠ resilver.
- Scrub complete with errors repaired ≠ application consistency proof.
- No scrub errors ≠ future device failure impossible.
zpool scrub <pool>— start scrubzpool status <pool> | grep scan— progress/resultsystemctl 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.
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 ZFS → Scrub. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://openzfs.github.io/openzfs-docs/ · confidence 94%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.
Quick lookup tables
ZFS → Scrub ZFS map
Fast topology, capacity, integrity and proof boundaries for ZFS → Scrub.
| ZFS boundary | What to verify | Proof limit |
|---|---|---|
| Identity / topology | Pool GUID/name, dataset/zvol, top-level vdev class, leaf-device identity and effective properties | Object presence alone does not prove integrity, performance or recovery |
| Capacity / protection | Pool free space, quotas/reservations, snapshot retention, redundancy and active scrub/resilver state | Free space or ONLINE state at one layer does not prove end-to-end health |
| Failure boundary | A 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 |
| Acceptance | Healthy 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 |