Thread (6 messages) 6 messages, 2 authors, 2021-11-23

Re: read time tree block corruption detected

From: Nikolay Borisov <hidden>
Date: 2021-11-23 05:56:31


On 23.11.21 г. 4:42, x8062 wrote:
At 2021-11-22 18:36:41, "Nikolay Borisov" [off-list ref] wrote:
quoted

On 22.11.21 г. 12:07, x8062 wrote:
quoted
At 2021-11-22 15:24:38, "Nikolay Borisov" [off-list ref] wrote:
quoted

On 22.11.21 г. 7:26, x8062 wrote:
quoted
Hello,
 I got periodic warns in my linux console. in dmesg it is the following pasted text.
At https://btrfs.wiki.kernel.org/index.php/Tree-checker I learned it may be a error, so i send the message. Hopefully it could help, Thanks in advance!

[  513.900852] BTRFS critical (device sdb3): corrupt leaf: root=381 block=71928348672 slot=74 ino=2394634 file_offset=0, invalid ram_bytes for uncompressed inline extent, have 393 expect 131465

You have faulty ram, since 393 has the 17th bit set to 0 whilst has it
set to 1. So your ram is clearly corrupting bits. I advise you run a
memtest tool and look for possibly changing the faulty ram module.
Thank you, can't believe the ram is not so stable.  I'll run a memtest later.
Actually according to the output this is a read-time corruption. THis
means the corrupted data has already been written to disk, likely by an
older kernel that didn't have the tree cherk code. So running a memcheck
is still useful to prevent future corruption.

As far as the corrupted files goes - well its data is corrupted. It can
technically be fixed, but you'd have to do it yourself. Or alternatively
go back on an older kernel i.e pre- 5.11 and try to copy that particular
file (inode 2394634).
quoted
I find some problems here.  I use the command "find . -inum 2394634" in the btrfs root dir,  but nothing printed.
does "root=381" means the subvolume ID=381? but now I don't have such subvolume. I deleted some of the
Yes root is the id of the subvolume, if you have deleted it then the
corrupted inode should also be gone.

subvolumes a few days ago. this is the current subvolume list(some of the dir name shortened)
sudo btrfs subvol list .
ID 263 gen 111732 top level 5 path 8007/a
ID 354 gen 111729 top level 5 path 8007/b
ID 622 gen 111757 top level 5 path f015
ID 1174 gen 111758 top level 5 path cc
ID 1326 gen 111757 top level 5 path 8007/c
ID 1781 gen 111740 top level 5 path ip
ID 1782 gen 111758 top level 5 path og
ID 1856 gen 111586 top level 1782 path og/OG/DB/server
ID 1858 gen 111757 top level 622 path V6/db
ID 1875 gen 111742 top level 5 path sdk
ID 1918 gen 111742 top level 5 path 8015
ID 1942 gen 111745 top level 5 path ip6
ID 2007 gen 111758 top level 5 path mnew
ID 2114 gen 111751 top level 5 path dd
ID 2116 gen 111760 top level 2117 path ds/trunk/20200616
ID 2117 gen 111758 top level 5 path ds
ID 2118 gen 111758 top level 2114 path dd/trunk/sourcecode
ID 2119 gen 111751 top level 2114 path dd/b/1103
ID 2120 gen 111761 top level 5 path tt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help