Looking for some feedback here, I recently noticed some of my backups were larger than I expected given the amount of actual data residing in the guest VMs. But I realized this is because some of those guest VMs had *previously* stored a lot of data and though I had deleted it it wasn't discarded.
So I believe this is good formula for ensuring backups are "thin" as possible?
1. Make sure to use Virtio SCSI driver (this seems to be default for disk in my 4.4 cluster)
2. Set discard=on in the disk options in proxmox/KVM for the guest
3. Use LVM storage (?) or .qcow2 and not .raw file for disk
4. Run "fstrim -a" or similar within the guest operating system prior to backup running to discard unused blocks from the filesystem. (this can be run through cron or systemd, and is already running in some distros)
Do I have this right? Thanks
So I believe this is good formula for ensuring backups are "thin" as possible?
1. Make sure to use Virtio SCSI driver (this seems to be default for disk in my 4.4 cluster)
2. Set discard=on in the disk options in proxmox/KVM for the guest
3. Use LVM storage (?) or .qcow2 and not .raw file for disk
4. Run "fstrim -a" or similar within the guest operating system prior to backup running to discard unused blocks from the filesystem. (this can be run through cron or systemd, and is already running in some distros)
Do I have this right? Thanks