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
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
(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
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
Code:
zfs set reservation=0.698T zfs01
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: