How to clone a virtual disk of VM logical volume?

cesarpk

Well-Known Member
Mar 31, 2012
770
3
58
Hi everybody

Anybody can help me?

I want to know how to clone a virtual disk of VM logical volume with the command dd.

my scenario:
lvscan
ACTIVE '/dev/pve/swap' [4.00 GiB] inherit
ACTIVE '/dev/pve/root' [5.00 GiB] inherit
ACTIVE '/dev/pve/data' [440.27 GiB] inherit
inactive '/dev/drbdvg1/vm-151-disk-1' [50.01 GiB] inherit
inactive '/dev/drbdvg1/vm-150-disk-1' [20.01 GiB] inherit
inactive '/dev/drbdvg0/vm-152-disk-1' [32.00 GiB] inherit
inactive '/dev/drbdvg0/vm-153-disk-1' [50.01 GiB] inherit

my practice:
dd if=/dev/drbdvg0/vm-152-disk-1 of=/var/lib/vz/img.raw bs=1M
dd: opening `/dev/drbdvg0/vm-152-disk-1': No such file or directory

Any help will be well appreciated
 
Last edited: