About the problem of inodes occupancy 100% and how to solve it

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.