linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Austin S. Hemmelgarn" <ahferroin7@gmail.com>
To: Henk Slager <eye1tm@gmail.com>, MegaBrutal <megabrutal@gmail.com>
Cc: Peter Becker <floyd.net@gmail.com>,
	linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: "No space left on device" and balance doesn't work
Date: Fri, 3 Jun 2016 08:43:14 -0400	[thread overview]
Message-ID: <0b6a094b-ccf0-36c4-aafb-12a4e9cd424d@gmail.com> (raw)
In-Reply-To: <CAPmG0jZj6S6TXe0xLdiJWMto=VX7NM7WhSc5T3MLf=HWvsR7+Q@mail.gmail.com>

On 2016-06-02 18:45, Henk Slager wrote:
> On Thu, Jun 2, 2016 at 3:55 PM, MegaBrutal <megabrutal@gmail.com> wrote:
>> 2016-06-02 0:22 GMT+02:00 Henk Slager <eye1tm@gmail.com>:
>>> What is the kernel version used?
>>> Is the fs on a mechanical disk or SSD?
>>> What are the mount options?
>>> How old is the fs?
>>
>> Linux 4.4.0-22-generic (Ubuntu 16.04).
>> Mechanical disks in LVM.
>> Mount: /dev/mapper/centrevg-rootlv on / type btrfs
>> (rw,relatime,space_cache,subvolid=257,subvol=/@)
>> I don't know how to retrieve the exact FS age, but it was created in
>> 2014 August.
>>
>> Snapshots (their names encode their creation dates):
>>
>> ID 908 gen 487349 top level 5 path @-snapshot-20160503000001
> ...<snip>
>> ID 937 gen 521829 top level 5 path @-snapshot-20160602000001
>>
>> Removing old snapshots is the most feasible solution, but I can also
>> increase the FS size. It's easy since it's in LVM, and there is plenty
>> of space in the volume group.
>>
>> Probably I should rewrite my alert script to check btrfs fi show
>> instead of plain df.
>
> Yes I think that makes sense, to decide on chunk-level. You can see
> how big the chunks are with the linked show_usage.py program, most of
> 33 should be 1GiB as already very well explained by Austin.
>
> The setup looks all pretty normal and btrfs should be able to handle
> it, but unfortunately your fs is a typical example that one currently
> needs to monitor/tune a btrfs fs for its 'health' in order to keep it
> running longterm. You might want to change mount option relatime to
> noatime, so that you have less writes to metadata chunks. It should
> lower the scattering inside the metadata chunks.
Also, since you're on a new enough kernel, try 'lazytime' in the mount 
options as well, this defers all on-disk timestamp updates for up to 24 
hours or until the inode gets written out anyway, but keeps the updated 
info in memory.  The only downside to this is that mtimes might not be 
correct after an unclean shutdown, but most software will have no issues 
with this.


  parent reply	other threads:[~2016-06-03 12:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-01 18:30 "No space left on device" and balance doesn't work MegaBrutal
2016-06-01 20:30 ` Peter Becker
     [not found] ` <CAEtw4r2hsCd1+bFNcXn_s5jj-8x6qer+x0gLx8wTgNi1=nAXhw@mail.gmail.com>
2016-06-01 21:06   ` MegaBrutal
2016-06-01 22:22     ` Henk Slager
2016-06-02 13:55       ` MegaBrutal
2016-06-02 22:45         ` Henk Slager
2016-06-03  5:51           ` Marc Haber
2016-06-03 12:43           ` Austin S. Hemmelgarn [this message]
2016-08-09  9:50             ` MegaBrutal
2016-08-09 11:16               ` Austin S. Hemmelgarn
2016-08-09 12:56                 ` Noah Massey
2016-06-02 12:56 ` Austin S. Hemmelgarn
2016-06-04  6:27   ` Andrei Borzenkov
2016-06-04  7:57     ` 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=0b6a094b-ccf0-36c4-aafb-12a4e9cd424d@gmail.com \
    --to=ahferroin7@gmail.com \
    --cc=eye1tm@gmail.com \
    --cc=floyd.net@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=megabrutal@gmail.com \
    /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).