* [linux-lvm] Status of LVM snapshot merging
@ 2010-05-13 15:52 Richard Shaw
2010-05-13 17:02 ` Mike Snitzer
2010-05-13 17:10 ` Alasdair G Kergon
0 siblings, 2 replies; 4+ messages in thread
From: Richard Shaw @ 2010-05-13 15:52 UTC (permalink / raw)
To: linux-lvm
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.
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.
Thanks,
Richard
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] Status of LVM snapshot merging
2010-05-13 15:52 [linux-lvm] Status of LVM snapshot merging Richard Shaw
@ 2010-05-13 17:02 ` Mike Snitzer
2010-05-13 17:44 ` Richard Shaw
2010-05-13 17:10 ` Alasdair G Kergon
1 sibling, 1 reply; 4+ messages in thread
From: Mike Snitzer @ 2010-05-13 17:02 UTC (permalink / raw)
To: LVM general discussion and development
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] Status of LVM snapshot merging
2010-05-13 15:52 [linux-lvm] Status of LVM snapshot merging Richard Shaw
2010-05-13 17:02 ` Mike Snitzer
@ 2010-05-13 17:10 ` Alasdair G Kergon
1 sibling, 0 replies; 4+ messages in thread
From: Alasdair G Kergon @ 2010-05-13 17:10 UTC (permalink / raw)
To: Richard Shaw; +Cc: linux-lvm
On Thu, May 13, 2010 at 10:52:50AM -0500, Richard Shaw wrote:
> There does not seem to be much information available on the status of
> LVM snapshot merging available.
It's in the upstream trees and already appearing in distros.
Alasdair
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] Status of LVM snapshot merging
2010-05-13 17:02 ` Mike Snitzer
@ 2010-05-13 17:44 ` Richard Shaw
0 siblings, 0 replies; 4+ messages in thread
From: Richard Shaw @ 2010-05-13 17:44 UTC (permalink / raw)
To: LVM general discussion and development
On Thu, May 13, 2010 at 12:02 PM, Mike Snitzer <snitzer@redhat.com> wrote:
> 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.
I only did google searching so I didn't get to the source level...
> 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.
That explains it for me. I'm running Fedora 12 so my current
kernel/lvm versions are 2.6.32 and 2.02.53 respectively. It looks like
Fedora 13 will have the required versions, but I actually would like
the merge option in order to upgrade to F13 beta with the ability to
roll back.
>> 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.
Thanks for the info! I may get brave and try to install the F13 kernel
and lvm2 package and see if I can get away with it. I will have to
update udev as well, right?
Thanks,
Richard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-05-13 17:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-13 15:52 [linux-lvm] Status of LVM snapshot merging Richard Shaw
2010-05-13 17:02 ` Mike Snitzer
2010-05-13 17:44 ` Richard Shaw
2010-05-13 17:10 ` Alasdair G Kergon
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).