Spyke
selfhosted·SelfhostedbyTheHolm

BUG: OpenZFS data corruption

Unless you are missed the news. Bug found in OpenZFS causing data corruption, FreeBSD, Linux and illumos are all affected.

Good description of the bug

Some good news from bug tracker on OpenZFS

OpenZFS 2.2.2 and 2.1.14 released with fix in place. If you don't get your OpenZFS direct from here, point your vendor at it.

Patch your systems!!

https://www.freebsd.org/security/advisories/FreeBSD-EN-23:16.openzfs.ascOpen linkView original on aussie.zone
feddit.de

For all Proxmox users it looks like the new ZFS kernel module with the patch is included in the opt-in kernel 6.5.11-6-pve for now.

The kernel 6.5 actually became the default in Proxmox 8.1, so a regular dist-upgrade should bring it in. Run "zpool --version" after rebooting and double check you get this:

zfs-2.2.0-pve4 zfs-kmod-2.2.0-pve4

As this versions are patched for bug.

26

The statement is very informative. The bug happens under increased read/write operations to the same file causing a race condition.

I also found interesting:

Despite the bug being present in OpenZFS for many years, this issue has not been found to impact any TrueNAS systems. The bug fix is scheduled to be included in OpenZFS 2.2.2 within the next week

8
lemmy.ca

It looks like due to the older coreutils Ubuntu 22.04 LTS is unlikely to be affected as much. So if you're on Ubuntu LTS and have not compiled it yourself, you might have dodged data corruption.

Would this corruption be caught by the checksumming?

No

9
Fermiversereply
feddit.de

This seems to affect ZFS >=2.2.0. Ubuntu 22.04 LTS is on ZFS 2.1.5

Nope!

OpenZFS through 2.1.13 and 2.2.x through 2.2.1 contain this bug.

This issue occurs less often in version 2.2.1, and in versions before 2.1.4, because of the default configuration in those versions.

From here

9
lemmy.ca

Weird. Reading the issue on GitHub I got the impression that it affects 2.2.0+.

Also I glanced something that the version of coreutils also contributes to the interaction.

E: Seems like Ubuntu LTS is unlikely to be affected a lot due to the older coreutils.

3
Fermiversereply
feddit.de

Jep, it seems like Damocles Sword was hanging above us the whole time (⊙_⊙)

1

At this point I think I'm just gonna wait for the patch to land in Ubuntu.

2

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer LettersMore Letters
LTSLong Term Support software version
RAIDRedundant Array of Independent Disks for mass storage
ZFSSolaris/Linux filesystem focusing on data integrity

3 acronyms in this thread; the most compressed thread commented on today has 13 acronyms.

[Thread #335 for this sub, first seen 4th Dec 2023, 15:25] [FAQ] [Full list] [Contact] [Source code]

3

But my filesystem has RAID and checksums and I use ECC memory, I don't need backups /s

3

You reached the end

BUG: OpenZFS data corruption | Spyke