linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robert Krig <robert.krig@render-wahnsinn.de>
To: linux-btrfs@vger.kernel.org
Subject: Re: filesystem corrupt - error -117
Date: Tue, 26 Oct 2021 13:18:38 +0200	[thread overview]
Message-ID: <3b6d89c4-f9da-5966-0c61-dcea5f17d87c@render-wahnsinn.de> (raw)
In-Reply-To: <654051a3-e069-a8bc-08a5-0fb5561144df@gmx.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 6567 bytes --]

If you are on Debian 10, you can enable backports and install both a 
kernel and btrfs-progs from backports. This would of course require a 
reboot. Apart from that, this shouldn't conflict with any other 
dependencies, unless you have something that explicitly relies on the 
installed kernel version.



On 26.10.21 09:24, Qu Wenruo wrote:
>
>
> On 2021/10/26 14:03, Mia wrote:
>> Hi Qu,
>>
>> thanks for clarification.
>> So I should just ignore these errors for now?
>
> Yes, none of them is going to cause any direct problems.
>
>> What about these ones, you haven't mentioned:
>> bad metadata [342605463552, 342605479936) crossing stripe boundary
>
> This is the same, it just means it crosses 64K boundary, which is not
> supported for the incoming subpage support (using 4K page size on 64K
> page size systems).
>
>>
>> Problem with updating is that this is currently still Debian 10 and a
>> production environment and I don't know when it is possible to upgrade
>> because of dependencies.
>
> OK, understood the situation now.
>
> Then I can't provide much helper as I'm not familiar with Debian...
>
> If not reproducible so far, I can only recommend for a memtest to rule
> out memory bitflip, which could also cause the bug.
>
> Thanks,
> Qu
>>
>> Regards
>> Mia
>>
>> ------ Originalnachricht ------
>> Von: "Qu Wenruo" <quwenruo.btrfs@gmx.com>
>> An: "Mia" <9speysdx24@kr33.de>; "Qu Wenruo" <wqu@suse.com>;
>> linux-btrfs@vger.kernel.org
>> Gesendet: 26.10.2021 00:45:18
>> Betreff: Re: filesystem corrupt - error -117
>>
>>>
>>>
>>> On 2021/10/26 01:09, Mia wrote:
>>>> Hi Qu,
>>>>
>>>> sorry for the late reply. I tried the btrfs check again with arch
>>>> live cd:
>>>>
>>>> root@archiso ~ # uname -a
>>>> Linux archiso 5.11.16-arch1-1 #1 SMP PREEMPT Wed, 21 Apr 2021 17:22:13
>>>> +0000 x86_64 GNU/Linux
>>>> root@archiso ~ # btrfs --version
>>>> btrfs-progs v5.14.2
>>>>
>>>> https://gist.github.com/lynara/12dcfff870260b6bc35b9d1137921fc4
>>>
>>> OK, so the metadata problem is really there, but it shouldn't affect
>>> your fs right now, unless you want to mount it with 64K page size.
>>>
>>> And for the new error (inline file extent too large), it may cause
>>> problems, but under most cases, kernel can handle it without problem.
>>>>
>>>> I'm still getting many errors.
>>>> Sorry I currently don't know what caused this. I suspect it might be
>>>> Seafile since I'm now having a currupted library there.
>>>>
>>>> Should I use --repair?
>>>
>>> No, --repair won't help in this case.
>>>
>>> In fact, your fs is fine, no on-disk metadata problem yet.
>>>
>>> For your case, I can only recommend to use newer kernel to have better
>>> sanity check.
>>> Meanwhile I would also recommend to run a memtest to ensure it's not
>>> some memory problem causing the bug.
>>>
>>> Thanks,
>>> Qu
>>>
>>>>
>>>> Regards
>>>> Mia
>>>>
>>>> ------ Originalnachricht ------
>>>> Von: "Qu Wenruo" <quwenruo.btrfs@gmx.com>
>>>> An: "Qu Wenruo" <wqu@suse.com>; "Mia" <9speysdx24@kr33.de>;
>>>> linux-btrfs@vger.kernel.org
>>>> Gesendet: 25.10.2021 13:18:54
>>>> Betreff: Re: filesystem corrupt - error -117
>>>>
>>>>>
>>>>>
>>>>> On 2021/10/25 19:14, Qu Wenruo wrote:
>>>>>>
>>>>>>
>>>>>> On 2021/10/25 19:13, Mia wrote:
>>>>>>> Hi Qu,
>>>>>>>
>>>>>>> thanks for your response.
>>>>>>> Here the output of btrfs check:
>>>>>>> https://gist.github.com/lynara/1c613f7ec9448600f643a59d22c1efb2
>>>>>>
>>>>>> Unfortunately it's not full, and it's using an old btrfs-progs
>>>>>> which can
>>>>>> cause false alert.
>>>>>
>>>>> My bad, gist is folding the output.
>>>>>
>>>>> It shows no corruption for the extent tree, thus I guess the
>>>>> transaction
>>>>> abort has prevented COW from being broken.
>>>>>
>>>>>>
>>>>>> Please use latest btrfs-progs v5.14.2 to re-check.
>>>>>
>>>>> In that case, a newer btrfs-progs is only going to remove the false
>>>>> alerts.
>>>>>
>>>>> Any clue on the workload causing the abort?
>>>>>
>>>>> For now, I can only recommend to use newer kernel (v5.10+ I 
>>>>> guess?) to
>>>>> see if you can reproduce the problem.
>>>>>
>>>>> Thanks,
>>>>> Qu
>>>>>
>>>>>>
>>>>>> Thanks,
>>>>>> Qu
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Mia
>>>>>>>
>>>>>>> ------ Originalnachricht ------
>>>>>>> Von: "Qu Wenruo" <quwenruo.btrfs@gmx.com>
>>>>>>> An: "Mia" <9speysdx24@kr33.de>; linux-btrfs@vger.kernel.org
>>>>>>> Gesendet: 25.10.2021 12:55:46
>>>>>>> Betreff: Re: filesystem corrupt - error -117
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On 2021/10/25 18:53, Qu Wenruo wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 2021/10/25 16:46, Mia wrote:
>>>>>>>>>> Hello,
>>>>>>>>>> I need support since my root filesystem just went readonly :(
>>>>>>>>>>
>>>>>>>>>> [641955.981560] BTRFS error (device sda3): tree block 
>>>>>>>>>> 342685007872
>>>>>>>>>> owner
>>>>>>>>>> 7 already locked by pid=8099, extent tree corruption detected
>>>>>>>>>
>>>>>>>>> This line explains itself.
>>>>>>>>>
>>>>>>>>> Your extent tree is no corrupted, thus it allocated a new tree
>>>>>>>>> block
>>>>>>>>
>>>>>>>> I missed the "w" for the word "now"...
>>>>>>>>
>>>>>>>>> which is in fact already hold by other tree.
>>>>>>>>>
>>>>>>>>> This means your metadata is no longer protected properly by COW.
>>>>>>>>>
>>>>>>>>> "btrfs check" is highly recommended to expose the root cause.
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> root@rx1 ~ # btrfs fi show
>>>>>>>>>> Label: none  uuid: 21306973-6bf3-4877-9543-633d472dcb46
>>>>>>>>>>      Total devices 1 FS bytes used 189.12GiB
>>>>>>>>>>      devid    1 size 319.00GiB used 199.08GiB path /dev/sda3
>>>>>>>>>>
>>>>>>>>>> root@rx1 ~ # btrfs fi df /
>>>>>>>>>> Data, single: total=194.89GiB, used=187.46GiB
>>>>>>>>>> System, single: total=32.00MiB, used=48.00KiB
>>>>>>>>>> Metadata, single: total=4.16GiB, used=1.65GiB
>>>>>>>>>> GlobalReserve, single: total=380.45MiB, used=0.00B
>>>>>>>>>>
>>>>>>>>>> root@rx1 ~ # btrfs --version
>>>>>>>>>> :(
>>>>>>>>>> btrfs-progs v4.20.1
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> root@rx1 ~ # uname -a
>>>>>>>>>> Linux rx1 4.19.0-17-amd64 #1 SMP Debian 4.19.194-3 (2021-07-18)
>>>>>>>>>> x86_64
>>>>>>>>>> GNU/Linux
>>>>>>>>>
>>>>>>>>> This is a little old for btrfs, but I don't think that's the 
>>>>>>>>> cause.
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Qu
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Hope someone can help.
>>>>>>>>>> Regrads
>>>>>>>>>> Mia
>>>>>>>>>>
>>>>>>>
>>>>>>
>>>>
>>

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 25205 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 203 bytes --]

  reply	other threads:[~2021-10-26 11:27 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <em969af203-04e6-4eff-a115-1129ae853867@frystation>
2021-10-25  8:46 ` filesystem corrupt - error -117 Mia
2021-10-25 10:53   ` Qu Wenruo
2021-10-25 10:55     ` Qu Wenruo
     [not found]     ` <69109d24-efa7-b9d1-e1df-c79b3989e7bf@rx2.rx-server.de>
2021-10-25 11:13       ` Mia
2021-10-25 11:14         ` Qu Wenruo
2021-10-25 11:18           ` Qu Wenruo
     [not found]           ` <884d76d1-5836-9a91-a39b-41c37441e020@rx2.rx-server.de>
2021-10-25 17:09             ` Mia
2021-10-25 22:45               ` Qu Wenruo
     [not found]               ` <3ce1dd17-b574-abe3-d6cc-eb16f00117cc@rx2.rx-server.de>
2021-10-26  6:03                 ` Mia
2021-10-26  7:24                   ` Qu Wenruo
2021-10-26 11:18                     ` Robert Krig [this message]
2021-10-26 14:12                   ` Patrik Lundquist
     [not found]                   ` <CAA7pwKOrgt6syr5C3X1+bC14QXZEJ+8HTMZruBBPBT574zNkkQ@rx2.rx-server.de>
2021-10-26 17:28                     ` Mia
2021-10-27  2:49                       ` Qu Wenruo
     [not found]                     ` <emb611c0ff-705d-4c01-b50f-320f962f39fb@frystation>
2021-12-11  8:20                       ` Mia
     [not found]                       ` <embddc7343-8fdf-4be8-87d8-644e20ea86c0@frystation>
2021-12-11  8:28                         ` Mia
2021-12-11  8:39                           ` Qu Wenruo
     [not found]                           ` <29fcb603-506f-d721-5214-2870ce2f8773@rx2.rx-server.de>
2021-12-11  9:10                             ` Mia
     [not found]                             ` <em7854e1bc-eb3d-43a3-abc7-c6ed3e1a167a@frystation>
2021-12-11  9:12                               ` Mia
2021-12-11  9:19                                 ` Qu Wenruo
     [not found]                                 ` <114dbcbb-c0ad-6ffd-f9ff-7aff031d03b5@rx2.rx-server.de>
2021-12-11  9:34                                   ` Mia

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=3b6d89c4-f9da-5966-0c61-dcea5f17d87c@render-wahnsinn.de \
    --to=robert.krig@render-wahnsinn.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).