linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* Re: [linux-lvm] Snapshot of a Snapshot
@ 2008-03-03  9:13 Karl Wagner
  2008-03-03  9:25 ` Tomasz Chmielewski
  2008-03-09 23:37 ` Lars Ellenberg
  0 siblings, 2 replies; 6+ messages in thread
From: Karl Wagner @ 2008-03-03  9:13 UTC (permalink / raw)
  To: linux-lvm

Not quite, although this would also be nice. Maybe I should explain my
current setup better.

Firstly, I have a Xen DomU machine running several Dom0's. As each Dom0
is very similar, I started off with a Base install, then created
snapshots to modify to create each Dom0. This had the advantage of
allowing me to set up a new Dom0 very easily, while taking less physical
disk space (and also the side effect that it runs quicker, think that's
something to do with the block device cache being used for the origin,
but I'm no expert so it may not...)

What I would like to be able to do is:
(a) be able to take a snapshot of one of these snapshots in order to
make backups, or have a bookmark in time if I am doing something I am
not sure of (in this instance a 'revert to snapshot' would be nice too)
(b) if I need to restore a backup, it would be nice to just be able to
dd the image I took as backup onto the snapshot device, without it
copying on every write, only copying the sectors (or chunks, whatever
the allocation unit for the snapshot COW device is) which are different.

These would also be useful for the SAN I am putting together.

Both of these I can do manually, the first by creating a snapshot using
device-mapper, the second by comparing the sector between the current
and the backup before writing. Snapshot of a snapshot done this way is
very useful but a pain to set up, although I have written a script to do
this for me. Restoration of a snapshot this way is painfully slow
(although if functionality of this sort either is not going to be
implemented or will take a long time I will recode it in C to
(hopefully) speed things up, currently I am using a hack together of
bash and perl scripts, just to get it done quickly).

Regards
Karl

Date: Fri, 29 Feb 2008 06:39:50 -0800
From: "Dan Kegel" <dank@kegel.com>
Subject: Re: [linux-lvm] Snapshot of a Snapshot
To: "LVM general discussion and development" <linux-lvm@redhat.com>
Message-ID:
	<a71bd89a0802290639t34ee72e7q4379df51e392b900@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Fri, Feb 29, 2008 at 3:27 AM, Karl Wagner <kwagner@zetex.com> wrote:
>  I was just wondering if there was a plan to add 'Snapshot of a
Snapshot'
>  functionality to LVM2? If so, is there any timescale on it?
>
>  This would be a very useful feature, especially in a Xen environment.
>
>  Also, is there an easy way to backup and restore a snapshot? My
scenario
>  is that I am running several Xen DomU's (Virtual machines, 4 of them
to
>  be precise) from snapshots of a base image. However, if one dies (eg
the
>  snapshot overflows, something which should not happen again but just
in
>  case...) and I recreate the snapshot and restore the backup image I
>  took, it fills the snapshot up.

It sounds like you could use a 'revert to snapshot' feature.
Is that right?
- Dan


_________________________________________________________

Zetex Semiconductors - Solutions for an analog world.

http://www.zetex.com
http://www.zetex.cn

E-MAILS are susceptible to interference.  You should not assume that
the contents originated from the sender or the Zetex Group or that they 
have been accurately reproduced from their original form.
Zetex accepts no responsibility for information, errors or omissions in
this e-mail nor for its use or misuse nor for any act committed or
omitted in connection with this communication.
If in doubt, please verify the authenticity with the sender.
_________________________________________________________

 

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [linux-lvm] Snapshot of a Snapshot
@ 2008-03-07 11:19 Karl Wagner
  0 siblings, 0 replies; 6+ messages in thread
From: Karl Wagner @ 2008-03-07 11:19 UTC (permalink / raw)
  To: linux-lvm

> Just to use correct terms: in a Xen world, one runs domU (or, a guest)
on > top of dom0 (a.k.a host), not the other way around. 
>
> So you have a Xen dom0 running several domUs.

Yes, sorry, of course that's what I meant :)

Think my brain must have temporarily shut down when I wrote that.


_________________________________________________________

Zetex Semiconductors - Solutions for an analog world.

http://www.zetex.com
http://www.zetex.cn

E-MAILS are susceptible to interference.  You should not assume that
the contents originated from the sender or the Zetex Group or that they 
have been accurately reproduced from their original form.
Zetex accepts no responsibility for information, errors or omissions in
this e-mail nor for its use or misuse nor for any act committed or
omitted in connection with this communication.
If in doubt, please verify the authenticity with the sender.
_________________________________________________________

 

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [linux-lvm] Snapshot of a Snapshot
@ 2008-02-29 11:27 Karl Wagner
  2008-02-29 14:39 ` Dan Kegel
  0 siblings, 1 reply; 6+ messages in thread
From: Karl Wagner @ 2008-02-29 11:27 UTC (permalink / raw)
  To: linux-lvm

Hi

I was just wondering if there was a plan to add 'Snapshot of a Snapshot'
functionality to LVM2? If so, is there any timescale on it?

This would be a very useful feature, especially in a Xen environment.

Also, is there an easy way to backup and restore a snapshot? My scenario
is that I am running several Xen DomU's (Virtual machines, 4 of them to
be precise) from snapshots of a base image. However, if one dies (eg the
snapshot overflows, something which should not happen again but just in
case...) and I recreate the snapshot and restore the backup image I
took, it fills the snapshot up. It doesn't seem to check if the data
being written to the snapshot is the same as on the origin volume, just
adds the data to the snapshot anyway. Is there any way round this (apart
from the very slow script I currently have which checks each sector
before writing)?

Cheers in advance


_________________________________________________________

Zetex Semiconductors - Solutions for an analog world.

http://www.zetex.com
http://www.zetex.cn

E-MAILS are susceptible to interference.  You should not assume that
the contents originated from the sender or the Zetex Group or that they 
have been accurately reproduced from their original form.
Zetex accepts no responsibility for information, errors or omissions in
this e-mail nor for its use or misuse nor for any act committed or
omitted in connection with this communication.
If in doubt, please verify the authenticity with the sender.
_________________________________________________________

 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-03-09 23:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-03  9:13 [linux-lvm] Snapshot of a Snapshot Karl Wagner
2008-03-03  9:25 ` Tomasz Chmielewski
2008-03-09 23:37 ` Lars Ellenberg
  -- strict thread matches above, loose matches on Subject: below --
2008-03-07 11:19 Karl Wagner
2008-02-29 11:27 Karl Wagner
2008-02-29 14:39 ` Dan Kegel

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).