System: Centos, a common Linux system can also be used this way.
situation Description: The session file is written, and the connection to the server on the open service is not open, starting to think that disk space is not enough
The first reaction to this error is that the space is full.
Df-h a look but found that there are quite a lot of useless
Df-i saw that inodes space was full.
DF, look.
found that the space is sufficient, and then Df-i looked at the next inodes, found that the root directory inodes value usage is 100%, has been resolved, 9%
Workaround: Check with the following script to see in which directory the most files are below:
For i in/*; Do echo I;findi;findi | Wc-l; Done (if determined to be under a directory, then/converted to the directory absolute path, such as/var/spool, use for I in/var/spool/*; Do echo I;findi;findi | Wc-l; Done
The/VAR/SOPPL directory was eventually found to be the most. And then further determined that there are hundreds of thousands of files under the/var/spool/clientmqueue directory, the machine has been unable to display the normal, and then Baidu looked under this directory is the mail server, processing spam live virus mail quarantine, understand why, delete all the files in the directory Use the Xargs command to delete a larger number of files:
Cd/var/spool/clientmqueue
ls | Xargs rm-f
About the problem of inodes occupancy 100% and how to solve it