[PVE-User] how to moving vm disk image from one(old) to new one in the physical disk by lvm, and not by create new vm!

lu lyt lingqi2008 at gmail.com
Mon Sep 26 06:27:56 CEST 2011


Hi
Pls Help me, How to moving disk image from one to new one
in the physical disk by lvm , and not by create new vm & install new system!
beacause i want the contents of old vm disk image same to new vm

eg:
# lvs -o +lv_tags

  LV            VG     Attr   LSize   Origin Snap%  Move Log Copy%
Convert LV Tags
......
  vm-115-disk-1 disk4  -wi-a-  16.00G
     pve-vm-115
  vm-116-disk-1 disk4  -wi-a-  16.00G
     pve-vm-116
......
   data              pve    -wi-ao
808.02G
  root              pve
-wi-ao  96.00G
  swap             pve    -wi-ao   23.00G

as above:
vm-115 is the old vm, and vm-116 is new vm, and the disk img of
vm-116-disk-1 is none file & no system in it!
i want to use vm-116 by moving from vm-115,and vm-115 is also can use it;

I trid this links
http://pve.proxmox.com/wiki/Moving_disk_image_from_one_KVM_machine_to_another

but last, vm-116 can run it, but vm-115 have no the file of vm-115 disk
image(It's had moving disk image from 115 to 116!)

disk4 is alone vg,and like this to do:
pvcreate /dev/sdi
vgcreate disk4 /dev/sdi

anyone have new idea to do it ?

tks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pve.proxmox.com/pipermail/pve-user/attachments/20110926/6e26e43d/attachment-0013.html>


More information about the pve-user mailing list