.. 1 Prompt the disk is full df-ht not full
May I ask why?
Maybe the
inode is full because there are too many small files on the machine.
Use Df-hi to view
.. 2 hint No disk space is full
.. 2.1 Problem Description:
Found to be too many log files, after deletion, df-h usage or 99%,DU-HS display or not reach the total capacity of the disk
.. 2.2 Analysis
Although the file was Rm-f logname, the volume was not actually released because a process opened the file.
.. 2.3 Workaround
..
1 Service Restart: 2 Do not delete, directly redirect the file to empty
Solution:
.. 3 Description File Deletion principle
The file name is stored in the block area of the parent directory, and when a file is deleted, only the data of the block area of the parent directory is deleted, the file real inode and block have not been deleted, so there is a possibility of recovery. However, when the system finds that no file name points to the inode, it deletes the inode and the block corresponding to the inode, updating the inode map block map
In-depth: controlled by two parameters
I_link = = Number of hard connections
I_count = = Process Call
File Delete condition, i_link and I_count = = 0
No space Left on device (summary)