From: Phillip Susi <psusi@cfl.rr.com>
To: Arand Nash <ienorand@gmail.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Snapshot rollback
Date: Tue, 25 Oct 2011 21:30:58 -0400 [thread overview]
Message-ID: <4EA762D2.2020605@cfl.rr.com> (raw)
In-Reply-To: <4EA6193B.30104@gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 10/24/2011 10:04 PM, Arand Nash wrote:
> Btrfs is unfortunately unable to look for snapshots by name above the
> currently set default root (I do not know why exectly), it can however
> find them by id anywhere.
Ok, so looking up subvols by name uses the default subvol to resolve the
name, and so when I change the default subvol to the snapshot of @,
there is no @home name there pointing to the subvol? Things make much
more sense knowing that. I thought that the subvolumes had their own
namespace outside of any one subvolume.
Is there a way to create another name entry in @snap that points to
@home, or can you only have the original @home entry in the default subvol?
> To backup
> ~# mount /dev/sda1 /mnt
> ~# ls /mnt
> @ @home
> ~@ btrfs sub snap /mnt/@ /mnt/@rootsnap
> ~# ls /mnt
> @ @home @rootsnap
>
> And to rollback:
> ~# mv /mnt/@ /mnt/@rootmessy
> ~# mv /mnt/@rootsnap /mnt/@
> And just reboot, since it just mounts whatever is named "@/".
Perfect... I think I'll keep the default subvol mounted under /.subvols
to make managing them easy.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk6nYtIACgkQJ4UciIs+XuJ/CQCgsbMLAY/h9opq/T7qBJKKrSz2
v0cAnRq8PKp1jx9r4Q6X4J6Ixjv3KpeS
=GSCn
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2011-10-26 1:30 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-23 19:42 Snapshot rollback Phillip Susi
2011-10-23 20:35 ` Goffredo Baroncelli
2011-10-24 5:45 ` dima
2011-10-24 5:58 ` Fajar A. Nugraha
2011-10-24 8:24 ` dima
2011-10-24 12:11 ` Fajar A. Nugraha
2011-10-25 2:00 ` dima
2011-10-25 8:01 ` Fajar A. Nugraha
2011-10-25 8:54 ` dima
2011-10-25 9:01 ` Fajar A. Nugraha
2011-10-25 0:45 ` Phillip Susi
2011-10-25 2:04 ` Arand Nash
2011-10-26 1:30 ` Phillip Susi [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-07-05 10:38 snapshot rollback Ulli Horlacher
2019-07-05 11:06 ` Ulli Horlacher
2019-07-05 11:47 ` Remi Gauvin
2019-07-05 13:03 ` Graham Cobb
2019-07-05 21:18 ` Chris Murphy
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=4EA762D2.2020605@cfl.rr.com \
--to=psusi@cfl.rr.com \
--cc=ienorand@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
/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.