We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
/home/admin/tmp using up too much space/inodes
/home/admin/tmp using up too much space/inodes
I noticed my Ubuntu 14.04 web server stopped serving pages because it had no more disk space left for caching so i started looking for the issue.
I seem to have some free space on disk, let's check inodes.
I seem to be using them all so I checked which directory is using the most and I found:
Is it okay to just delete everything inside tmp? but before doing that how can I find out what caused the issue to prevent it from happening again?
When I try to list the tmp directory, I'm just seeing a bunch of files called "sess_g0ks0nh06o2h243bjka4b3cvq1" . These look to be session files for my opencart online shop. I've been running the server for about 1 year now, is this normal to happen over time and I need to clear that directory manually?
Thank you
Code: Select all
root@domain:/# df -h
Filesystem Size Used Avail Use% Mounted on
udev 487M 4.0K 487M 1% /dev
tmpfs 100M 388K 100M 1% /run
/dev/disk/by-label/DOROOT 30G 21G 7.0G 75% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 498M 0 498M 0% /run/shm
none 100M 0 100M 0% /run/user
Code: Select all
root@domain:/# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
udev 124520 402 124118 1% /dev
tmpfs 127234 374 126860 1% /run
/dev/disk/by-label/DOROOT 1966080 1965882 198 100% /
none 127234 2 127232 1% /sys/fs/cgroup
none 127234 2 127232 1% /run/lock
none 127234 1 127233 1% /run/shm
none 127234 2 127232 1% /run/user
Code: Select all
root@domain:/# find / -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -n
1781695 /home/admin/tmp
When I try to list the tmp directory, I'm just seeing a bunch of files called "sess_g0ks0nh06o2h243bjka4b3cvq1" . These look to be session files for my opencart online shop. I've been running the server for about 1 year now, is this normal to happen over time and I need to clear that directory manually?
Thank you
Re: /home/admin/tmp using up too much space/inodes
You can delete all sessions insid tmp via command
And you can make script and add it to cron.. ;-)
Code: Select all
find /home/*/tmp -type f -name 'sess_*' -ctime +5 -delete
Re: /home/admin/tmp using up too much space/inodes
How to create a cron from this
Many thanks
Many thanks