I've recently finished migrating my VMs from an old Proxmox 6 host to a new one running fully updated Proxmox 7. I got myself a NAS serving NFS that I used to create the backups with the idea to later also use it for some VM disks that do not require high responsiveness of local nvme drives.
I restored some of my VMs from NFS to the new server's local storage and everything worked great. I restored one of the VMs placing its disk to NFS storage and immediately noticed it took the entire 128gb worth of space instead of the 25gb or so worth of data the disk is holding. I looked around and noticed the restored VM was using a raw disk on NFS and remembered reading that sparse disks sometimes requires qcow, so I did a disk move from NFS to NFS changing the disk format in the process. Nope, still full 128gb in use.
Did more testing: creating new VMs to local ZFS NVME storage creates sparse disks. Creating new VMs to NFS storage creates thick provisioned drives that immediately utilise their max potential size.
What gives and how do I get sparse to work over NFS?
I restored some of my VMs from NFS to the new server's local storage and everything worked great. I restored one of the VMs placing its disk to NFS storage and immediately noticed it took the entire 128gb worth of space instead of the 25gb or so worth of data the disk is holding. I looked around and noticed the restored VM was using a raw disk on NFS and remembered reading that sparse disks sometimes requires qcow, so I did a disk move from NFS to NFS changing the disk format in the process. Nope, still full 128gb in use.
Did more testing: creating new VMs to local ZFS NVME storage creates sparse disks. Creating new VMs to NFS storage creates thick provisioned drives that immediately utilise their max potential size.
What gives and how do I get sparse to work over NFS?
Last edited: