linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Stuart D Gathman <stuart@gathman.org>
To: LVM general discussion and development <linux-lvm@redhat.com>
Cc: Zdenek Kabelac <zdenek.kabelac@gmail.com>
Subject: Re: [linux-lvm] how to convert a disk containing a snapshot to a snapshot lv?
Date: Wed, 29 Dec 2021 08:35:15 -0500 (EST)	[thread overview]
Message-ID: <31e6126c-b6ff-42a7-68f5-a3a2782060d4@gathman.org> (raw)
In-Reply-To: <315E5303-D491-4487-BAD4-958420346163@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 886 bytes --]

On Tue, 28 Dec 2021, Tomas Dalebjörk wrote:

> Yes, it is an incremental backup based of the cow device

I've used such a COW based backup (can't remember the name just now, currently
using DRBD and rsync for incremental mirrors).  The way it worked was to
read and interpret the raw COW device itself and send blocks over the
wire - writing directly to a volume on the remote end.  It did not try
to patch up metadata and use LVM to merge.  You need an intimate
knowledge of COW internals for either approach - BUT the read-only
approach (with plain writes at the other end) is MUCH safer (not going
to trash metadata at either end) and just as efficient on the wire.

I've also used a block device rsync, that read every block on both
sides and compared hashes - but that is obviously a lot more disk io
that using the COW where LVM is already tracking changed blocks.

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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/

  reply	other threads:[~2021-12-29 14:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-19 16:43 [linux-lvm] how to convert a disk containing a snapshot to a snapshot lv? 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 [this message]
2021-12-21 19:23     ` Phillip Susi

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=31e6126c-b6ff-42a7-68f5-a3a2782060d4@gathman.org \
    --to=stuart@gathman.org \
    --cc=linux-lvm@redhat.com \
    --cc=zdenek.kabelac@gmail.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).