How does "pvesm alloc" work?

emdebbed

Member
Oct 29, 2021
4
0
6
I'd like to use `pvesm alloc` but not matter what kind of filename I use is always returns the same error:

root@host:~# pvesm alloc hdd_raid10_data01 100 foo 100G
unable to parse volume filename 'foo'

How is this tool supposed to work?
 
Thanks for the response. However after having a look at disks created via the Webinterface I realised that with my storage type "btrfs" the filename must have a fileending like .qcow2

See https://pve.proxmox.com/pve-docs/pvesm.1.html for available file types.

So in the end this worked:

Code:
root@host:~# pvesm alloc hdd_raid10_data01 100 bla.qcow2 100G
Formatting '/data/hdd_raid10_data01/images/100/bla.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off preallocation=metadata compression_type=zlib size=107374182400 lazy_refcounts=off refcount_bits=16
successfully created 'hdd_raid10_data01:100/bla.qcow2'

root@host:~# pvesm alloc hdd_raid10_data01 100 bla.raw 100G
successfully created 'hdd_raid10_data01:100/bla.raw'

root@host:~# find /data
...
/data/hdd_raid10_data01/images/100/bla.qcow2
/data/hdd_raid10_data01/images/100/bla
/data/hdd_raid10_data01/images/100/bla/disk.raw
 

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!