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

Source: Internet
Author: User

#
DF shows no file systems processed
Posted by John Quaglieri on July-07:26 AM
A df-m command on the system shows:

Df-m
Df:no File Systems processed

On Openvz file systems is mounted on the hostnode. In order for OpenVZ to know about the filesystems it Reads/etc/mtab (which shows the data from/proc/mounts).

To fix the issue run

Cat/proc/mounts >/etc/mtab


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

Find the space is sufficient, and then df-i view the next inodes, found that the root directory inodes value usage is 100%

Workaround: Check with the following script to see in which directory the most files are below:

For i in/*; do echo $i; Find $i | 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; Find $i | Wc-l; Done

The/VAR/SOPPL directory was eventually found to be the most. And then further determined that there are millions of files under the/var/spool/amavisd/quarantine 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 files in this directory; Use the Xargs command to delete a larger number of files:

ls | Xargs-n RM-RF

Rm-rvf/var/spool/postfix/maildrop

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.