[pve-devel] Storage migration: online design solution

Alexandre DERUMIER aderumier at odiso.com
Wed Jan 9 03:34:01 CET 2013


>>Phase 4) "drive-mirror", "arguments": {"device": "ide-hd0", 
>>"target": "nbd:host:port", 
>>"sync": "full", 
>>"format": "(qcow2|raw)" } 

Does it work also with rbd,sheepdog,lvm ? (maybe this is the same formats that qemu-img ? )

>>PS. I am struggling with this '"device": "ide-hd0"'. What is the 
>>correct way of specifying a block device in proxmox given the following 
>>configuration: virtio2: pve-storage1_lvm:vm-102-disk-1,size=2G 

drives name under proxmox are:

drive-virtioX
drive-ideX
drive-scsiX
drive-sataX




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

De: "Michael Rasmussen" <mir at datanom.net> 
À: pve-devel at pve.proxmox.com 
Envoyé: Mercredi 9 Janvier 2013 02:23:11 
Objet: [pve-devel] Storage migration: online design solution 

Hi all, 

Doing online storage migration will involve the following phases: 
Phase 1) Create remote block device 
Phase 2) Connect this block device to NBD (nbd_server_add [-w] device) 
Phase 3) Start nbd_server (nbd_server_start [-a] [-w] host:port) 
Phase 4) "drive-mirror", "arguments": {"device": "ide-hd0", 
"target": "nbd:host:port", 
"sync": "full", 
"format": "(qcow2|raw)" } 
Phase 5) "drive-reopen", "data": {"device": "ide-hd0", 
"new-image-file": "new block device", 
"format": "(qcow2|raw)"} 
Phase 6) Stop nbd_server (nbd_server_stop) 
Phase 7) Remove old block device 

Have I missed something? 

PS. I am struggling with this '"device": "ide-hd0"'. What is the 
correct way of specifying a block device in proxmox given the following 
configuration: virtio2: pve-storage1_lvm:vm-102-disk-1,size=2G 

-- 
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 
-------------------------------------------------------------- 
There is nothing stranger in a strange land than the stranger who comes 
to visit. 

_______________________________________________ 
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