toriqulislam

Member
Jun 2, 2014
16
0
1
cPanel Access Level
Root Administrator
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

Code:
# df -i
Filesystem       Inodes    IUsed   IFree IUse% Mounted on
/dev/vda1      10485760 10448201   37559  100% /
tmpfs           2058122        1 2058121    1% /dev/shm
I also run the df -h and I got this
Code:
# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1       158G   89G   61G  60% /
tmpfs           7.9G     0  7.9G   0% /dev/shm
I'm also getting this error message when I'm trying to log in to WHM/cPanel
Code:
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,243
463
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.
 

toriqulislam

Member
Jun 2, 2014
16
0
1
cPanel Access Level
Root Administrator
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,243
463
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:

Code:
cd /root
vi count_files.sh
Add this input:

Code:
echo $(ls -a "$1" | wc -l) $1
Save the file, then run:

Code:
chmod 0755 count_files.sh
find . -type d -print0 | xargs -0 -n1 /root/count_files.sh | sort -n
Thank you.
 

toriqulislam

Member
Jun 2, 2014
16
0
1
cPanel Access Level
Root Administrator
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,243
463
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.