From: Archange <archange@archlinux.org>
To: Qu Wenruo <quwenruo.btrfs@gmx.com>, linux-btrfs@vger.kernel.org
Subject: Re: Critical error from Tree-checker
Date: Thu, 12 Sep 2024 02:05:17 +0400 [thread overview]
Message-ID: <b44f33ba-3230-476c-ba3e-cb47e1b9233a@archlinux.org> (raw)
In-Reply-To: <e81fe89a-52bc-4629-a27b-c69d64c9fbec@gmx.com>
Le 12/09/2024 à 01:23, Qu Wenruo a écrit :
>
>
> 在 2024/9/12 06:50, Archange 写道:
>> Le 12/09/2024 à 00:54, Qu Wenruo a écrit :
>>> 在 2024/9/12 05:25, Archange 写道:
>>>> Le 11/09/2024 à 01:37, Qu Wenruo a écrit :
>>>>> 在 2024/9/11 06:58, Qu Wenruo 写道:
>>>>>> 在 2024/9/11 06:35, Archange 写道:
>>>>>> […]
>>> […]
>>>
>>> That being said no critical error has been encountered since I’ve
>>> had to
>>> repair my boot, but I’ve not tried to scrub from the running system
>>> again, should I do that (as it used to trigger the error before)?
>
> Please do a `btrfs check` to make sure everything is fine.
While the previous one (see my second message in this thread) had no
error, there is now one:
# btrfs check /dev/mapper/rootext
Opening filesystem to check...
Checking filesystem on /dev/mapper/rootext
UUID: e6614f01-6f56-4776-8b0a-c260089c35e7
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space cache
wanted bytes 688128, found 720896 for off 676326604800
cache appears valid but isn't 676326604800
[4/7] checking fs roots
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups skipped (not enabled on this FS)
found 478434086912 bytes used, error(s) found
total csum bytes: 465136176
total tree bytes: 1590493184
total fs tree bytes: 870760448
total extent tree bytes: 138231808
btree space waste bytes: 326062620
file data blocks allocated: 516090466304
referenced 492383629312
> For the bad free space cache, I'd recommend to go v2 space cache instead.
Since the above error seems related to space cache, and that I had
switching to v2 on my todo list for a long time, I’ve just did so.
dmesg mount messages right after (nothing unexpected I guess, outside
the warning and “corrupt 4” still present):
[ 812.242212] BTRFS: device label root devid 1 transid 6065207
/dev/mapper/rootext (254:1) scanned by mount (2145)
[ 812.243727] BTRFS info (device dm-1): first mount of filesystem
e6614f01-6f56-4776-8b0a-c260089c35e7
[ 812.243770] BTRFS info (device dm-1): using crc32c (crc32c-intel)
checksum algorithm
[ 812.243788] BTRFS info (device dm-1): using free-space-tree
[ 812.256356] BTRFS warning (device dm-1): devid 1 physical 0 len
4194304 inside the reserved space
[ 812.258504] BTRFS info (device dm-1): bdev /dev/mapper/rootext errs:
wr 0, rd 0, flush 0, corrupt 4, gen 0
[ 812.810623] BTRFS info (device dm-1): creating free space tree
[ 819.778945] BTRFS info (device dm-1): setting compat-ro feature flag
for FREE_SPACE_TREE (0x1)
[ 819.778949] BTRFS info (device dm-1): setting compat-ro feature flag
for FREE_SPACE_TREE_VALID (0x2)
[ 819.877973] BTRFS info (device dm-1): cleaning free space cache v1
[ 819.885829] BTRFS info (device dm-1): checking UUID tree
[ 866.299565] BTRFS info (device dm-1): last unmount of filesystem
e6614f01-6f56-4776-8b0a-c260089c35e7
I’ve run check again after that:
# btrfs check /dev/mapper/rootext
Opening filesystem to check...
Checking filesystem on /dev/mapper/rootext
UUID: e6614f01-6f56-4776-8b0a-c260089c35e7
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space tree
there is no free space entry for 0-65536
cache appears valid but isn't 0
[4/7] checking fs roots
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups skipped (not enabled on this FS)
found 478312665088 bytes used, error(s) found
total csum bytes: 465136176
total tree bytes: 1593524224
total fs tree bytes: 870760448
total extent tree bytes: 138231808
btree space waste bytes: 326060271
file data blocks allocated: 515966013440
referenced 492259176448
So there is still an error, but different this time.
next prev parent reply other threads:[~2024-09-11 22:05 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-10 21:05 Critical error from Tree-checker Archange
2024-09-10 21:28 ` Qu Wenruo
2024-09-10 21:37 ` Qu Wenruo
2024-09-11 19:55 ` Archange
2024-09-11 20:54 ` Qu Wenruo
2024-09-11 21:20 ` Archange
2024-09-11 21:23 ` Qu Wenruo
2024-09-11 21:42 ` Qu Wenruo
2024-09-11 22:06 ` Archange
2024-09-11 22:05 ` Archange [this message]
2024-09-11 22:34 ` Qu Wenruo
2024-09-12 8:21 ` Archange
2024-09-12 8:25 ` Qu Wenruo
2024-09-12 9:57 ` Archange
2024-09-12 10:01 ` Qu Wenruo
2024-09-12 10:04 ` Archange
2024-09-12 10:23 ` Qu Wenruo
2024-09-12 12:13 ` Archange
2024-09-12 21:42 ` Qu Wenruo
2024-09-13 5:25 ` Archange
2024-09-13 5:29 ` Qu Wenruo
2024-09-13 5:54 ` Archange
2024-09-13 6:12 ` Archange
2024-09-13 6:41 ` Qu Wenruo
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=b44f33ba-3230-476c-ba3e-cb47e1b9233a@archlinux.org \
--to=archange@archlinux.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=quwenruo.btrfs@gmx.com \
/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