While testing, I discovered the following:
According to the pvesm manpage:
So when trying this:
This is correct as shown by:
However I then tried a non-existent
Upon testing, I discovered that as long as you use the correct LVM disk naming convention in Proxmox (vm-<vmid>-disk-<int>) you will get a correctly parsed but possibly non-existent reference!
I then tried with another Proxmox storage I have named
This is correct:
However, here too, you can try non-existent ones:
This works for vm's disks, as long as extension is either
Let's try another Proxmox storage type, (I chose
So have I misunderstood something;
If it is only to see the path of the storage, BUT not the actual stored file/content, then the command should just be:
According to the pvesm manpage:
pvesm path <volume>
Get filesystem path for specified volume
<volume>: <string>
Volume identifier
So when trying this:
Code:
~# pvesm path local-lvm:vm-100-disk-0
/dev/pve/vm-100-disk-0
Code:
~# pvesm list local-lvm
Volid Format Type Size VMID
local-lvm:vm-100-disk-0 raw images 4194304 100
local-lvm:vm-100-disk-1 raw images 34359738368 100
Volid
:
Code:
~# pvesm path local-lvm:vm-999-disk-999
/dev/pve/vm-999-disk-999
I then tried with another Proxmox storage I have named
Storage
which is of a directory
type:
Code:
~# pvesm path Storage:101/vm-101-disk-0.raw
/mnt/pve/Storage/images/101/vm-101-disk-0.raw
Code:
~# pvesm list Storage | grep "101/"
Storage:101/vm-101-disk-0.raw raw rootdir 8589934592 101
Code:
~# pvesm path Storage:101/12345.raw
/mnt/pve/Storage/images/101/12345.raw
#or even non-existent VM:
~# pvesm path Storage:888/anything.qcow2
/mnt/pve/Storage/images/888/anything.qcow2
.qcow2
or .raw
.Let's try another Proxmox storage type, (I chose
iso
, but I guess all will behave similar):
Code:
~# pvesm path Storage:iso/non-existent.iso
/mnt/pve/Storage/template/iso/non-existent.iso
~# pvesm list Storage | grep "non-existent"
~#
So have I misunderstood something;
pvesm path
only references the theoretical path (if I were to create it) ?!If it is only to see the path of the storage, BUT not the actual stored file/content, then the command should just be:
pvesm path <storageID>:<label>
(I tried it but it returns with an error)