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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.