boxer74 Posted November 22, 2021 Share Posted November 22, 2021 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 Quote Link to comment
JorgeB Posted November 22, 2021 Share Posted November 22, 2021 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. Quote Link to comment
boxer74 Posted November 22, 2021 Author Share Posted November 22, 2021 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. Quote Link to comment
JorgeB Posted November 22, 2021 Share Posted November 22, 2021 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. Quote Link to comment
boxer74 Posted November 22, 2021 Author Share Posted November 22, 2021 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. Quote Link to comment
JorgeB Posted November 22, 2021 Share Posted November 22, 2021 5 minutes ago, aberg83 said: Does unraid send a notification for btrfs errors? No, you'd need to check the log or have this enable for all btrfs filesystems: https://forums.unraid.net/topic/46802-faq-for-unraid-v6/?do=findComment&comment=700582 Quote Link to comment
boxer74 Posted November 22, 2021 Author Share Posted November 22, 2021 Thanks. That's a good script to have running. Any other recommended scripts to schedule when using btrfs? I have scrubs scheduled already. Quote Link to comment
JorgeB Posted November 22, 2021 Share Posted November 22, 2021 22 minutes ago, aberg83 said: Any other recommended scripts to schedule when using btrfs? Not really, that one should detect any major issues. Quote Link to comment
Recommended Posts
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.