All of lore.kernel.org
 help / color / mirror / Atom feed
From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: auxsvr <auxsvr@gmail.com>, linux-btrfs@vger.kernel.org
Subject: Re: Write time tree block corruption detected
Date: Wed, 9 Jun 2021 09:05:18 +0800	[thread overview]
Message-ID: <b5596fac-26a1-5c5a-5653-62175073484a@gmx.com> (raw)
In-Reply-To: <b45698d3-b208-bcec-52b4-5c8e70804148@gmx.com>



On 2021/6/9 上午6:39, Qu Wenruo wrote:
>
>
> On 2021/6/8 下午10:45, auxsvr wrote:
>> On Monday, 7 June 2021 14:55:10 EEST you wrote:
>>> It seems that every time free space is less than 1 GiB and I use
>>> zypper, I get a similar corruption message.
>>
>> Correction: I just got:
>>
>> [26355.330817] BTRFS critical (device sda2): corrupt leaf: root=3
>> block=537007243264 slot=0 devid=1 invalid bytes used: have 64503152640
>> expect [0, 64424509440]
>
> The line itself should explain itself, we're over allocating the device.
>
>> [26355.330819] BTRFS error (device sda2): block=537007243264 write
>> time tree block corruption detected
>
> Mind to dump the device tree?
>
> You can dump it with the following command, and the output contains
> nothing confidential, but only device extent layout:
>
> # btrfs ins dump-tree -t dev /dev/sda2

Sorry, you may also need to dump the super block:

# btrfs ins dump-super /dev/sda2

One of my concern is, the device used bytes may differ between super
block and device tree.

Thanks,
Qu
>
>>
>> and:
>>
>> # btrfs fi df /
>> Data, single: total=55.98GiB, used=43.04GiB
>> System, single: total=32.00MiB, used=16.00KiB
>> Metadata, single: total=2.00GiB, used=1.17GiB
>> GlobalReserve, single: total=512.00MiB, used=0.00B
>>
>> # btrfs fi show /
>> Label: none  uuid: 44c67fa4-e2c4-4da5-9d07-98959ff77bc4
>>          Total devices 1 FS bytes used 44.22GiB
>>          devid    1 size 60.00GiB used 60.07GiB path /dev/sda2
>
> My current guess is, there is something wrong in the past, leaving the
> accounting wrong.
>
> It leaves some ghost used bytes, thus causing the problem.
>
> Your previous btrfs-check is able to detect that, but unfortunately we
> don't have the ability to repair it in btrfs-check right now.
>
> I'll work on repair ability soon, thus if you can keep the fs, there is
> a high chance to repair it.
>
> Thanks,
> Qu
>
>>
>> 60.07GiB used again!
>>
>> Regards,
>> Petros
>>
>>
>>
>>

  reply	other threads:[~2021-06-09  1:05 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-30 21:30 Write time tree block corruption detected auxsvr
2021-06-07 11:55 ` auxsvr
2021-06-08 14:45   ` auxsvr
2021-06-08 22:39     ` Qu Wenruo
2021-06-09  1:05       ` Qu Wenruo [this message]
2021-06-09  8:04         ` auxsvr
2021-06-09  8:32           ` Qu Wenruo
2021-06-11 19:44             ` auxsvr
  -- strict thread matches above, loose matches on Subject: below --
2020-08-12 13:49 Spencer Collyer
2020-08-12 14:15 ` Qu Wenruo
2020-08-13  5:53   ` Spencer Collyer
2020-08-13  5:58     ` Qu Wenruo
2020-01-17  8:21 write " Kenneth Topp
2020-01-17  8:33 ` Qu Wenruo
2020-01-17  8:48   ` Kenneth Topp
2020-01-17 10:09     ` 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=b5596fac-26a1-5c5a-5653-62175073484a@gmx.com \
    --to=quwenruo.btrfs@gmx.com \
    --cc=auxsvr@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.