The deleted memory from the VM is still visible in proxmox

GkUs3r

New Member
May 13, 2024
2
0
1
When I delete folders or files from the VM using the command "rm -r" from proxmox, there is no loss of space, the VM itself loses space, but the main server still has the same amount of memory
 
That is because the unused file system blocks still remain stored, since on a physical disk there is no use in zeroing these out.

On a virtual disk however there is an option to discard these unused blocks. Enable the Discard option on the virtual hard disk(s) of the VM. Then run fstrim -av within the VM to discard the unused file system blocks.
 
Last edited:
  • Like
Reactions: Kingneutron

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!