HomeFreeBSD

Defer resilver only when progress is above a threshold

Description

Defer resilver only when progress is above a threshold

Restart a resilver from scratch, if the current one in progress is
below a new tunable, zfs_resilver_defer_percent (defaulting to 10%).

The original rationale for deferring additional resilvers, when there is
already one in progress, was to help achieving data redundancy sooner
for the data that gets scanned at the end of the resilver.

But in case the admin wants to attach multiple disks to a single vdev,
it wasn't immediately obvious the admin is supposed to run
zpool resilver afterwards to reset the deferred resilvers and start
a new one from scratch.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Pavel Snajdr <snajpa@snajpa.net>
Closes #15810

Details

Provenance
Pavel Snajdr <snajpa@snajpa.net>Authored on Oct 4 2024, 5:41 PM
GitHub <noreply@github.com>Committed on Oct 4 2024, 5:41 PM
Parents
rG3d0175d10e11: ZTS: Fix summary page creation
Branches
Unknown
Tags
Unknown