From: Hugo Mills <hugo@carfax.org.uk>
To: Marc MERLIN <marc@merlins.org>
Cc: linux-btrfs@vger.kernel.org, Duncan <1i5t5.duncan@cox.net>
Subject: Re: ERROR: error during balancing '.' - No space left on device
Date: Sun, 23 Mar 2014 16:28:25 +0000 [thread overview]
Message-ID: <20140323162825.GF25400@carfax.org.uk> (raw)
In-Reply-To: <20140323162000.GK12833@merlins.org>
[-- Attachment #1: Type: text/plain, Size: 3060 bytes --]
On Sun, Mar 23, 2014 at 09:20:00AM -0700, Marc MERLIN wrote:
> Both
> legolas:/mnt/btrfs_pool2# btrfs balance start -v -dusage=5 /mnt/btrfs_pool2
> legolas:/mnt/btrfs_pool2# btrfs balance start -v -dusage=0 /mnt/btrfs_pool2
> failed unfortunately.
>
> On Sun, Mar 23, 2014 at 12:26:32PM +0000, Duncan wrote:
> > When it rains, it pours. What you're missing is that this is now the
> > third thread in three days with exactly the same out-of-space-when-there-
> > appears-to-be-plenty problem, which is well explained and a solution
> > presented, along with further discussion, on those threads.
> >
> > Evidently you haven't read the others, but rather than rewrite a similar
> > reply here with exactly the same explanation and fix, I'll just refer you
> > to them.
>
> Thanks. Indeed, while I spent most of yesterday dealing with 3 btrfs
> filesystems, the one here that was hanging my laptop, the raid5 one that
> was hanging repeatedly during balance, and then my main server were one
> FS is so slow that it takes 8H to do an reflink copy or delete a backup
> with 1 million inodes, I got behind on reading the list :)
>
> Thanks for the pointers
>
> > btrfs balance start -dusage=5 `pwd`
> >
> > Tweak the N in usage=N as needed.
>
> I had actually tried this, but it failed too:
> legolas:/mnt/btrfs_pool2# btrfs balance start -v -dusage=5 /mnt/btrfs_pool2
> Dumping filters: flags 0x1, state 0x0, force is off
> DATA (flags 0x2): balancing, usage=5
> ERROR: error during balancing '/mnt/btrfs_pool2' - No space left on device
>
> But I now just found
> https://btrfs.wiki.kernel.org/index.php/Balance_Filters
> and tried -dusage=0
>
> On Sun, Mar 23, 2014 at 11:47:12AM +0000, Hugo Mills wrote:
> > 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).
>
> Thanks for the other answer Hugo.
>
> So, now I'm down to
> legolas:/mnt/btrfs_pool2# btrfs balance start -v -dusage=0 /mnt/btrfs_pool2
> Dumping filters: flags 0x1, state 0x0, force is off
> DATA (flags 0x2): balancing, usage=0
> ERROR: error during balancing '/mnt/btrfs_pool2' - No space left on device
>
> Looks like there is no good way out of this, so I'll start deleting
> snapshots.
Before you do this, can you take a btrfs-image of your metadata,
and add a report to bugzilla.kernel.org? You're not the only person
who's had this problem recently, and I suspect there's something
still lurking in there that needs attention.
> Hopefully this will be handled better in later code.
With the info you can provide from a btrfs-image... let's hope so. :)
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
--- Anyone using a computer to generate random numbers is, of ---
course, in a state of sin.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 811 bytes --]
next prev parent reply other threads:[~2014-03-23 16:28 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
2014-03-23 16:20 ` Marc MERLIN
2014-03-23 16:28 ` Hugo Mills [this message]
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=20140323162825.GF25400@carfax.org.uk \
--to=hugo@carfax.org.uk \
--cc=1i5t5.duncan@cox.net \
--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