1, with DF Check discovery/root directory free space is 0
[[Email protected]/] #df-H//view system disk space
2, with du inspection found that each directory occupies little space, there is about 3g of space inexplicably lost.
[[Email protected]/]# du-s * |SORT-NR |head//View the top 10 files
3, with lsof examination only found the reason is that there is a file is deleted, and the process is still alive, resulting in space-occupying phenomenon
[[Email protected]/]# lsof |grep Delete
After the process is killed, the space is freed according to the process number listed by Lsof.
This view out of the process is more, a process to kill the more troublesome, you can use the following command to kill all the detected processes at once
Lsof |grep delete| Xargs Kill-s 9
Finally df-h view, the deleted files are occupied by the disk has been released.
Troubleshooting Linux Delete files without releasing the disk