Qcow2 disk and provisioning

frankz

Active Member
Nov 16, 2020
364
24
38
Hello everyone, I have in nfs several disks in qcow2 in this format. I know that there is the possibility for the system to report to the user that the number of VMs with thin disks can exceed the altitude beyond which space problems can occur. over-provisioning

How to do it?
 
Last edited:
Hi,
you're probably thinking about LVM-thin which has such a feature (it's reported automatically by the LVM tools when allocating). For file-system based storages, that is not easily possible as, in principle, you need to scan all files and sum up the thin files (in Proxmox VE, we could check only the images we control, but nothing like this is implemented at the moment). There is a preallocation option you can set to falloc to avoid thin provisioning, but with NFS you might run into timeouts upon disk creation then.
 
Hi,
you're probably thinking about LVM-thin which has such a feature (it's reported automatically by the LVM tools when allocating). For file-system based storages, that is not easily possible as, in principle, you need to scan all files and sum up the thin files (in Proxmox VE, we could check only the images we control, but nothing like this is implemented at the moment). There is a preallocation option you can set to falloc to avoid thin provisioning, but with NFS you might run into timeouts upon disk creation then.
Yes, qcow2 is probably referred to lvm volumes. Thanks for the clarification.

So I ask you: how best to manage this allocation on nfs without incurring space problems?
 
So I ask you: how best to manage this allocation on nfs without incurring space problems?
As I suggested, you can try using preallocation=falloc. But if that causes timeouts, I'm afraid you'd have to wait for this enhancement to be implemented (unfortunately not high-priority and a bit of work, because it works differently for different storage types).
 
  • Like
Reactions: frankz

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!