Page MenuHomeFreeBSD

zfs: fix RAIDZ2/3 not healing parity with 2+ bad disks
ClosedPublic

Authored by mm on Feb 15 2021, 8:02 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 16, 4:32 PM
Unknown Object (File)
Mar 19 2024, 4:10 AM
Unknown Object (File)
Mar 19 2024, 3:01 AM
Unknown Object (File)
Feb 3 2024, 8:03 PM
Unknown Object (File)
Dec 20 2023, 6:39 AM
Unknown Object (File)
Dec 12 2023, 1:03 PM
Unknown Object (File)
Nov 23 2023, 10:40 AM
Unknown Object (File)
Aug 28 2023, 5:23 AM
Subscribers

Details

Summary

From openzfs 62d4287f279a0d184f8f332475f27af58b7aa87e commit message:

When scrubbing, (non-sequential) resilvering, or correcting a checksum
error using RAIDZ parity, ZFS should heal any incorrect RAIDZ parity by
overwriting it. For example, if P disks are silently corrupted (P being
the number of failures tolerated; e.g. RAIDZ2 has P=2), zpool scrub
should detect and heal all the bad state on these disks, including
parity. This way if there is a subsequent failure we are fully
protected.

With RAIDZ2 or RAIDZ3, a block can have silent damage to a parity
sector, and also damage (silent or known) to a data sector. In this
case the parity should be healed but it is not.

Cherry-picked from openzfs-master 62d4287f2

MFC after: 3 days

Commit contains simple fix with test.
This fix is data-consistency related and a candidate for 13.0-RELEASE

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable