Hello everyone.
We have checked the forum extensively but have not found a good answer to our problem.
Our system is based on a Orange Pi Zero Plus (512 MB), and it is running nicely.
However, after some time, (10 - 15 days from the last boot) or /tmp directory gets full and most of the system is not operational. Only solution we have found for the moment is rebooting the system.
This is the output of df -h in one of our systems which only shows 7% usage. This usage figure increases day by day.
Filesystem Size Used Avail Use% Mounted on
udev 174M 0 174M 0% /dev
tmpfs 49M 5.4M 43M 12% /run
/dev/mmcblk0p1 2.0G 1.6G 333M 83% /
tmpfs 241M 12K 241M 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 241M 0 241M 0% /sys/fs/cgroup
tmpfs 241M 16M 226M 7% /tmp
tmpfs 10M 0 10M 0% /home/iawot/ficheros_ftp
/dev/zram0 49M 27M 19M 60% /var/log
tmpfs 49M 0 49M 0% /run/user/0
The contents of the /tmp directory is:
ls -la /tmp
total 8
drwxrwxrwt 8 root root 180 Jul 18 13:28 .
drwxrwxrwt 22 root root 4096 Jan 17 02:04 ..
-rw------- 1 root root 31 Jul 16 11:08 armbian-hardware-optimization.hhlnrd
drwxrwxrwt 2 root root 40 Jul 16 11:08 .font-unix
drwxrwxrwt 2 root root 40 Jul 16 11:08 .ICE-unix
drwx------ 3 root root 60 Jul 16 11:08 systemd-private-98788f87752540c4a5cf054115c5741a-haveged.service-6uUDLd
drwxrwxrwt 2 root root 40 Jul 16 11:08 .Test-unix
drwxrwxrwt 2 root root 40 Jul 16 11:08 .X11-unix
drwxrwxrwt 2 root root 40 Jul 16 11:08 .XIM-unix
and inside systemd-private-98788f87752540c4a5cf054115c5741a-haveged.service-6uUDLd there is only an empty directory named tmp.
So my question is:
What is the proper way of clearing de /tmp directory?
We have tried to simply erase everything inside it with
rm /tmp/* -r
but it seems that something (invisible) is still there since df -h still reports the /tmp is using 241 MB
Thanks!