Clone - LVM VM

leonardo.kiyota

Active Member
Dec 18, 2019
2
0
41
Hello,

I have a Windows VM type LVM, I moved that one to a new storage.

After the process the Proxmox system puts the original LVM disk as a "Unused Disk 0".

I want to clone this "Unused Disk 0", is it possible to do that?

I tried to clone using dd command but the command show up a message error saying that the "vm-185-disk-0': No such file or directory"

I'm using this syntax.

dd if=/dev/Vol7k/vm-185-disk-0 of=/dev/Vol7k/vm-185-disk-2 bs=4M status=progress
 
Is your LVM volume group called Vol7k? Does the path exist, i.e., can you "ls -al" the disk?
Is the disk 2 an existing LVM slice? If not, your command is going to create a regular file in the special folder /dev

I recommend consulting the output of the following commands:
cat /etc/pve/storage.cfg
vgs
lvs
pvesm status


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
As you can see that LV is NOT available - as shown in the lvdsiplay output, also confirmed by the lack of the 'a' attribute (5th bit) in the lvs output. I imagine this is because PVE has unattached this disk as unused in the VM.

You probably could try activating it with the lvchange -a y Vol7k/vm-185-disk-0 command & then it should become available.

HOWEVER, I have ZERO experience with this & its implications! You are on your own!
 
  • Like
Reactions: bbgeek17 and UdoB