From: Hugo Mills <hugo@carfax.org.uk>
To: Marc MERLIN <marc@merlins.org>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: ERROR: error during balancing '.' - No space left on device
Date: Sun, 23 Mar 2014 11:47:12 +0000 [thread overview]
Message-ID: <20140323114712.GC25400@carfax.org.uk> (raw)
In-Reply-To: <20140323070144.GG12833@merlins.org>
[-- Attachment #1: Type: text/plain, Size: 2063 bytes --]
On Sun, Mar 23, 2014 at 12:01:44AM -0700, Marc MERLIN wrote:
> legolas:/mnt/btrfs_pool2# btrfs balance .
> ERROR: error during balancing '.' - No space left on device
> There may be more info in syslog - try dmesg | tail
> [ 8454.159635] BTRFS info (device dm-1): relocating block group 288329039872 flags 1
> [ 8590.167294] BTRFS info (device dm-1): relocating block group 232494465024 flags 1
> [ 9200.801177] BTRFS info (device dm-1): relocating block group 85928706048 flags 1
> [ 9533.830623] BTRFS info (device dm-1): 824 enospc errors during balance
>
> But:
> legolas:/mnt/btrfs_pool2# btrfs fi show `pwd`
> Label: btrfs_pool2 uuid: 6afd4707-876c-46d6-9de2-21c4085b7bed
> Total devices 1 FS bytes used 646.41GiB
> devid 1 size 820.45GiB used 820.45GiB path /dev/mapper/disk2
> Btrfs v3.12
> legolas:/mnt/btrfs_pool2#
> Data, single: total=800.42GiB, used=636.91GiB
> System, DUP: total=8.00MiB, used=92.00KiB
> System, single: total=4.00MiB, used=0.00
> Metadata, DUP: total=10.00GiB, used=9.50GiB
^^^ This is where you're full. There's a block reserve here that
(should be) usable for doing a balance, and it seems to be about 500
MiB or so that's the point at which problems show up.
> Metadata, single: total=8.00MiB, used=0.00
>
> I can't see how I'm full, and now that I can't run balance to fix
> things, this is making things worse.
I think you probably shouldn't be doing a full balance, but a
filtered one:
# btrfs balance start -dusage=5 /mnt/btrfs_pool
which should only try to clean up chunks which have little usage (so
it's much faster to run).
> Kernel is 3.14.
>
> What am I missing?
Not much. We do seem to have a problem with not being able to run
balance in recent kernels under some circumstances -- you're not the
only person who's reported this kind of problem lately.
Hugo.
--
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
PGP key: 65E74AC0 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
--- Don't worry, he's not drunk. He's like that all the time. ---
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 811 bytes --]
next prev parent reply other threads:[~2014-03-23 11:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-23 7:01 ERROR: error during balancing '.' - No space left on device Marc MERLIN
2014-03-23 11:47 ` Hugo Mills [this message]
2014-03-23 16:20 ` Marc MERLIN
2014-03-23 16:28 ` Hugo Mills
2014-03-23 17:03 ` Marc MERLIN
2014-03-23 17:34 ` Hugo Mills
2014-03-23 19:10 ` Marc MERLIN
2014-03-23 21:20 ` Marc MERLIN
2014-03-23 12:26 ` Duncan
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=20140323114712.GC25400@carfax.org.uk \
--to=hugo@carfax.org.uk \
--cc=linux-btrfs@vger.kernel.org \
--cc=marc@merlins.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