[SOLVED] Trim VM data, too big backups

Ivan Gersi

Renowned Member
May 29, 2016
82
7
73
54
I have node (ext4) with several VM machine. One VM is Debian with 1.4TB disk (Ide, raw). Backup of this machine have still over 1TB despite the fact VM has already only 400GB data.
I`ve tried to use trim(fstrim) with this result (discard is checked on VM`s disk).
root@pve6:~# fstrim -av
/var/lib/vz: 2.2 MiB (2314240 bytes) trimmed on /dev/mapper/pve-vz
VM machine.
Code:
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       1.4T  431G  926G  32% /
udev             10M     0   10M   0% /dev
tmpfs           1.6G  171M  1.4G  11% /run
tmpfs           4.0G  4.0K  4.0G   1% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           4.0G     0  4.0G   0% /sys/fs/cgroup


Next backup has 1.03TB.
How can I save backup size in this VM?
 
Of course I did it on node. not on VM. I thought I have to do it this way.
Mea culpa.
Now it seem to be ok.
fstrim -av
/: 939.8 GiB (1009099677696 bytes) trimmed
 
  • Like
Reactions: UdoB

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!