T Talha Well-Known Member Jan 13, 2020 57 0 46 30 Sep 8, 2022 #1 Hi, Disk usage is 92% on a server with 100GB disk capacity, but I only use 27GB in the VM. Can someone help me please?
Hi, Disk usage is 92% on a server with 100GB disk capacity, but I only use 27GB in the VM. Can someone help me please?
fstrankowski Renowned Member Proxmox Subscriber Nov 28, 2016 100 23 83 Hamburg Sep 8, 2022 #2 You gotta enable discard in the VM disc mount options or run fstrim inside the VM to reclaim unused disc space. Last edited: Sep 8, 2022
You gotta enable discard in the VM disc mount options or run fstrim inside the VM to reclaim unused disc space.
T Talha Well-Known Member Jan 13, 2020 57 0 46 30 Sep 8, 2022 #3 norderstedt said: You gotta enable discard in the VM disc mount options or run fstrim inside the VM to reclaim unused disc space. View attachment 40882 Click to expand... Thanks. How can I do this for Linux Containers (CT)?
norderstedt said: You gotta enable discard in the VM disc mount options or run fstrim inside the VM to reclaim unused disc space. View attachment 40882 Click to expand... Thanks. How can I do this for Linux Containers (CT)?
fstrankowski Renowned Member Proxmox Subscriber Nov 28, 2016 100 23 83 Hamburg Sep 9, 2022 #4 Talha said: Thanks. How can I do this for Linux Containers (CT)? Click to expand... Oneliner to trim all containers: Code: pct list | awk '/^[0-9]/ {print $1}' | while read ct; do pct fstrim ${ct}; done Reactions: lucius_the and Remarkable-Guille
Talha said: Thanks. How can I do this for Linux Containers (CT)? Click to expand... Oneliner to trim all containers: Code: pct list | awk '/^[0-9]/ {print $1}' | while read ct; do pct fstrim ${ct}; done
Dunuin Distinguished Member Jun 30, 2020 14,796 4,808 290 Germany Sep 9, 2022 #5 Just keep in mind that doing a "pct trim" will lock the LXC for a short time and then backup jobs will fail. I had to disable that oneliner in cron at hours when backup jobs are running.
Just keep in mind that doing a "pct trim" will lock the LXC for a short time and then backup jobs will fail. I had to disable that oneliner in cron at hours when backup jobs are running.