All of lore.kernel.org
 help / color / mirror / Atom feed
* QCOW2 to RBD format 2 in one step
@ 2013-05-14 10:16 Wido den Hollander
  2013-05-14 10:34 ` Leen Besselink
  2013-05-14 19:57 ` Josh Durgin
  0 siblings, 2 replies; 9+ messages in thread
From: Wido den Hollander @ 2013-05-14 10:16 UTC (permalink / raw)
  To: ceph-devel@vger.kernel.org

Hi,

While working on the CloudStack code for 4.2 I'm running into some 
problems with QCOW2 and RBD format 2.

A quick cap of the problem:

CloudStack stores all the templates on "Secondary Storage" as QCOW2 files.

When a VM is deployed, this image will be copied (once) from Secondary 
Storage to Primary Storage, this is done by qemu-img which does the 
conversion.

When the image is on Primary Storage it will be copied to the 
destination volume and the Instance/VM is started.

In that last step I want to use layering, but the problem is that my 
image is RBD format 1 due to the qemu-img copy.

I can skip the qemu-img copy, but I have to find a way to go from QCOW2 
to RBD format 2 in preferably one step. There is a issue about this in 
the tracker [0], but that won't be finished on time.

Another idea would be to do QCOW2 -> RAW -> RBD format 2, but that extra 
step will take a lot of time. It would also require some temporary 
storage on the hypervisor.

I also thought of creating the RBD image prior to converting to it, but 
that fails, since qemu-img won't let you convert to a already existing 
image.

Any brights ideas? Maybe even doing the QCOW2 -> RAW format in memory? 
In Java?

The goal is to go from QCOW2 to RBD format 2 in one step.

[0]: http://tracker.ceph.com/issues/4897

-- 
Wido den Hollander
42on B.V.

Phone: +31 (0)20 700 9902
Skype: contact42on

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

end of thread, other threads:[~2013-05-14 20:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-14 10:16 QCOW2 to RBD format 2 in one step Wido den Hollander
2013-05-14 10:34 ` Leen Besselink
2013-05-14 11:52   ` Wido den Hollander
2013-05-14 12:11     ` Damien Churchill
2013-05-14 12:15     ` Leen Besselink
2013-05-14 14:36       ` Alexandre DERUMIER
2013-05-14 20:10         ` Josh Durgin
2013-05-14 19:57 ` Josh Durgin
2013-05-14 20:37   ` Wido den Hollander

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.