Description
People,
I have been using Linux for decades but have only started switching my machines over to btrfs (from ext4) recently.
Yesterday I came across my first btrfs problem - I was looking at mail files in my "likely spam" folder on my Qmail (Indimail) server under ~/Maildir. I wanted to check out the mail Subjects and did something like:
grep "^subject: xxx" 1*
- and got a lot of IO errors on /dev/sda3 - after realising it was a fs prob and I wasn't doing something dumb, I shut down the server and moved the drive to my workstation.
I then did:
# btrfs check /dev/sdd3 > ./btrfs_check_dev_sdd3.txt 2>&1
# more ./btrfs_check_dev_sdd3.txt 2>&1
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space tree
[4/7] checking fs roots
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups skipped (not enabled on this FS)
Opening filesystem to check...
Checking filesystem on /dev/sdd3
UUID: 91c85b90-6ced-4fa0-a7c7-5772138492a1
found 2454332121088 bytes used, no error found
total csum bytes: 2384518992
total tree bytes: 12559958016
total fs tree bytes: 9222504448
total extent tree bytes: 823345152
btree space waste bytes: 1564723268
file data blocks allocated: 2442889678848
referenced 2867310043136
and so thought the problem might be with SATA controller on the server but then when I started doing other things, I started seeing these errors in /var/messages:
Nov 21 17:44:03 liph kernel: BTRFS warning (device sdd3): csum failed root 256 ino 148956179 off 0 csum 0x2ac15d26 expected csum 0x50af5f60 mirror 1
Nov 21 17:44:03 liph kernel: BTRFS error (device sdd3): bdev /dev/sdd3 errs: wr 0, rd 0, flush 0, corrupt 5467, gen 0
So now I am confused - the check says the FS is OK, but there is obviously a problem - because this is my first exposure to a btrfs problem, I am not if I should try and sort it out on the drive or move the mail serving stuff over to my workstation temporarily and look at the drive problem later . .
If someone suggest the most sensible thing to do that would be great - otherwise I might go the workstation route . .
Either way, it looks like I have a btrfs problem that needs fixing - which will be an interesting exercise!
Thanks!
Phil.
PS I am using my personal GMail account because my own mail server is down!