ZFS, Actually Storage you can finally reason about.

Scrubs

concept
depth 1/3 − deeper + surface
A disk just died 4/4 ← prev next →

The word sounds like cleaning—you scrub a thing to fix it up. Actually, a scrub is a read-through: ZFS reads every piece of data the pool holds and checks every fingerprint ("a normal scrub examines all data in the specified pools and verifies each block's checksum"—zpool-scrub(8)). Why force that? Because ZFS checks data whenever it's read anyway—but the files nobody has opened in three years never get read. Data can quietly go bad while sitting untouched, and a scrub visits it while a spare copy still exists to fix it with.

The fixing itself only happens where a spare copy lives: "for replicated (mirror, raidz, or draid) devices, ZFS automatically repairs any damage discovered." Scrub a setup with no spare copies and ZFS hands you a list of what went bad—named files, even—and can heal none of it.