On a Debian wheezy i installed KVM for virtualization and install some VMs on it. I use separate LVM disks because of its performance for my VMs disk.
Now i need to clone one of them in new LVM disk. I searched too much for it and i found virt-clone
, but unfortunately The virt-clone
just clone Vms with disk in files and cannot clone LVM disks. I think it is possible by dd
like so:
dd if=/dev/vg_kvm/lv_disk1 of=/dev/vg_kvm/lv_disk2
Is there any more optimize solution? How can i clone my VM which is installed on a LVM disk to a new LVM disk?
You can use LVM volumes as targets for the copy without a problem
should do the trick. It handles the source block device (instead of a file) as well.