Hello,
I've been struggling to solve this issue for a few days with no luck.
The config:
The node: latest Proxmox, Seagate Constellation HDDs in RAID1 (dell controller)
The VM: A mail server on Centos 7 with Cpanel (latest versions), XFS on LVM
/etc/lvm/lvm.conf issue_discards = 1 (made no difference)
/usr/lib/systemd/system/fstrim.service looks fine (no excludes)
One VM has about 77G of data, however the backup size (ZST snapshot) is about 100G. LZO is about 150G and uncompressed about 190G.
Found this: https://pve.proxmox.com/wiki/Shrink_Qcow2_Disk_Files
fstrim - prompts xxxG trimmed but actutally does nothing
dd if=/dev/zero of=/mytempfile rm -f /mytempfile - works and gets the backup to 40G
But... it only takes a few days until files get written and deleted and the backup size gets bigger and bigger.
Most likely the "free space" is not discarded and the Proxmox backup is including all those "free" sectors that are actually containing data.
But... why? Is it the fault of Centos? Is it the fault of Proxmox? Is it the fault of the HDDs? Is it just "normal" behavior for my config?
Thank you for reading and I'll appreciate any input on this.
I've been struggling to solve this issue for a few days with no luck.
The config:
The node: latest Proxmox, Seagate Constellation HDDs in RAID1 (dell controller)
The VM: A mail server on Centos 7 with Cpanel (latest versions), XFS on LVM
/etc/lvm/lvm.conf issue_discards = 1 (made no difference)
/usr/lib/systemd/system/fstrim.service looks fine (no excludes)
One VM has about 77G of data, however the backup size (ZST snapshot) is about 100G. LZO is about 150G and uncompressed about 190G.
Found this: https://pve.proxmox.com/wiki/Shrink_Qcow2_Disk_Files
fstrim - prompts xxxG trimmed but actutally does nothing
dd if=/dev/zero of=/mytempfile rm -f /mytempfile - works and gets the backup to 40G
But... it only takes a few days until files get written and deleted and the backup size gets bigger and bigger.
Most likely the "free space" is not discarded and the Proxmox backup is including all those "free" sectors that are actually containing data.
But... why? Is it the fault of Centos? Is it the fault of Proxmox? Is it the fault of the HDDs? Is it just "normal" behavior for my config?
Thank you for reading and I'll appreciate any input on this.