public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] Enhancement of loop driver?
@ 2020-11-13  6:59 Jürgen Groß
  2020-11-13  8:44 ` Christoph Hellwig
  0 siblings, 1 reply; 3+ messages in thread
From: Jürgen Groß @ 2020-11-13  6:59 UTC (permalink / raw)
  To: linux-block@vger.kernel.org, Jens Axboe


[-- Attachment #1.1.1: Type: text/plain, Size: 1232 bytes --]

Hi,

a large customer is asking for storage migration of the disk images of
their virtual machines. They don't want to migrate the VM to another
host, but only the disk image from one filer to another while the VM
keeps running.

The natural way to setup something like this would be LVM and use
mirroring, but the problem is that this requires to copy the image to
a LVM enabled disk first, and this is no option due to time constraints
(copying many GB of data takes too long, and in the end I'd like to be
able to do the switch from the original image to the LVM backed with
the VM kept running).

So my idea was to enhance the loop driver to be capable to support a
list of backing files instead of only one and use a small prepended
file for storing the needed LVM metadata, resulting in the ability to
keep the existing disk image.

Would such an addition be acceptable?

An alternative would be to have an additional layer on top of the
current loop driver doing the concatenation of multiple loop devices,
but this would require a lot of code duplication. And using a common
base driver for the common code would be more code churn than just
adding the support to loop.c.

Thoughts?


Juergen

[-- Attachment #1.1.2: OpenPGP_0xB0DE9DD628BF132F.asc --]
[-- Type: application/pgp-keys, Size: 3135 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

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

end of thread, other threads:[~2020-11-13  9:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-13  6:59 [RFC] Enhancement of loop driver? Jürgen Groß
2020-11-13  8:44 ` Christoph Hellwig
2020-11-13  8:59   ` Jürgen Groß

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox