[pve-devel] [PATCH] iscsi : qemu-img convert workaround

Alexandre DERUMIER aderumier at odiso.com
Wed Oct 24 14:31:35 CEST 2012


Yes, that's what I want. try to open the device to see if it's available and check if size if big enough.

I'll try to do it, not sure I have the skill ;)

(I have also send a message on the libiscsi github, maybe they could help too)






I have done a lot of test with qemu-img convert this week,and it's work really fine between all differents storage.

So we can add easily a disk copy feature from/to differents storages, just using qemu-img convert



I'm also planning to add a copy vm feature

#qm copy <vmidsrc> <vmiddst>

without options, simply copy config, generate new macs, and copy disks on same disk storage

srcvm
-----
name:vm1
memory:2000
...
virtio0:local:vm-1-disk-1.raw
virtio1:nfs:vm-1-disk-1.raw

dstvm
-----
name:vm2
memory:2000
...
virtio0:local:vm-2-disk-1.raw
virtio1:nfs:vm-2-disk-1.raw



and allow options to change destination storage, or override values

#qm copy <vmidsrc> <vmiddst> --memory=4000 --virtio0 rbd:  --virtio1 sheepdog:


srcvm
-----
name:vm1
memory:2000
...
virtio0:local:vm-1-disk-1.raw
virtio1:nfs:vm-1-disk-1.raw

dstvm
-----
name:vm2
memory:4000
...
virtio0:rbd:vm-2-disk-1
virtio1:sheepdog:vm-2-disk-1



What do you think about it ?

----- Mail original ----- 

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Dietmar Maurer" <dietmar at proxmox.com>, "Alexandre DERUMIER" <aderumier at odiso.com> 
Cc: pve-devel at pve.proxmox.com 
Envoyé: Mercredi 24 Octobre 2012 11:19:32 
Objet: RE: [pve-devel] [PATCH] iscsi : qemu-img convert workaround 

> But that look somehow different to your code? Why do you think that is the 
> same behavior? 

Ok, I can see the similarity now. But adding a call to open and check sizes 
would be a good - can you add that? 



More information about the pve-devel mailing list