All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ole Langbehn <neurolabs.de@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: Re: repeated enospc errors during balance on a filesystem with spare room - pls advise
Date: Wed, 1 Jan 2020 18:40:23 +0100	[thread overview]
Message-ID: <15a133b6-5569-2caa-e303-051f503acfe2@gmail.com> (raw)
In-Reply-To: <20191231225848.GI13306@hungrycats.org>


[-- Attachment #1.1: Type: text/plain, Size: 1555 bytes --]

Thanks for the insights (also in other responses).

On 31.12.19 23:58, Zygo Blaxell wrote:
> Two workarounds:
> 
> 	- use 5.3.18 instead of 5.4.6
> 
> 	- use the 'metadata_ratio=1' mount option after balancing a few
> 	data block groups

Switched back to 5.3.18. Since the space bug (at least the external/df
part) was solved for me before switching, I did not need to do anything
further. A full(100%) data balance succeeds successfully now.

> In your other mail you indicated you were running a full balance.  Full
> balances are never useful(*) and will make this specific situation worse.
> 
> A full balance includes a metadata balance.  The primary effect
> of metadata balance is to temporarily reduce space for metadata.
> Reducing metadata space causes an assortment of problems for btrfs,
> only one of which is hitting the 5.4 free space bug.  For all but a few
> contrived test cases, btrfs manages metadata well without interference
> from balance.  Too much metadata balancing (i.e. any at all) can make
> a filesystem truly run out of metadata space on disk--a condition that
> is sometimes difficult to reverse.

In my situation, my observation was that when I hit the space bug, I had
12GB meta reserved, 10.x used. The first balance lifted reserved space
up to 13GB and I have not seen the issue afterwards. So from practice/my
observations, it fixed the issue (also see Swamis response). I will take
into account your insights in the future, though, and try to not balance
metadata.

Cheers,

Ole


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

  parent reply	other threads:[~2020-01-01 17:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-31 15:04 repeated enospc errors during balance on a filesystem with spare room - pls advise Ole Langbehn
2019-12-31 15:10 ` Ole Langbehn
2019-12-31 22:58   ` Zygo Blaxell
2020-01-01 10:05     ` Swâmi Petaramesh
2020-01-01 23:38       ` Zygo Blaxell
2020-01-01 17:40     ` Ole Langbehn [this message]
2020-01-01  0:13 ` Qu Wenruo
2020-01-01  9:54   ` Cerem Cem ASLAN

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=15a133b6-5569-2caa-e303-051f503acfe2@gmail.com \
    --to=neurolabs.de@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.