Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to delete unseen linux large file? #3

Open
darrenfu opened this issue Dec 27, 2015 · 0 comments
Open

How to delete unseen linux large file? #3

darrenfu opened this issue Dec 27, 2015 · 0 comments
Assignees
Labels

Comments

@darrenfu
Copy link
Owner

There were two cases we met:

  • Storm worker log file
  • graphite log file

Find and remove large files that are open but have been deleted on Linux or Unix:

## Works on Linux/Unix/OSX/BSD etc ##
lsof -nP | grep '(deleted)'    
## Only works on Linux ##
find /proc/*/fd -ls | grep  '(deleted)'

To truncate it:

 ## works on Linux/Unix/BSD/OSX etc all ##
> "/path/to/the/deleted/file.name"
## works on Linux only ##
> "/proc/PID-HERE/fd/FD-HERE"

http://www.cyberciti.biz/datacenter/linux-unix-bsd-osx-cannot-write-to-hard-disk/

@darrenfu darrenfu self-assigned this Dec 27, 2015
@darrenfu darrenfu added the linux label Dec 27, 2015
@darrenfu darrenfu reopened this Dec 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant