[SOLVED] Disk usage is low but VM backup is huge

jeanmars

New Member
May 26, 2023
24
2
3
Hi all,
I have a VM I backup regurlarly; this VM has a disk of 700GB.
But real disk usage is only about 50GB.
So far, backup sizes were very reasonable (about 20-30GB) but it jumped to 150GB for last backup.
I guess it's because I had to temporarily copied a big file(120GB) to this 700GB disk and then I removed it prior to backup.
However, this "file" is still in the backup.
Is there a way to clean-up a disk before making a backup (such as zero non referenced space)?
Or is there any smart solution to avoid backing-up non longer relavant data?
Thanks,
Jean
 
Hi again,

finally found the command:
sudo fstrim -av
to perform this.
Should have looked deeper before :)
Cheers,
Jean
 
  • Like
Reactions: leesteken

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!