[pve-devel] Storage migration: LVM copy

Alexandre DERUMIER aderumier at odiso.com
Mon Dec 17 18:31:05 CET 2012


maybe you can try with "qemu-img convert" (this is what I use In my test code, you can also use qcow2 or any storage as input)

qemu-img convert -f raw -O host_device myfile.raw /dev/mylvmdevice


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

De: "Michael Rasmussen" <mir at datanom.net> 
À: pve-devel at pve.proxmox.com 
Envoyé: Lundi 17 Décembre 2012 18:08:26 
Objet: [pve-devel] Storage migration: LVM copy 

Hi all, 

Storage migrate to a LVM volume means, for all I know, using dd 
if=current_image of=new_image bs=1M. For two reason I wish there were 
some other way of doing it: 

1) Copies the entire block device bit by bit even if bits are zero 
2) Painfully slow due to 1) 

Any other, faster, way of doing this? 


-- 
Hilsen/Regards 
Michael Rasmussen 

Get my public GnuPG keys: 
michael <at> rasmussen <dot> cc 
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E 
mir <at> datanom <dot> net 
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C 
mir <at> miras <dot> org 
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917 
-------------------------------------------------------------- 
<dark> Turns out that grep returns error code 1 when there are no 
matches. I KNEW that. Why did it take me half an hour? 
-- Seen on #Debian 

_______________________________________________ 
pve-devel mailing list 
pve-devel at pve.proxmox.com 
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel 



More information about the pve-devel mailing list