From: Josef Bacik <jbacik@fb.com>
To: Marcus Sundman <sundman@iki.fi>, <linux-btrfs@vger.kernel.org>
Cc: Jim Salter <jim@jrs-s.net>, Hugo Mills <hugo@carfax.org.uk>
Subject: Re: No space left on device (again)
Date: Wed, 26 Feb 2014 20:17:11 -0500 [thread overview]
Message-ID: <530E9217.4060701@fb.com> (raw)
In-Reply-To: <530E83C7.5080101@iki.fi>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 02/26/2014 07:16 PM, Marcus Sundman wrote:
> On 25.02.2014 22:30, Josef Bacik wrote:
>> On 02/25/2014 03:27 PM, Marcus Sundman wrote:
>>> On 25.02.2014 22:19, Hugo Mills wrote:
>>>> On Tue, Feb 25, 2014 at 01:05:51PM -0500, Jim Salter wrote:
>>>>> 370GB of 410GB used isn't really "fine", it's over 90%
>>>>> usage.
>>>>>
>>>>> That said, I'd be interested to know why btrfs fi show
>>>>> /dev/sda3 shows 412.54G used, but btrfs fi df /home shows
>>>>> 379G used...
>>>> This is an FAQ...
>>>>
>>>> btrfs fi show tells you how much is allocated out of the
>>>> available pool on each disk. btrfs fi df then shows how much
>>>> of that allocated space (in each category) is used.
>>> What is the difference between the "used 371.11GB" and the
>>> "used 412.54GB" displayed by "btrfs fi show"?
>>>
>>>> The problem here is also in the FAQ: the metadata is close
>>>> to full -- typically something like 500-750 MiB of headroom
>>>> is needed in metadata. The FS can't allocate more metadata
>>>> because it's allocated everything already (total=used in
>>>> btrfs fi show), so the solution is to do a filtered balance:
>>>>
>>>> btrfs balance start -dusage=5 /mountpoint
>>> Of course that was the first thing I tried, and it didn't help
>>> *at* *all*:
>>>
>> The -dusage=<number> is a means to an end, so if that doesn't
>> work try a larger number, up to 100. Really once you pass 50 and
>> it's not working then it's time to just do a balance. The next
>> thing is to use compression (too late for this option really) or
>> add another disk.
>
> So it relocates some chunks. What will that do? Does it mean I can
> now use the remaining 45 GB? Or will it run out of "disk space"
> again after using a gig or two? If it's the allocated metadata
> space that is the problem then how can I pre-allocate more of it so
> it won't run out of it?
>
>
It will allocate more as it sees fit, there is a metadata_ratio=N
option which lets you force it to allocate a metadata chunk for every
N data chunk allocations, but that shouldn't be needed in this case.
What does btrfs fi df and btrfs show look like now? Thanks,
Josef
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBAgAGBQJTDpIMAAoJEANb+wAKly3BfKUQAK/WzvL/SENlUhruUoL7ADid
tM6ivq2BZOwmlw+CzOIzjrwv9gwRe+UAfjKjGstueLoVY+lHNYaCC5OI94OOWDPo
SyLJdJhcA3FYYBlyz7EC6gG4fNFyJg6egshoyMmWJuny5ivfnltdQhLLz2IQIHek
Ud9ElN+SMvCeQmGZxdKg5yc2oIgBdc5xGfegtfuCqFkdhu+BZTbcXFsOD4Pjnsg0
Mtw8H5YBeXcFBV34I8F6l+O3AGjDl8jF/cFuCEbRTJQFkvpKhoHMw+O2AWykDQqc
xw3H1YghGeY1fqN2geyYSYVGVOGxWeO2kju7Itom8Ph5AinMPMf8lpe97nChp2hr
D3T1QwhkmMD9T1O02hvF9C8E46q2iyjOrPxPU8z3LsRTKaNXNzJ+u1P2ac7kIQSk
x2stB9u0Qluut+5twzLQuefzoCNf/2RtAlL2cPXyq6ikLHBSNkebqbGBD2IpTsa7
5TsXNHWbIc0maDdXrJ0BYJ7obEaU/2nBCkSA3DaGBupTtC3vwSWAoAEw8/JtVeQr
ARXSIPblXZqwrGyJyvtNmC8zjDGAD93H/xr0+oCOzHqPIr7NvTT9vZKfENmblsfm
vx8wmgbSBzWp9W9YpUO5X0ZjLestPzOziIesCrMJ2yKBUEUtafiFdbT5D7e9dn8x
7Z2MZcYyk5H7QF65+IWt
=8iSO
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2014-02-27 1:18 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-25 16:49 No space left on device (again) Marcus Sundman
2014-02-25 18:05 ` Jim Salter
2014-02-25 19:59 ` Marcus Sundman
2014-02-25 20:19 ` Hugo Mills
2014-02-25 20:27 ` Marcus Sundman
2014-02-25 20:30 ` Josef Bacik
2014-02-26 10:38 ` Sander
2014-02-27 0:16 ` Marcus Sundman
2014-02-27 1:17 ` Josef Bacik [this message]
2014-02-27 7:48 ` Hugo Mills
2014-02-25 20:30 ` cwillu
2014-02-25 20:40 ` Hugo Mills
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=530E9217.4060701@fb.com \
--to=jbacik@fb.com \
--cc=hugo@carfax.org.uk \
--cc=jim@jrs-s.net \
--cc=linux-btrfs@vger.kernel.org \
--cc=sundman@iki.fi \
/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