首页 > 解决方案 > Linux process holding deleted file space

问题描述

I have a process which is accessing a file. When I delete the file from the file system the space is not freed. when I do lsof | grep deleted I can see the process is holding the deleted file.

I tried to kill the process through kill -9 <pid> my application rebooted and still the space is not recovered back.

After reboot if I try lsof | grep deleted I cannot see any process holding the deleted file. But the free space is not reflected properly.

Is there any way to recover the space of a deleted file if the process no longer available or application rebooted?

标签: linuxfile-descriptorlsof

解决方案


推荐阅读