[SOLVED] Disk space help


Active Member
Jun 14, 2019
Hi forum,
I have install a lxc container and the disk of it have used all free space of root partition. But now I can't start the container to fstrim / to reduce the disk space usage.
Log shows there is no free space, but I have 2G left on /.

Here is the df -h:
root@node-cn-hk:/# df -h
Filesystem Size Used Avail Use% Mounted on
udev 32G 0 32G 0% /dev
tmpfs 6.3G 612M 5.7G 10% /run
/dev/sda5 92G 90G 0 100% /
tmpfs 32G 37M 32G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 32G 0 32G 0% /sys/fs/cgroup
/dev/sda1 453M 99M 328M 24% /boot
/dev/sda6 821G 785G 0 100% /home
/dev/fuse 30M 48K 30M 1% /etc/pve
tmpfs 6.3G 0 6.3G 0% /run/user/0

Start Log:
Oct 20 12:00:19 node-cn-hk pveproxy[1704]: starting 1 worker(s)
Oct 20 12:00:19 node-cn-hk pveproxy[1704]: worker 11809 started
Oct 20 12:00:19 node-cn-hk pveproxy[11565]: Warning: unable to close filehandle GEN4 properly: No space left on device at /usr/share/perl5/PVE/APIServer
Oct 20 12:00:19 node-cn-hk pveproxy[11565]: error writing access log

I can't get any free space from here and there, I think I should make the lxc start and I can run the command " fstrim / ", or is there any way to run this command on a raw disk file?
Last edited:
Problem solved.
Use tune2fs to set reserved blocks percentage to 1%:
tune2fs -m 1 /dev/sda5

and then you can start the container now.


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!