No space left on device
Please help me to solve this problem.
No space left on device Error Message When turn on the server.
When I checked with df -i I got this
I also run the df -h and I got this
I'm also getting this error message when I'm trying to log in to WHM/cPanel
# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/vda1 10485760 10448201 37559 100% /
tmpfs 2058122 1 2058121 1% /dev/shmI also run the df -h and I got this
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 158G 89G 61G 60% /
tmpfs 7.9G 0 7.9G 0% /dev/shmI'm also getting this error message when I'm trying to log in to WHM/cPanel
Internal Server Error
500
failed to open session lockfile: FILE=/var/cpanel/sessions/raw/:qqY_2_a5UNfCp1c8lrrCF3Uo69L5HOk0GwbOxBpajgeckKstrk03A2qWQZIx3ifW.lock, No such file or directory at /usr/local/cpanel/Cpanel/Session.pm line 238.-
Hello :) Your server is out of inodes (number of files on your system). You will need to contact your hosting provider to have them increase the inodes available to your VPS. Thank you. -1 -
We are using server from an un-managed service provider. Even after that I asked for support and they said they are not going to help on this. Can't reach our System Administrator right now. So anything that can help to fix this will be great for us. Thanks. 0 -
You can try searching for directories with large number of files, and then remove any unnecessary files to free up inodes. For example, the following instructions found on a third-party website might be helpful for finding where the inode usage is coming from: cd /root vi count_files.sh
Add this input:echo $(ls -a "$1" | wc -l) $1
Save the file, then run:chmod 0755 count_files.sh find . -type d -print0 | xargs -0 -n1 /root/count_files.sh | sort -n
Thank you.0 -
Thank you for your help. I also tried your method but can't solve it. We have been suffered by this about 2 days. But after many tries I was able to reach our System Administrator and he solved the problem. BTW Is there anyway to prevent this problem so it can't be happen in the future? Is there any automatic way to delete those unnecessary files? Thanks. 0 -
[quote="toriqulislam, post: 1709141">Is there any automatic way to delete those unnecessary files?
There's no guarantee that any file is unnecessary. It depends which files your system administrator removed to resolve the issue. The best way to resolve the issue is to have your hosting provider increase the inodes available to your VPS. Thank you.0
Please sign in to leave a comment.
Comments
5 comments