pvesm path local-lvm:vm-100-disk-0
I executed the command: pvesm path local-lvm:vm-100-disk-0The fastes to get the real path is to go to the command line (SSH or web console) and execute:
Code:pvesm path local-lvm:vm-100-disk-0
It probably will point you to /dev/local-lvm/vm-100-disk-0, I'd guess.
Output: /dev/pve/vm-100-disk-0
lvs
I want to copy the disk without using the web interface.Yes, that's expected, it's just the device node.
Use LVM builtin commands if you want to see the size:lvs
But, what do you want to actually achieve or do?
dd if=/dev/pve/vm-100-disk-0 of=/path/to/target bs=4096 conv=fsync
lvcreate
if you're more familiar with that.To the same storage?
No, another storage. expamle: /vm-data1/VM/ (mounting /dev/sdb)
Code:dd if=/dev/pve/vm-100-disk-0 of=/path/to/target bs=4096 conv=fsync
For the target path you need to create a LV first. simplest could be using the Webinterface to create a disk, with the same size as the one you want to copy, then use the new disk volume ID to get it's path and use that as "of=..." in above command.
I agree with you.
Else, you can also use things likelvcreate
if you're more familiar with that.
I'll read it later.
A full VM clone could also be easier. You can then delete other this, if not needed anymore, etc...
mkdir /mnt/vm-disk-tmp
mount /dev/pve/vm-100-disk-0 /mnt/vm-disk-tmp
ls /mnt/vm-disk-tmp/
umount /mnt/vm-disk-tmp
Of course.Note, you could mount the respective path "pvesm" outputs also on the host if the filesystem on it is something Linux can understand, but only if the VM it belongs to is not running.
E.g.:
Code:mkdir /mnt/vm-disk-tmp mount /dev/pve/vm-100-disk-0 /mnt/vm-disk-tmp ls /mnt/vm-disk-tmp/
Ok. I try
You can then access the contents of the VM disk and copy some files only, if you want. After youre done ensure that you do:
before you start the VM again.Code:umount /mnt/vm-disk-tmp