From: Mike Snitzer <snitzer@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Status of LVM snapshot merging
Date: Thu, 13 May 2010 13:02:54 -0400 [thread overview]
Message-ID: <20100513170253.GA16374@redhat.com> (raw)
In-Reply-To: <AANLkTik4sH2MlJ21brfAT5ZmNTcl6FUd7VzO4cnxwAxZ@mail.gmail.com>
On Thu, May 13 2010 at 11:52am -0400,
Richard Shaw <hobbes1069@gmail.com> wrote:
> There does not seem to be much information available on the status of
> LVM snapshot merging available. I looked at the patches available from
> the original author and both my kernel and LVM versions are newer than
> what he provides patches for.
I'm not sure where you're looking for status but both the upstream
linux-2.6 and LVM2 sources are quite public.
The snapshot-merge target support was included in Linux v2.6.33.
The corresponding LVM2 support was fully baked with v2.02.62, there were
also 2 fixes in v2.02.64.
> In lieu of the feature being available, does anyone know if it would
> be possible to use rsync to effectivly merge a snapshot volume with
> its origin volume?
>
> If so, my plan was to try an extensive upgrade of my system on the
> snapshot volume. If all goes well, I would then rsync the snapshot
> back to the origin, update my fstab, and remove the snapshot. If it
> does not go well, that's the easy part, just drop the snapshot and go
> back to the origin.
I'm not going to comment on using rsync as a poor-man's rollback
mechanism. The snapshot-merge support is widely available so I think
it'd be great if you gave it a try.
So rsync aside, the problem with your proposed approach is two-fold:
1) having your package manager install into the snapshot LV.
2) getting your system to boot off the snapshot LV.
These aren't insurmountable problems but they would need to be overcome
and things _could_ get dicey.
Generally the process is inverted: you make the changes to the system
(after having created a snapshot). If you don't like the changes you
use 'lvconvert --merge ...' to merge the snapshot back to origin on the
next reboot (reboot needed for the root LV). This gives you instant
rollback.
Regards,
Mike
next prev parent reply other threads:[~2010-05-13 17:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-13 15:52 [linux-lvm] Status of LVM snapshot merging Richard Shaw
2010-05-13 17:02 ` Mike Snitzer [this message]
2010-05-13 17:44 ` Richard Shaw
2010-05-13 17:10 ` Alasdair G Kergon
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=20100513170253.GA16374@redhat.com \
--to=snitzer@redhat.com \
--cc=linux-lvm@redhat.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).