BTRFS checksum error - help please


boxer74

Recommended Posts

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

Link to comment
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.

Link to comment
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.

Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.