The lack of impact of freeing up VM space on the Proxmox node

Mohammadl

New Member
Aug 5, 2024
4
0
1
Hello, When I delete files or free up space within a virtual machine (VM), it doesn't directly translate to an equivalent decrease in the overall disk usage of the Proxmox node . it seems that it does not affect on proxmox node. what can i do?
 
I just looked and saw that the disk related to the VM has an option called "discard" that is not enabled. Is it possible to enable it now? Vm needs to be rebooted, right?
 
Yes, you can enable it. Please read the documentation above.
 
Thank you, I enabled Discard Option and rebooted the VM, but nothing changed, i then used command `fstrim -a -v` inside vm and then it worked! . I don't know why discard Option did not work But that command worked instead .
 
The fstrim command normally runs periodically, but won't do what you expected it to do without discard enabled. See

```
systemctl cat fstrim.timer
```
 
Last edited:
  • Like
Reactions: Mohammadl