zpool question -- resilvering doesn't fully check on-disk data for corruption?

Andriy Gapon avg at FreeBSD.org
Wed Apr 15 06:28:06 UTC 2020


On 15/04/2020 09:03, Xin Li via freebsd-fs wrote:
> My understanding is that both resilver and scrub
> would read all data from a RAID-Z pool

Resilver differs from scrub in that it checks only blocks corresponding to
periods in dirty time log (DTL).  That is, if a disks becomes unavailable and
then comes back, a resilver will read only those blocks on other disks that are
necessary to write any missing blocks on the flaky disk.  If a disk gets
replaced then a resilver reads all blocks on remaining disks that are necessary
to re-create data on the replaced disk.
A scrub always reads all used blocks.

-- 
Andriy Gapon


More information about the freebsd-fs mailing list