Monday, June 30, 2014

Linux: Deleted a File and Its NOT Freeing Up Space?

There is only one reason for it - the file is held by a process.

To fix the issue:

1) Find which process is holding it.

Check open files and return the process using an unlinked file (deleted file)
# lsof +L1

2) Kill the process

# kill -9 <pid>

For a graceful kill but can/may take a while.

# kill -15 <pid>
  • Related Links Widget for Blogspot

No comments: