public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Johannes Rohr <jorohr@gmail.com>
To: Qu Wenruo <quwenruo.btrfs@gmx.com>, linux-btrfs@vger.kernel.org
Subject: Re: system hangs when running btrfs balance
Date: Tue, 11 Aug 2020 18:43:53 +0200	[thread overview]
Message-ID: <10ac3036-52cc-3963-d55e-b8352388e1f6@gmail.com> (raw)
In-Reply-To: <feffe90f-de6b-0f53-c54d-0df135c49868@gmail.com>

Dear Qu, dear all,

hat the fix also been backported to the 5.6 kernel series? If so, from
which version on?

Cheers,

Johannes


Am 10.08.20 um 22:23 schrieb Johannes Rohr:
> Thanks so much, Qu, for your advice and the background
>
> We had some issues with btrfs, but I definitely want to continue using
> it. So the incredible responsiveness of btrfs devs like you is
> definitely on the plus side..
>
> Apparently, Ubuntu is preparing a kernel update to v 5.4.54
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1889669 so our
> problem should be solved soon!
>
> Cheers,
>
> Johannes
>
>
> Am 10.08.20 um 11:59 schrieb Qu Wenruo:
>> On 2020/8/10 下午5:22, Johannes Rohr wrote:
>>> Dear devs,
>>>
>>> since I upgraded our system from Ubuntu 18.04 LTS to 20.04 LTS, the file
>>> system completely freezes when I run a btrfs balance on it. The only way
>>> to get a usable system for the time being is with the mount option
>>> "skip_balance".
>>>
>>> The server has a raid1 with 4 SSDs with 500 GB each. 
>>> [Sun Aug  9 12:21:35 2020] CPU: 1 PID: 4537 Comm: btrfs-balance Tainted: G           O      5.4.47 #1
>> A quick git log glance shows that, some reloc tree related fixes haven't
>> landed in v5.4.47.
>>
>> E.g. (commits are upstream commits, not stable tree commits)\
>>
>> 1dae7e0e58b484eaa43d530f211098fdeeb0f404 btrfs: reloc: clear
>> DEAD_RELOC_TREE bit for orphan roots to prevent runaway balance
>> 51415b6c1b117e223bc083e30af675cb5c5498f3 btrfs: reloc: fix reloc root
>> leak and NULL pointer dereference.
>>
>> And above fixes only landed in v5.4.54, so I guess you have to update
>> your kernel anyway.
>>
>>> There has been a related bug report at kernel.org for a year,
>>> https://bugzilla.kernel.org/show_bug.cgi?id=203405 and I have found
>>> similar reports here and there, some pertaining to quite old kernel
>>> versions, but we have only been hit with kernel 5.4. After this first
>>> occurred, I had no better luck though, with older kernels (4 something
>>> from Debian buster, also 4 something from Ubuntu 18.04).
>> Nope, the mentioned one is another bug, we had some clue on this, but
>> need some time to solve it.
>> (It's mostly related to some special timing in canceling, leading to
>> parted dropped trees).
>>
>>> Apart from fixing the underlying issue, would there be any wordaround
>>> for it?
>> Update your kernel to at least v5.4.54, then mount with skip_balance and
>> finally  "btrfs balance cancel <mnt>".
>> After that, doing whatever you like should be fine.
>>
>> I prefer to do a btrfs check on the unmounted or at least ro mounted fs
>> to ensure your fs is sane in the first place.
>>
>> Thanks,
>> Qu
>>
>>> Currently the balance for the fs is in suspended status. Since
>>> there is quite a few people who depend on this server, I can't just play
>>> around with it at random. That's why I am asking for advice here...
>>>
>>> Thanks so much for any suggestions you might have!
>>>
>>> Johannes
>>>
>

  reply	other threads:[~2020-08-11 16:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-10  9:22 system hangs when running btrfs balance Johannes Rohr
2020-08-10  9:59 ` Qu Wenruo
2020-08-10 20:23   ` Johannes Rohr
2020-08-11 16:43     ` Johannes Rohr [this message]
2020-08-11 21:30       ` Lukas Tribus

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=10ac3036-52cc-3963-d55e-b8352388e1f6@gmail.com \
    --to=jorohr@gmail.com \
    --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