Linux file system

Source: Internet
Author: User

Nine Practical problems

in a low-profile Linux server (memory, small hard disk) in the/data partition to create files, the system prompted insufficient disk space, with the df-h command to see the disk usage, found that the/data partition only used 66%, and 12G of the remaining space, There is no such problem. later, using Df-i to view the index node (inode) of the/data partition, it was found to be full (iused=100%), which prevented the system from creating new directories and files.  

Find Reason:

There are a very large number of small-byte cache files in the/data/cache directory, with no more blocks, but a lot of inode.  

Solution:
1. Delete some files in the/data/cache directory and release part of the inode from the/data partition.
2. Use a soft connection to connect the Newcache directory in the free partition/opt to the/data/cache, using the inode of the/OPT partition to alleviate the problem of insufficient/data partition Inode:
  ln-s/opt/newcache/data/cache  

Summary:

Inode (inode numbers are the main inode tables)

Inode ID uniquely identifies a file (inside a file system)

Inode when you're done, the file can't be created.

Inode Set Large: You can create multiple files.

Inode Set Small: You can create very few files.

Block

Block Large set: High efficiency, low utilization.

Block Small setting: low efficiency and high utilization rate.

Linux file system

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.