Re: read time tree block corruption detected

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 2020/2/13 上午8:26, Qu Wenruo wrote:
> 
> 
> On 2020/2/13 上午5:58, Samir Benmendil wrote:
>> Hello,
>>
>> I've been getting the following "BTRFS errors" for a while now, the wiki
>> [0] advises to report such occurrences to this list.
> 
> Please provide the following dump:
> 
> # btrfs ins dump-tree -b 194756837376 /dev/sda2
> # btrfs ins dump-tree -b 194347958272 /dev/sda2
> 
> Thanks,
> Qu
>>
>> BTRFS critical (device sda2): corrupt leaf: root=466 block=194756837376
>> slot=72 ino=1359622 file_offset=475136, extent end overflow, have file
>> offset 475136 extent num bytes 18446744073709486080

	item 72 key (1359622 EXTENT_DATA 475136) itemoff 11140 itemsize 53
		generation 954719 type 1 (regular)
		extent data disk byte 0 nr 0
		extent data offset 0 nr 18446744073709486080 ram 18446744073709486080
		extent compression 0 (none)

Also obvious underflow.

>> BTRFS critical (device sda2): corrupt leaf: root=466 block=194347958272
>> slot=131 ino=1357455 file_offset=1044480, extent end overflow, have file
>> offset 1044480 extent num bytes 18446744073708908544

	item 131 key (1357455 EXTENT_DATA 1044480) itemoff 6497 itemsize 53
		generation 952602 type 1 (regular)
		extent data disk byte 0 nr 0
		extent data offset 0 nr 18446744073708908544 ram 18446744073708908544
		extent compression 0 (none)

As you can see, 18446744073708908544 = -653072, which means it overflows.

Both look like a bug in older kernels.

Since currently btrfsprogs can't detect nor fix it yet, the only way is
to delete the offending files.

You can use the inode number 1357455, and root id 466 to locate the
offending files, and delete it using older kernels.
(root id is your subvolume id, which is shown in `btrfs subv list`.
 inode number can be passed to `find` command using `-inum` option)

The btrfs-progs fix will come soon.

Thanks,
Qu

>> BTRFS error (device sda2): block=194347958272 read time tree block
>> corruption detected
>>
>> I can reproduce these errors consistently by running `updatedb`, I
>> suppose some tree block in one of the file it reads is corrupted.
>>
>> Thanks in advance for your help,
>> Regards,
>> Samir
>>
>> [0]
>> https://btrfs.wiki.kernel.org/index.php/Tree-checker#How_to_handle_such_error
>>
> 

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux