linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hugo Mills <hugo@carfax.org.uk>
To: Henk Slager <eye1tm@gmail.com>
Cc: Simon King <simon.king@uni-koeln.de>,
	linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: How to delete this snapshot, and how to succeed with balancing?
Date: Sat, 31 Oct 2015 22:51:51 +0000	[thread overview]
Message-ID: <20151031225151.GH21103@carfax.org.uk> (raw)
In-Reply-To: <CAPmG0jYNmTvuKnbRfYcViCQFnghL5LYnj_KyCOCLqVynseY2BA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1697 bytes --]

On Sat, Oct 31, 2015 at 11:45:15PM +0100, Henk Slager wrote:
> Hi Simon,
> 
> >>> linux-va3e:~ # btrfs balance start -dlimit=2 /
> >>> ERROR: error during balancing '/' - No space left on device
> >>> There may be more info in syslog - try dmesg | tail
> >>
> >>    And this is with a filesystem that's not fully allocated?
> >> (i.e. btrfs fi show indicates that used and total are different for
> >> each device). If that's the case, then you may have hit a known but
> >> unfixed bug to do with space allocation.
> >
> > linux-va3e:~ # btrfs fi show
> > Label: none  uuid: 656dc65f-240b-4137-a490-0175717dd7fa
> >         Total devices 1 FS bytes used 13.71GiB
> >         devid    1 size 20.00GiB used 16.88GiB path /dev/sda2
> >
> > btrfs-progs v4.0+20150429
> >
> > Is there a manual work-around?

   Not that we've found in the last year or so of poking at it, I'm
afraid.

> For 'No space left on device', a trick I once saw is to run:
> 
> btrfs balance start -dusage=0 -musage=0 /
> 
> Under certain circumstances (i don't remember which kernel, tools
> versions etc), this enables you to create files again on the
> filesystem.

   That's basically what Simon's been doing (although a little more
aggressively). It's not going to help here.

> Looking at the   btrfs fi df /  output, I don't see a real need for
> balancing, the numbers can be much different and then balance might be
> usefull.

   If you're hitting ENOSPC with unallocated space, then that's a
bug. In fact, it's a known bug that hasn't been fixed yet.

   Hugo.

-- 
Hugo Mills             | That's not rain, that's a lake with slots in it.
hugo@... carfax.org.uk |
http://carfax.org.uk/  |
PGP: E2AB1DE4          |

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2015-10-31 22:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-31 15:26 How to delete this snapshot, and how to succeed with balancing? Simon King
2015-10-31 16:41 ` Hugo Mills
2015-10-31 17:31   ` Simon King
2015-10-31 18:33     ` Hugo Mills
2015-10-31 20:56       ` Simon King
2015-10-31 22:45         ` Henk Slager
2015-10-31 22:51           ` Hugo Mills [this message]
2015-11-01  3:05     ` 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=20151031225151.GH21103@carfax.org.uk \
    --to=hugo@carfax.org.uk \
    --cc=eye1tm@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=simon.king@uni-koeln.de \
    /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).