Hard drive cannot write file failure handling when Inode occupies 100%

Source: Internet
Author: User

Fault analysis

Execute df-h command found that space occupies less than 70%, the implementation of Df-hi, found that a partition iuse% value of 100%, indicating that the inode has been used up, should be in some directories exist a large number of small files caused.

Solving method

There are two possibilities for a large number of small file distributions, one is that there are a large number of small files in one or a few directories, and in this case we can use the following command to find the exception directory:

Find/-type d-size +10m

This command is to find a directory size greater than 10M (the larger the directory size, the more files in the directory are represented).
The second possibility is that a large number of small files are distributed in a large number of directories, at which point the command may not find an exception directory, the following commands are required:

CD/
Find * *! -type L | cut-d/F 1 | Uniq-c

This command is to find out the total number of files in the directory and may need to be performed several times until a specific directory is found. For example, the above command found a large number of small files in the/data directory, but the/data/directory also has a lot of directories, this time we need to continue to execute:

Cd/data
Find * *! -type L | cut-d/F 1 | Uniq-c

Until you find the specific directory.

Fault Summary

To monitor the inode occupancy, and to receive the inode alarm should be used in time to locate the problem, and feedback to the corresponding personnel from the source to solve

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.