January 4Jan 4 HI all, Happy New Year! I see this message under the disks tab pool: disk2 state: ONLINEstatus: One or more devices has experienced an error resulting in data corruption. Applications may be affected.action: Restore the file in question if possible. Otherwise restore the entire pool from backup. see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-8Aconfig: NAME STATE READ WRITE CKSUM disk2 ONLINE 0 0 0 md2p1 ONLINE 0 0 28errors: 35 data errors, use '-v' for a listI did a -v and checked the files it says are damaged - the files work fine. There is a button saying SCRUB - what does it do? What should I do at this point? Thank you Daytona
January 5Jan 5 Community Expert Solution This is a very common ZFS situation, and the wording of the message is scarier than what’s usually going on....From your output:state: ONLINE status: One or more devices has experienced an error resulting in data corruption. ... md2p1 ONLINE 0 0 28 errors: 35 data errors Key facts:The pool is ONLINEThere are no read or write errorsThere are checksum (CKSUM) errorsZFS detected 35 blocks whose checksums did not matchZFS cannot silently fix them because this is a single-disk poolThis is detection, not failure — and ZFS is doing exactly what it is supposed to do.Why the files “work fine”ZFS errors are block-level, not file-level.That means:A corrupted block might be:unused paddingmetadata that isn’t currently readpart of a compressed block that still decompressespart of a file that hasn’t been touched yetMany apps do not notice minor corruption immediatelyZFS never guesses — if a checksum mismatches, it records it permanentlySo “the file opens” ≠ “the data is correct”.ZFS is more strict than most filesystems — that’s a feature.What the SCRUB button does (important)A scrub:Reads every block in the poolVerifies every checksumIf redundancy exists (mirror / RAID-Z):Automatically repairs bad blocksIf redundancy does NOT exist (single disk):Confirms and logs corruptionCannot repairA scrub does not:delete datarewrite filesfix corruption without redundancyThink of scrub as a full audit, not a repair tool.What you should do — step by step*Run a scrub (yes, press the button)Or from CLI:zpool scrub disk2 Check progress:zpool status disk2 This confirms:whether the error count increaseswhether corruption is stable or ongoingAs you may have a bad disk inteh zfs setup that needs replaced...List exactly which files ZFS thinks are badYou already ran -v, but for completeness:zpool status -v disk2 You’ll see paths like:/mnt/disk2/some/path/file.ext If the same files reappear after scrub → confirmed corruption.If the files are non-criticalIf you don’t care about those files:rm /mnt/disk2/path/to/file zpool clear disk2 Then scrub again.This often resolves the warning permanently.If the files matterZFS cannot repair without redundancy.Your options are:Restore the affected files from backupRe-copy them from a known good sourceIf unsure → delete and re-ingestAfter replacement:zpool clear disk2 zpool scrub disk2 What zpool clear actually doeszpool clear disk2 This:clears the error countersdoes not erase historydoes not hide future errorsis safe to run after addressing the causeIf corruption still exists, it will reappear.Important diagnostic checks (do these)*SMART check (very important)smartctl -a /dev/sdX Look for:Reallocated sectorsPending sectorsCRC errorsRead errorsChecksum errors often come from:marginal sectorsbad SATA cablespower instabilityRAM errors (ECC strongly recommended)see openzfs docs:https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-8A/more info on the scrub:https://openzfs.github.io/openzfs-docs/man/v2.4/8/zpool-scrub.8.htmlBottom lineSCRUB = full integrity scanSingle-disk ZFS cannot repair, only detect“Files work” does not mean “no corruption”ZFS is behaving correctlyThis is not panic-level unless errors growPotential bad disk needs replacement
January 5Jan 5 Community Expert ultimately this tells me that you set a zfs in the unriad array where zfs should be added to unraid as pool devices.as you don't have parity, zfs nor a good setup fo zfs implementations on unraid...
January 5Jan 5 Community Expert Good idea to run memtest, since that's the #1 reason for data corruption.
January 5Jan 5 Author Thanks folks Appreciate all the help. Shall run memtest as well. I had the old XFS file system and converted to ZFS one disk at a time. Had no idea I should have done some other stuff. Can someone please point me to the best practice when using ZFS? I have a 2 parity drive UNRAID Version 6.12.4 2023-08-31 with 13 data drives.
January 6Jan 6 Community Expert 9 hours ago, daytona235 said:Can someone please point me to the best practice when using ZFS?Nothing extra typically needs to be done; you can scrub the disks to confirm all is good, but that should only be needed if there are sync errors after doing a parity check.
January 6Jan 6 Community Expert so this is wrong.if all theses 12 disks (2 parity) ... each disk made there own zfs zpool with 1 disk. you lose all the zfs benefits such as rad z mirroring, raidz 1 (equivalent to raid 5 miror and parity stripe)parity done't fuction as it should when the disk is lost.usualy you would pare mutiple disk togetr in a zpool 3 disk min to make a raidz1 which strip[es for speed and mirors for redundacny/protection. you can lose 1 disk and still maintain all your data.or do a raidz2 same strip and mirror, but cand lose 2 disk and keep all your data. (min of 5 disks)see the zfs docs:https://docs.unraid.net/unraid-os/advanced-configurations/optimize-storage/zfs-storage/and a few youtube videos:https://www.youtube.com/watch?v=XQC6lXOXGT4https://www.youtube.com/watch?v=UR5RCItyCswand forum post:
January 6Jan 6 Community Expert I highly recommend fixing your storage by pulling 3 disk of equivalent size and making a zfs raidz1 reformatting them to make a zfs pool the hybrid approach ( the setup your currently using)*The hybrid ZFS-in-array approach is helpful for specific backup or replication scenarios but is not a replacement for a full ZFS pool. ZFS disks in the array are managed individually; you do not get the combined performance, redundancy, or self-healing of a true multi-disk ZFS pool. For full ZFS functionality, always use dedicated ZFS pools.https://unraid.net/blog/zfs-guide?srsltid=AfmBOor7XJrR8tcD76hGK2pYvWyDKAUcGg1gvI3YkL3jsHH2N01zatXq Edited January 6Jan 6 by bmartino1
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.