Clean up zombie files and release server disk

On Linux servers, we often encounter this kind of problem. Obviously the server disk space is still used up, but when checking the utilization rate, it is almost full. At this time, we need to check whether it is caused by zombie files.

1. What is a zombie file

Zombie files refer to files that have been deleted by the server but cannot be released due to being called by some processes. As shown below.
Insert picture description here

2. Related inspections

  • View disk usage df -TH
  • View the root directory occupancy du -sh /
  • Check zombie information lsof |grep deleted

3. Zombie handling

Normally stop or kill the service process occupying these files, or restart the server.

Guess you like

Origin blog.csdn.net/DearestFriend/article/details/108573868