r/Proxmox • u/Nakivo_official • 2m ago
Community Showcase! Proxmox Storage Configuration: Practical Examples
Small details in storage configuration can seriously impact system behavior. For example, a disk planned to be thin-provisioned may be fully allocated, a zvol may report excessive space usage, or an iSCSI mount may fail to remount after a reboot. These issues can disrupt backups and complicate recovery.
We’re sharing the checks we found most useful for anyone setting up a new Proxmox host or reviewing an existing one, from homelab users to admins running production VMs.
Thin provisioning checks
1. LVM-Thin: run 'lvs -a | grep vm-<VMID>-disk-<NUM>' on the disks you've converted or migrated. If the Data% column is blank, then the disk is thick provisioned. The easiest fix is to migrate to thin-capable storage, and if it's already on thin-capable storage, then 'lvchange -ay' may be all that's required.
2. ZFS: the 'thin provision' checkbox is not in the creation window. You have to double-click on the new storage and then select it in the Edit: ZFS window.
3. zvol reservation: if ZFS get reservation <zvol> returns a non-zero value, then zfs set reservation=none <zvol> should free up the reserved space.
4. Discard: Turn it on for VM disks so the guest can issue TRIM. On ZFS, TRIM alone may not reduce USED, so it's worth comparing REFER to USED.
Other storage types
Directory: Partition, format, add to /etc/fstab, and leave preallocation at Default.
NFS and SMB: Add under Datacenter > Storage > Add. Proxmox mounts them under /mnt/pve/.
iSCSI: Partition and format the LUN first, mount by UUID with _netdev in /etc/fstab, then add the mount point as Directory storage.
ZFS: Zvols only support Raw, so use a Directory datastore on the pool for QCOW2.
Quick example
Create a VM with a 12GB QCOW2 disk on a directory or SMB datastore and install the guest OS. Then run du -h <disk>.qcow2. In our test, the disk used around 5.1GB of the 12GB provisioned, which is exactly what thin provisioning should be doing.
Pitfalls
dd fails with 'No such file or directory' on an LV: reactivate it with lvchange -ay.
If you're doing a disk copy with dd, then double-check that you have 'if' and 'of' the right way round. Getting them the wrong way round will overwrite the original disk.
Full workflow
Our blog has step-by-step examples for LVM-Thin, ZFS (zvols vs QCOW2 and the unexpected USED space), Directory, NFS, SMB and iSCSI from both the web interface and the CLI.
Read it here: https://www.nakivo.com/blog/proxmox-storage-configuration/
Which storage type do you rely on most for VM disks: LVM-Thin, ZFS, or file-based storage like NFS, SMB and iSCSI?
