[linux-lvm] how to convert a disk containing a snapshot to a snapshot lv?

Stuart D Gathman stuart at gathman.org
Wed Dec 29 13:35:15 UTC 2021


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.


More information about the linux-lvm mailing list