Storage full but not in reality

Hypockamp

Member
Feb 16, 2021
2
0
6
34
France
Hello ! First of all, sorry for my bad English ...

I have a small (big hahaha!) Concern on my proxmox. I am a beginner, I try to train myself.

My storage on the data center summary appears full. I only have one VM, I actually passed large files on it but later deleted ...
Is there a way to force proxmox to refresh or clear the storage cache? This completely blocks my VM ...


Thank you in advance !proxmox.JPG
 
Hello !

This :

Code:
Filesystem      Size  Used Avail Use% Mounted on
udev            7.8G     0  7.8G   0% /dev
tmpfs           1.6G  161M  1.5G  11% /run
/dev/md1        915G  909G     0 100% /
tmpfs           7.9G   40M  7.8G   1% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           7.9G     0  7.9G   0% /sys/fs/cgroup
/dev/md0        281M   67M  196M  26% /boot
/dev/fuse        30M   16K   30M   1% /etc/pve
tmpfs           1.6G     0  1.6G   0% /run/user/0


EDIT :

I temporarily found a solution to free up some space, but that doesn't solve the concern that the deleted data from the VM does not appear to actually be deleted from the disk ...
I had two virtual disks on my VM, emptied the DATA disk and deleted it from my VM, then deleted disks in the LVs. I then resized my primary drive so that it can also collect the data ... It's not ideal, so I'm still trying to figure out my mistake and be able to "clear the cache" of my drives. .. Thank you !! :)
 
Last edited:
If you are using "LVM thin" or any other thin provisioned storage you need to make sure you checked the "discard" checkbox in the ProxmoxGUI for the virtual HDD is checked. Also you need to make sure that your guest OS is using discard/TRIM, otherwise data won't be really deleted because no TRIM commands are received. For linux you would need to set the option "discard" in "/etc/fstab" or create a cron that runs fstrim -a regularily (for exmaple once a day).
 
Last edited:

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!