* csum errors on negative root id?
@ 2020-12-16 19:28 Ross Vandegrift
2020-12-17 1:38 ` Qu Wenruo
0 siblings, 1 reply; 2+ messages in thread
From: Ross Vandegrift @ 2020-12-16 19:28 UTC (permalink / raw)
To: linux-btrfs
Hello,
I recently saw these in my dmesg, on 4.19.160:
BTRFS warning (device dm-20): csum failed root -9 ino 1303 off 0 csum 0x47abffd5 expected csum 0xd5f0d335 mirror 1
BTRFS warning (device dm-20): csum failed root -9 ino 1303 off 0 csum 0x47abffd5 expected csum 0xd5f0d335 mirror 1
I'm confused by a few things here:
- does the negative root id mean something, or is this a bug?
- inode 1303 doesn't seem to exist.
- This is a standalone drive, is this about a dup metadata block?
Details on the fs:
$ sudo btrfs fi show /mnt/storage
Label: none uuid: 6a2038fb-a9b4-4720-a441-c084610e4295
Total devices 1 FS bytes used 4.66TiB
devid 1 size 7.28TiB used 5.72TiB path /dev/mapper/storage
$ sudo btrfs fi df /mnt/storage
Data, single: total=4.68TiB, used=4.66TiB
System, DUP: total=32.00MiB, used=768.00KiB
Metadata, DUP: total=536.45GiB, used=4.95GiB
GlobalReserve, single: total=512.00MiB, used=0.00B
$ sudo btrfs inspect-internal subvolid-resolve -- -9 /mnt/storage
ERROR: -9: negative value is invalid.
$ sudo btrfs inspect-internal inode-resolve 1303 /mnt/storage
ERROR: ino paths ioctl: No such file or directory
Please keep me CCed, thanks!
Ross
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: csum errors on negative root id?
2020-12-16 19:28 csum errors on negative root id? Ross Vandegrift
@ 2020-12-17 1:38 ` Qu Wenruo
0 siblings, 0 replies; 2+ messages in thread
From: Qu Wenruo @ 2020-12-17 1:38 UTC (permalink / raw)
To: Ross Vandegrift, linux-btrfs
On 2020/12/17 上午3:28, Ross Vandegrift wrote:
> Hello,
>
> I recently saw these in my dmesg, on 4.19.160:
> BTRFS warning (device dm-20): csum failed root -9 ino 1303 off 0 csum 0x47abffd5 expected csum 0xd5f0d335 mirror 1
> BTRFS warning (device dm-20): csum failed root -9 ino 1303 off 0 csum 0x47abffd5 expected csum 0xd5f0d335 mirror 1
>
> I'm confused by a few things here:
> - does the negative root id mean something, or is this a bug?
-9 means data reloc tree. It's not a bug.
> - inode 1303 doesn't seem to exist.
The inode is in data reloc tree, which is not visible for users.
But this means you have a lot of uncleaned inodes in data reloc tree.
> - This is a standalone drive, is this about a dup metadata block?
Nope, just some data didn't match its csum.
Btrfs scrub should also report such csum mismatch.
But scrub would report the file path so that you can remove the
offending file and then continue balance.
Thanks,
Qu
>
> Details on the fs:
> $ sudo btrfs fi show /mnt/storage
> Label: none uuid: 6a2038fb-a9b4-4720-a441-c084610e4295
> Total devices 1 FS bytes used 4.66TiB
> devid 1 size 7.28TiB used 5.72TiB path /dev/mapper/storage
>
> $ sudo btrfs fi df /mnt/storage
> Data, single: total=4.68TiB, used=4.66TiB
> System, DUP: total=32.00MiB, used=768.00KiB
> Metadata, DUP: total=536.45GiB, used=4.95GiB
> GlobalReserve, single: total=512.00MiB, used=0.00B
> $ sudo btrfs inspect-internal subvolid-resolve -- -9 /mnt/storage
> ERROR: -9: negative value is invalid.
> $ sudo btrfs inspect-internal inode-resolve 1303 /mnt/storage
> ERROR: ino paths ioctl: No such file or directory
>
> Please keep me CCed, thanks!
>
> Ross
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-17 1:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-16 19:28 csum errors on negative root id? Ross Vandegrift
2020-12-17 1:38 ` Qu Wenruo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox