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