All of lore.kernel.org
 help / color / mirror / Atom feed
From: James West <james@terminalsystems.com>
To: Chris Murphy <lists@colorremedies.com>,
	Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: Possibility to have a "transient" snapshot?
Date: Wed, 10 Dec 2014 13:52:53 -0600	[thread overview]
Message-ID: <5488A495.9070404@terminalsystems.com> (raw)
In-Reply-To: <CAJCQCtTy9SRj1pX4wdQ83hDKf3JU4RfJ9wWTU=+JYbsYd-xiRw@mail.gmail.com>

I was just looking into using overlayfs, and although it has some 
promise, I think it's biggest drawback is the upperdir will have to be 
some sort of storage backed filesystem. From my limited understanding of 
tmpfs, it's not supposed to be the greatest with many large files (and 
my system in particular would be downloading many large movies/videos, 
and doing any kind of os update to test it would involve many changes 
all over the volume, which could be problematic to commit to a golden 
state.)

I could partition the main drive in 2 parts, and dynamically zero-out 
then create the volume in the second partition on each boot, but I'm 
still saving no drive writes, and not really extending the life of the 
hardware (which is one of my premises.)

On 05/12/2014 11:12 PM, Chris Murphy wrote:
> On Fri, Dec 5, 2014 at 11:27 AM, James West <james@terminalsystems.com> wrote:
>
>> General idea would be to have a transient snapshot (optional quota support
>> possibility here) on top of a base snapshot (possibly readonly). On system
>> start/restart (whether clean or dirty), the transient snapshot would be
>> flushed, and the system would restart the snapshot, basically restarting
>> from the base snapshot.
> Sounds similar to this idea:
> http://0pointer.net/blog/revisiting-how-we-put-together-linux-systems.html
>
> About 1/3 of the way down it gets to a proposal to Btrfs as a way to
> get to a stateless system, which is basically what you want to be able
> to rollback to. A variation on this that might serve the use case
> better is seed device. You can either drop the added device that
> stores changes to the seed device, or the volume (seed+added device)
> can become another seed if you want to make the current state
> persistent at next boot.
>
> And still another possibility is overlayfs, which isn't Btrfs specific.
>
>
>


  reply	other threads:[~2014-12-10 19:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-05 18:27 Possibility to have a "transient" snapshot? James West
2014-12-05 23:19 ` Duncan
2014-12-06  5:12 ` Chris Murphy
2014-12-10 19:52   ` James West [this message]
2014-12-11  0:58     ` Robert White

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=5488A495.9070404@terminalsystems.com \
    --to=james@terminalsystems.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=lists@colorremedies.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.