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:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!