From: Goffredo Baroncelli <kreijack@gmail.com>
To: Michael Kofler <michael@kofler.info>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: make snapshot main volume, delete all others?
Date: Tue, 3 Aug 2010 20:46:34 +0200 [thread overview]
Message-ID: <201008032046.34521.kreijack@libero.it> (raw)
In-Reply-To: <4C585E6E.3060704@kofler.info>
Hi Michael
This theme was discussed several times in the past.
Short answer: now it is not possible, what you are asking.
Long answer: rearranging the layout of the filesystem, it is easy to do what
are you asking with the current tools. But this changes have to be integrated
in the distribution, and I don't know any distribution that did so. This is my
preferred solution (and the only available today)
Another solution require the additional of other API to permit to move the
root of a btrfs filesystem (with all the subvolumes) from a subvolume/snapshot
to another one.
For additional info see these posts:
http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg03484.html
http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg05334.html
http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg04968.html
Regard
G.Baroncelli
On Tuesday, 03 August, 2010, Michael Kofler wrote:
> Fedora provides yum-fs-snapshot. If installed, on each package
> installation or update a snapshot of all btrfs filesystems is taken, so
> it is possible to revert the installation/update.
>
> Suppose an update failed and I want to get back: with
>
> # btrfs subvolume set-default yum-snapshot-whatever /
>
> I define which snapshot to use at the next boot.
>
> After rebooting I decide I really want to stay with this snapshot. I can
> delete all other snapshots, but can I also delete my previous main
> volume, thus defining the current default snapshot as my new base. (If
> not, a growing part of the filesystem is wasted for old data I don't
> need anymore.)
>
> Any insight is appreciated!
>
> Michael Kofler
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreijack@inwind.it>
Key fingerprint = 4769 7E51 5293 D36C 814E C054 BF04 F161 3DC5 0512
prev parent reply other threads:[~2010-08-03 18:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-03 18:22 make snapshot main volume, delete all others? Michael Kofler
2010-08-03 18:46 ` Goffredo Baroncelli [this message]
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=201008032046.34521.kreijack@libero.it \
--to=kreijack@gmail.com \
--cc=kreijack@libero.it \
--cc=linux-btrfs@vger.kernel.org \
--cc=michael@kofler.info \
/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).