Created
August 4, 2014 05:15
-
-
Save nntsugu/25fcca536f825182f68a to your computer and use it in GitHub Desktop.
duで見つからないファイルはlsofで探そう - 見えないファイルにディスクが圧迫されてる時とかね ref: http://qiita.com/nntsugu@github/items/3e492f1ea164568ae259
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ df -h | |
Filesystem Size Used Avail Use% Mounted on | |
/dev/mapper/vol_hoge | |
26G 19G 5.1G 79% / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ du -hc / | |
(略) | |
4.0G total |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# lsof | head -n1 | |
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME | |
# lsof | grep dele | |
(略) | |
java 7575 user01 1w REG 253,0 15377397982 5834380 /path/to/log/hoge_2014-05-24.log (deleted) | |
java 7575 user01 2w REG 253,0 15377397982 5834380 /path/to/log/hoge_2014-05-24.log (deleted) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ls -al /path/to/log/hoge_2014-05-24.log | |
-rw-r--r-- 1 user01 group01 0 Jul 27 13:40 /path/to/log/hoge_2014-05-24.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment