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