Hi, my setup is as follow:
TrueNAS Core 13.0-U1.1 as NFS server
Proxmox 7.1-12 as the hypervisor
I have a dataset shared through NFS to the proxmox box. On TrueNAS I enabled NFSv4 and on proxmox I forced NFSv4.2 and indeed /proc/mounts shows thats it's mounted correctly as NFSv4.2:
I then created a QEMU virtual disk on the NFS share with the discard option on and attached that disk to a VM. When I try to delete some files stored on that virtual disk from inside the VM, space of the actual .qcow2 file is not deallocated (qemu-img info report the same "disk size" before and after the delete).
I tested this with various combination of virtual controller and with or without the ssd option, both with windows and linux as guest, but unfortunately none of them worked.
From my research this feature was introduced on NFSv4.2 and indeed on linux is working correctly (I made the same tests on ubuntu server 22.04.1 as NFS server).
I'm missing something or is this a bug?
Thank you in advance.
TrueNAS Core 13.0-U1.1 as NFS server
Proxmox 7.1-12 as the hypervisor
I have a dataset shared through NFS to the proxmox box. On TrueNAS I enabled NFSv4 and on proxmox I forced NFSv4.2 and indeed /proc/mounts shows thats it's mounted correctly as NFSv4.2:
Code:
192.168.31.10:/mnt/VG01/VM01 /mnt/pve/VM01 nfs4 rw,relatime,vers=4.2,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,nconnect=8,timeo=600,retrans=2,sec=sys,clientaddr=192.168.31.150,local_lock=none,addr=192.168.31.10 0 0
I then created a QEMU virtual disk on the NFS share with the discard option on and attached that disk to a VM. When I try to delete some files stored on that virtual disk from inside the VM, space of the actual .qcow2 file is not deallocated (qemu-img info report the same "disk size" before and after the delete).
I tested this with various combination of virtual controller and with or without the ssd option, both with windows and linux as guest, but unfortunately none of them worked.
From my research this feature was introduced on NFSv4.2 and indeed on linux is working correctly (I made the same tests on ubuntu server 22.04.1 as NFS server).
I'm missing something or is this a bug?
Thank you in advance.