Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

BTRFS checksum failure questions

Featured Replies

I got a BTRFS checksum failure on one of my array disks (btrfs dev stats shows "corrupt 1"). It's a single disk BTRFS filesystem. This is on the same HDD that randomly had a single UDMA CRC error count a couple months ago. Is it possible the corruption occured due to that UDMA CRC but was only reported now? It's in an old infrequently accessed file which is being seeded through torrent, so maybe it was never accessed till now. I'm currently running a scrub.

 

Does BTRFS only calc/report checksum errors on access? Trying to figure out if it's more than that random UDMA error (if so, I may need to replace the drive). SMART is healthy except for the UDMCA CRC error count = 1.

 

What I can't explain, however, is that the array has finished scheduled parity checks since that UDMCA error without errors/correction I believe.

 

[edit] btw I am running ECC RAM and no errors in bios log

Edited by harvany
addendum

  • Community Expert
3 hours ago, harvany said:

Is it possible the corruption occured due to that UDMA CRC but was only reported now?

Unlikely, after those errors transfer should be retried, but can't say impossible.

 

3 hours ago, harvany said:

Does BTRFS only calc/report checksum errors on access?

They are calculated when the block is written and checked every time it's read/accessed.

 

 

  • Author

Ran scrub on all my disks. The only errors were on this same disk: 5 corruption errors in total (across 3 files). Also, extended SMART on the disk came back clean (reallocated, pending, uncorrectable all 0).

 

The 3 files were all modified a year ago within hours of each other and inode numbers are just 10 apart or so. On the other hand, the single UDMA CRC error appeared 6 months ago, so even more likely to be unrelated per your comment.

 

Do you think this was non-hardware BTRFS corruption during writing or afterwards? Or some physical bitrot that didn't show up on SMART? Both would be pretty rare, but can't think of other explanations, especially given this a single disk BTRFS, no ECC errors in BIOS log, no SMART extended test errors.

 

[edit] actually physical bitrot should have resulted in a CRC error from the SMART test, so probably some random BTRFS software corruption

Edited by harvany

  • Community Expert
18 hours ago, harvany said:

Both would be pretty rare

They are, but never heard of unexplained btrfs data corruption, there were never any parity sync errors detected since those files were first written?

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.