Skip to contentSkip to conversation

from which version qemu support clone on rbd

Qemu-devel yue 3 participants 5 messages Jul 2, 2014 – Jul 4, 2014

lore
Share & tools
lore

yue

author
#0 lore raw

hi,all

i now look at qemu 2.0, i do not find rbd-api related to clone.
if qemu support this function? and from which version?
clone api of rbd is very simple(one api), why qemu does not implement?what is the reason?

thanks.

#1 lore raw

Qemu doesn't handle that level of abstraction. The closest approximation you could probably come up with is qemu-img's backing file support for qcow2 images.

You should stick to using the rbd tool to create clones of rbd devices. Alternatively, use a higher level tool (like openstack, etc) that supports this.

--Iggy

Quoted 8 lines · yue

hi,all
i now look at qemu 2.0, i do not find rbd-api related to clone. if qemu support this function? and from which version? clone api of rbd is very simple(one api), why qemu does not implement?what is the reason?
thanks.

author
#2 lore raw

could you tell me why 'Qemu doesn't handle that level of abstraction'? i know qcow2 well, you can tell me the comparation。

thanks

Quoted 21 lines · Brian Jackson

Qemu doesn't handle that level of abstraction. The closest approximation you could probably come up with is qemu-img's backing file support for qcow2 images.

You should stick to using the rbd tool to create clones of rbd devices. Alternatively, use a higher level tool (like openstack, etc) that supports this.

--Iggy

Quoted 8 lines · yue

hi,all
i now look at qemu 2.0, i do not find rbd-api related to clone. if qemu support this function? and from which version? clone api of rbd is very simple(one api), why qemu does not implement?what is the reason?
thanks.

#3 lore raw
Quoted 2 lines · yue

could you tell me why 'Qemu doesn't handle that level of abstraction'? i know qcow2 well, you can tell me the comparation。

Qemu would have to have a lot of extra code (that already exists elsewhere) to support taking snapshots/clones/etc of every backend device it supports. In the case of qcow2, the support exists because of the whole system snapshotting feature. Otherwise it's "bloat" that Qemu doesn't normally handle (it's left to the management layers above to handle).

--Iggy

Quoted 15 lines

thanks

Quoted 3 lines · Brian Jackson

Qemu doesn't handle that level of abstraction. The closest approximation you could probably come up with is qemu-img's backing file support for qcow2 images.

You should stick to using the rbd tool to create clones of rbd devices. Alternatively, use a higher level tool (like openstack, etc) that ...

#4 lore raw
In reply to yue
Quoted 3 lines · yue

i now look at qemu 2.0, i do not find rbd-api related to clone.
if qemu support this function? and from which version?
clone api of rbd is very simple(one api), why qemu does not implement?what is the reason?

rbd_snap_create()? QEMU supports it.

Maybe clones are a different concept from snapshots in RADOS. I have CCed Josh Durgin from Ceph. Please CC in the future for questions about rbd.

Stefan