VM disk space allocation on ZFS pool

zzxgfds77

New Member
Apr 1, 2024
1
0
1
Hi,

I'm new to Proxmox but not new to virtualization and I'm having a bit of trouble in setting up my first (test)VM and allocating disk space when creating the VM. I have created a new simple ZFS mirror pool consisting of two disks. The Proxmox webui shows a total disk space of 7.54TB. The command
Code:
zpool list
shows a total of 6.98T. I learned that the difference is TerraByte, Tebibyte. To garantue ZFS performance and operations, I want to reserve 10% of that 6.98TiB for ZFS so I issue the command
Code:
zfs set reservation=0.698T zfs01
(I know it's usually recommended to do 20% but I want to stick to 10%).

So far so good but here comes the hard part that I find very unintuitive. I want this VM to utilize the full free disk space of the ZFS pool - minus 10%. So the total disk space of 6.98TiB - 0.698TiB = 6.282TiB. Because the 'Disk' tab when creating a new VM only allows GiB, values I have to convert 6.282TiB to GiB which = 6431.488 GiB and to be safe I configure the disk size to be 6430 GiB and finish creating the VM. After the VM has been created the Proxmox webgui now shows ZFS pool usage of 92.98% where it was almost 0% before. This 92.98% is not what I wanted since I want to use a max of 90%.

My questions are:
- Is my approach for calculating and allocating the prefered disk space on the VM (generally) the correct method?
- Is there a more intuitive way for allocating prefered full disk space of ZFS pool to a VM?
Any other tips and info are welcome too.

Thanks in advance
 
Last edited:

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!