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 error - help please

Featured Replies

My server recently locked up during update of a few docker containers. I was able to save a diagnostic. It appears that my docker.img had some corruption. I've since deleted it, created a new one and added back all my containers. I also ran a BTRFS scrub on my cache drive and it came back clean. What is concerning is that disk 1 in my array which has BTRFS filesystem reported 1 corruption.

 

Nov 21 08:09:19 ur1 kernel: BTRFS warning (device dm-0): csum failed root 273 ino 9248 off 6311936 csum 0x1a753a94 expected csum 0x58a4bd31 mirror 1
Nov 21 08:09:19 ur1 kernel: BTRFS error (device dm-0): bdev /dev/mapper/md1 errs: wr 0, rd 0, flush 0, corrupt 1, gen 0

 

btrfs dev stats -c /mnt/disk1
[/dev/mapper/md1].write_io_errs    0
[/dev/mapper/md1].read_io_errs     0
[/dev/mapper/md1].flush_io_errs    0
[/dev/mapper/md1].corruption_errs  1
[/dev/mapper/md1].generation_errs  0

 

I'm currently running a BTRFS scrub on disk 1 to see if I will learn what file has issues. I can restore from a backup if necessary. I'm not sure if scrubbing will give me this information.

 

This experience has me questioning my choice to use BTRFS.

 

Advice would be greatly appreciated. Thanks.

ur1-diagnostics-20211122-0833.zip

  • Community Expert
5 minutes ago, aberg83 said:

I'm currently running a BTRFS scrub on disk 1 to see if I will learn what file has issues. I can restore from a backup if necessary. I'm not sure if scrubbing will give me this information

It should list the affect file in the syslog.

 

6 minutes ago, aberg83 said:

This experience has me questioning my choice to use BTRFS.

It's up to you, but that if it's data corruption it's not a btrfs problem, it's only detecting corruption, of course xfs won't have that issue since it won't detect any data corruption.

  • Author

Ok, I found the affected file. Deleted and restored from a backup. I assume the process now is to run a scrub and see if it comes back clean for disk 1? Not sure what caused the file corruption.

  • Community Expert
4 minutes ago, aberg83 said:

I assume the process now is to run a scrub and see if it comes back clean for disk 1?

I would wait some time and run another scrub, if more corruption is found there's likely an underlying hardware issue.

  • Author
2 minutes ago, JorgeB said:

I would wait some time and run another scrub, if more corruption is found there's likely an underlying hardware issue.

Thanks. I'll keep an eye on things. I have a scrub scheduled for Dec 1st. Does unraid send a notification for btrfs errors? I didn't get any with this recent error.

  • Author

Thanks. That's a good script to have running. Any other recommended scripts to schedule when using btrfs? I have scrubs scheduled already.

  • Community Expert
22 minutes ago, aberg83 said:

Any other recommended scripts to schedule when using btrfs?

Not really, that one should detect any major issues.

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.

Guest
Reply to this topic...

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.