Re: BTRFS-errors on a 20TB filesystem

Paul-Erik Törrönen
2020-07-07T18:43:14Z

Sorry for the delay :-/

On 7/7/20 1:58 AM, Qu Wenruo wrote:
> Although still needs some extra dmesg context for the following bytenr:
> - 2627928588288
> I see no obvious problem around slot 10

$ dmesg | grep 2627928588288
[ 595.081488] BTRFS critical (device sdc1): corrupt leaf: root=5
block=2627928588288 slot=10 ino=11274213 file_offset=454656, extent end
overflow, have file offset 454656 extent num bytes 18446744073709457408
[ 595.081589] BTRFS error (device sdc1): block=2627928588288 read time
tree block corruption detected

This is repeated several times later on. The only thing preceeding this is:

[ 243.295071] BTRFS info (device sdc1): disk space caching is enabled
[ 243.295075] BTRFS info (device sdc1): has skinny extents

> - 3154217795584

[ 602.597770] BTRFS critical (device sdc1): corrupt leaf: root=5
block=3154217795584 slot=102 ino=12990328 file_offset=184320, extent end
overflow, have file offset 184320 extent num bytes 18446744073709395968
[ 602.597869] BTRFS error (device sdc1): block=3154217795584 read time
tree block corruption detected

> - 3154257952768
> Mentioned slot doesn't exist at all, not sure what happened there

[ 603.161394] BTRFS critical (device sdc1): corrupt leaf: root=5
block=3154257952768 slot=59 ino=13467676 file_offset=262144, extent end
overflow, have file offset 262144 extent num bytes 18446744073709527040
[ 603.168062] BTRFS error (device sdc1): block=3154257952768 read time
tree block corruption detected

> - 3154259034112
> The offending slot seems fine

[ 603.316595] BTRFS critical (device sdc1): corrupt leaf: root=5
block=3154259034112 slot=27 ino=14013491 file_offset=102400, extent end
overflow, have file offset 102400 extent num bytes 18446744073709514752
[ 603.323174] BTRFS error (device sdc1): block=3154259034112 read time
tree block corruption detected

> - 3154291228672
> I guess the problem is hash mismatch, but can't confirm.

[ 602.779540] BTRFS critical (device sdc1): corrupt leaf: root=5
block=3154291228672 slot=9 ino=13286681 file_offset=204800, extent end
overflow, have file offset 204800 extent num bytes 18446744073709481984
[ 602.786103] BTRFS error (device sdc1): block=3154291228672 read time
tree block corruption detected

Does this help any?

Poltsi