Check how is going the disk
root@pve1:~# pct exec 100 -- df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/pve-vm--100--disk--0 20G 16G 3.1G 84% /
Return deleted-file space to the storage pool (safe to run anytime):
pct fstrim 100
See what's using the 16G:
pct exec 100 -- du -xsh /var/lib/docker /var/log /root /opt 2>/dev/null
pct exec 100 -- docker system dfClean up. All of this is safe, because images used by your 7 running containers are kept:
pct exec 100 -- docker image prune -a -f # removes the unused images
pct exec 100 -- docker builder prune -a -f # removes the ~500MB build cache
pct exec 100 -- journalctl --vacuum-size=200M # shrinks the system logs if theSee what's using /root:
pct exec 100 -- sh -c 'du -sh /root/* /root/.[!.]* 2>/dev/null | sort -h | tail'Then trim and check again:
pct fstrim 100
pct exec 100 -- df -h /
Had some vscode server stuff taking so much space
delete only the old server versions and keep the newest one:
pct exec 100 -- sh -c 'du -sh /root/.vscode-server/* /root/.vscode-server/cli/servers/* 2>/dev/null'
pct exec 100 -- sh -c 'cd /root/.vscode-server/cli/servers && ls -t | tail -n +2Then trim and check the result:
pct fstrim 100
pct exec 100 -- df -h /Took 6.7GB free!!