Linux inode exhaustion Failure handling

Source: Internet
Author: User
Linux system Everything is a file, the system does not use the file name, and use the Inode number to identify the file, a file must occupy an inode, because each file must have an inode, it is possible that the inode has been exhausted, but the hard disk is not full of circumstances, This can cause new files to be created on the hard disk.
First, prepare the lab environment, create a new hard disk, use the Fdisk tool to build a partition/dev/sdb1 with approximately 5M of memory, format it, and mount it to the/data directory, using the DF command with the "-I" option to confirm the usage of nodes in the partition.


Then write a test program that runs the program to drain all the available I nodes in the/DEV/SDB1 partition.



Then, when the I node is exhausted, when a new file is created in the/DEV/SDB1 partition, a "No space on the device" error message appears. By using the DF command, you can see that there is virtually any remaining space available in the/DEV/SDB1 partition, but you cannot create a new file because the node is exhausted.

Finally fix I node exhaustion failure, delete the small file that consumes a lot of I node.

Linux inode exhaustion Failure handling

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.