[SOLVED] Problem creating a disk using pvesm: unable to parse volume filename

bnw4cristie

New Member
Jan 24, 2025
2
0
1
Hi

I'd like to deploy a vm where I got a qcow2 image file, but need to create and attach two more disks. As I want to automate this, using the GUI is no option.
As far as I understand reading the manuals, the pvesm command should do so. But when I issue it I got an error:

Code:
pvesm alloc fastpool 830 vm-830-disk-1 500G --format qcow2
unable to parse volume filename 'vm-830-disk-1'

Well, fastpool is a valid storage id:
Code:
pvesm list fastpool
Volid                            Format  Type              Size VMID
fastpool:100/vm-100-disk-0.raw   raw     rootdir     8589934592 100
fastpool:102/vm-102-disk-0.qcow2 qcow2   images     34359738368 102
fastpool:104/vm-104-disk-1.qcow2 qcow2   images    214748364800 104
fastpool:104/vm-104-disk-2.qcow2 qcow2   images    137438953472 104
...
fastpool:830/vm-830-disk-0.qcow2 qcow2   images     86973087744 830

I already tried some modifications like
Code:
pvesm alloc fastpool 830 vm-830-disk-1.qcow2 500G --format qcow2
pvesm alloc fastpool 830 830/vm-830-disk-1 500G --format qcow2
pvesm alloc fastpool 830 images/830/vm-830-disk-1 500G --format qcow2
pvesm alloc fastpool 830 /fast/pool/images/830/vm-830-disk-1 500G --format qcow2
.. but all the same :-(


Of course, there's a workaround by creating the disk using qemu-img and then import the disk -- but I think pvesm alloc should work better.

So: What did I wrong? How does the correct command look like?

Thanks
Bjørn
 
pvesm alloc fastpool 830 vm-830-disk-1.qcow2 500G --format qcow2
Are you sure this ^ did not work for you?

Code:
pvesm alloc local 830 vm-830-disk-1.qcow2 1G  --format qcow2
Formatting '/var/lib/vz/images/830/vm-830-disk-1.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off preallocation=metadata compression_type=zlib size=1073741824 lazy_refcounts=off refcount_bits=16
successfully created 'local:830/vm-830-disk-1.qcow2'


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Hm, I thought, found it in my bash history,
but trying again, it worked!?!
having a closer look -- Ehm, I did a typo before :facepalm:

Sorry & thanks for the quick answer