linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Austin S. Hemmelgarn" <ahferroin7@gmail.com>
To: MegaBrutal <megabrutal@gmail.com>
Cc: Henk Slager <eye1tm@gmail.com>,
	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: Tue, 9 Aug 2016 07:16:03 -0400	[thread overview]
Message-ID: <fbfac514-924e-215e-a81f-c0a39d69db77@gmail.com> (raw)
In-Reply-To: <CAE8gLh=N9dP0aj+oHxGosaTNG45rvQpx=U_Mx1KT0a6MWN2o=w@mail.gmail.com>

On 2016-08-09 05:50, MegaBrutal wrote:
> 2016-06-03 14:43 GMT+02:00 Austin S. Hemmelgarn <ahferroin7@gmail.com>:
>>
>> 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.
>>
>
> Hi all,
>
> Sorry for reviving this old thread, and probably it's not the best
> place to ask about this... but I added the "noatime" option in fstab,
> restarted the system, and now I think I should try "lazytime" too (as
> I like the idea to have proper atimes with delayed writing to disk).
> So now I'd just like to test the "lazytime" mount option without
> restart.
>
> I remounted the file system like this:
>
> mount -o remount,lazytime /
>
> But now the FS still has the "noatime" mount option, which I guess
> renders "lazytime" ineffective. I thought they are supposed to be
> mutually exclusive, so I'm actually surprised that I can have both
> mount options at the same time.
No, lazytime also affects mtime handling, not just atime, so they aren't 
mutually exclusive, and it does make sense to have both.
>
> Now my mount looks like this:
>
> /dev/mapper/centrevg-rootlv on / type btrfs
> (rw,noatime,lazytime,space_cache,subvolid=257,subvol=/@)
>
> I also tried to explicitly add "atime" to negate "noatime" (man mount
> says "atime" is the option to disable "noatime"), like this:
>
> mount -o remount,atime,lazytime /
>
> But the "noatime" option still stays. Why? Is it a BTRFS specific
> issue, or does it reside in another layer?
>
> By the way, is it valid to mount BTRFS subvolumes with different atime
> policies? Then how do child subvolumes behave?
I'm not entirely certain (I have my kernel patched so noatime is the 
default, and rarely if ever use anything else, so I don't have much in 
the way of experience with this), but my guess would be that it can't be 
done, and that changing atime handling on remount isn't really handled. 
I do know that adding lazytime on remount doesn't always work, but that 
kind of makes sense, since it causes significant changes in how mtimes 
and atimes are handled internally.


  reply	other threads:[~2016-08-09 11:16 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
2016-08-09  9:50             ` MegaBrutal
2016-08-09 11:16               ` Austin S. Hemmelgarn [this message]
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=fbfac514-924e-215e-a81f-c0a39d69db77@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).