linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Phillip Susi <phill@thesusis.net>
To: LVM general discussion and development <linux-lvm@redhat.com>
Cc: örk <tomas.dalebjork@gmail.com>,
	"Zdenek Kabelac" <zdenek.kabelac@gmail.com>
Subject: Re: [linux-lvm] how to convert a disk containing a snapshot to a snapshot lv?
Date: Tue, 21 Dec 2021 14:23:11 -0500	[thread overview]
Message-ID: <87a6gtwyfv.fsf@vps.thesusis.net> (raw)
In-Reply-To: <89C3404F-E604-45DA-AEFD-200DCC89631D@gmail.com>


Tomas Dalebjörk <tomas.dalebjork@gmail.com> writes:

> hi
>
> I think I didn’t explain this clear enough 
> Allthe lvm data is present in the snapshot that I provision from our backup system 
> I can guarantee that!
>
> If I just mount that snapshot from our backup system, it works perfectly well
>
> so we don’t need the origin volumes in other way than copying back to it
> we just need to reanimate it as a cow volume
> mentioning that all data has been changed
> the cow is just referencing to the origin location, so no problem there
> All our data is in the cow volume, not just the changes


Ok, so you have thrown out the snapshot relationship when you made your
backup, and backed up both the origin and the snapshot as two separate
backups?  Thus your backup requires much more space than the original
system did since all of the common data has now been duplicated in both
backups.  Now it seems you want to restore both backups, but NOT pay the
storage penalty for duplicating the common parts.  I don't think there
is really a good way of doing that.

I'd say that you can restore the origin volume, then create a snapshot
of that, then run some sort of binary diff between the origin and the
backup of the snapshot and write that diff to the new snapshot.


_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

      parent reply	other threads:[~2021-12-21 19:28 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-19 16:43 Tomas Dalebjörk
2021-12-20 14:51 ` Phillip Susi
2021-12-21 13:46 ` Zdenek Kabelac
2021-12-21 14:44   ` Tomas Dalebjörk
2021-12-21 15:30     ` Zdenek Kabelac
2021-12-21 16:12       ` Tomas Dalebjörk
2021-12-22 10:40         ` Zdenek Kabelac
2021-12-28  5:04         ` Stuart D Gathman
2021-12-28  6:40           ` Tomas Dalebjörk
2021-12-29 13:35             ` Stuart D Gathman
2021-12-21 19:23     ` Phillip Susi [this message]

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=87a6gtwyfv.fsf@vps.thesusis.net \
    --to=phill@thesusis.net \
    --cc=linux-lvm@redhat.com \
    --cc=tomas.dalebjork@gmail.com \
    --cc=zdenek.kabelac@gmail.com \
    --subject='Re: [linux-lvm] how to convert a disk containing a snapshot to a snapshot lv?' \
    /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

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