Linux inode full causes insufficient disk space for file creation

Source: Internet
Author: User
Tags inode usage

Customer can not mount storage, system exception. Login system, try to manually mount partition, reported failure. Enter the mount point, try to write a file, reported insufficient disk space, first suspect that the system disk space is full:

$ DFFilesystem 1k-blocks used Available use% mountedon/dev/xvda             33030016  10407780  226 22236  32%/tmpfs                   368748         0    368748   0%/lib/init/rwvarrun                  368748    1 368692   %/var/runvarlock                 368748         0    368748   0%/var/lockudev 368748 108    368640   1%/ Devtmpfs                   368748         0    368748   0%/DEV/SHM

Find out if there are no partitions full, see the inode situation:

$ df-iFilesystem inodes iused IFree iuse% mountedon/dev/xvda            2080768 2080768       0  100% /tmpfs                  92187       3   92184    1%/lib/init/rwvarrun                 92187      -   92149 1%    /var/runvarlock                92187       4   92183    1%/var/lockudev                   92187    4404   87783    5%/devtmpfs                  92187       1   92186    1%/DEV/SHM

The inode in the root directory was found to occupy 100%. Therefore, create a directory or file, reported insufficient disk space.


See which directories have inode usage exceptions:


$ for I in/*; do echo $i; Find $i |wc-l; Done


Locate the inode that uses the exception directory, and remove the files that you do not need to use in the directory to resolve the problem.



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.