Linux Inode runs out of no space

Source: Internet
Author: User

A case of an application of the inode is that when the file is created, there is not enough space to see through DF to find that actually used is only 20%, and here is why Du and DF see the same disk when the size is inconsistent (you can try it definitely inconsistent)

First, the inode exhausted the poor is certainly the inode table is not free, how to solve???

Find./-name "*.log*" |xargs-l rm can be deleted if too many small files may error arglist too long

Find./-name "*.log*"-exec rm-rf {} \; can also be deleted, all are said to delete the file one by one as parameters passed

And if you want to not format the hard disk (MKFS), you can delete a portion and then reassign the connection to another file system.

Ln-s/newcache/opt/newcache This access is the I node that uses the new file system

If you are involved in the early consideration of the size of the hard disk storage data, you can consider the following two points: if there are many small files, when creating a hard disk can be adjusted block smaller. If the file is particularly large, such as video, you can adjust the block larger.
How to increase the number of Inode only umount the file system and then Mkfsmkfs ext3/dev/sda1 [-N number-of-inodes] directly specify the required inode number or mkfs ext3/dev/sda1 [-I How to calculate the number of Bytes-per-inode]inode: typically hard disk size/block (i.e., a sector)


Linux Inode runs out of no space

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.