linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Restore LVM snapshot without creating a full dump to an "external" device?
@ 2008-03-09 22:05 Bas van Schaik
  2008-03-09 23:31 ` Lars Ellenberg
  0 siblings, 1 reply; 3+ messages in thread
From: Bas van Schaik @ 2008-03-09 22:05 UTC (permalink / raw)
  To: linux-lvm

Hi all,

When I started to use LVM snapshots, I presumed that it was easy to
restore a system to such a snapshot. As far as I can see now, this
presumption was incorrect... People on the internet write that I should
dump the whole snapshot using dd and then write it over the original
volume. This actually implies that I need another device with at least
the size of the original volume available to dump to. In my situation,
this means that I need about 2 TB free space to recover this snapshot!

Isn't there a more sophisticated way to restore the snapshot than just
dumping it?
 1) create snapshot of /dev/myvolumegroup/myvolume to
/dev/myvolumegroup/mysnapshot
 2) dd if=/dev/myvolumegroup/mysnapshot of=/tmp/mysnapshot.dd
 3) lvremove /dev/myvolumegroup/mysnapshot
 4) dd if=/tmp/mysnapshot.dd of=/dev/myvolumegroup/myvolume

Something like:
 1) lvrevert /dev/myvolumegroup/mysnapshot /dev/myvolumegroup/myvolume

I'd like to hear your thoughts on this, because I think it should be
fairly easy to restore a COW snapshot. Or am I wrong and missing something?

Regards!

  Bas
 

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

end of thread, other threads:[~2008-03-10  9:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-09 22:05 [linux-lvm] Restore LVM snapshot without creating a full dump to an "external" device? Bas van Schaik
2008-03-09 23:31 ` Lars Ellenberg
2008-03-10  9:59   ` Bas van Schaik

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