From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: Ross Vandegrift <ross@kallisti.us>, linux-btrfs@vger.kernel.org
Subject: Re: csum errors on negative root id?
Date: Thu, 17 Dec 2020 09:38:34 +0800 [thread overview]
Message-ID: <d48ca767-02df-5d86-d6bf-c91054a786da@gmx.com> (raw)
In-Reply-To: <20201216192808.lodnlgbdxefayn2c@vanvanmojo.kallisti.us>
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
>
prev parent reply other threads:[~2020-12-17 1:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-16 19:28 csum errors on negative root id? Ross Vandegrift
2020-12-17 1:38 ` Qu Wenruo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d48ca767-02df-5d86-d6bf-c91054a786da@gmx.com \
--to=quwenruo.btrfs@gmx.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=ross@kallisti.us \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox