LoginSignup
0
0

More than 3 years have passed since last update.

No space left on deviceでinodeは問題ないのに容量の原因ファイルが見つからない

Last updated at Posted at 2019-06-19

dfduが合わない場合です。
ファイルは無くなっているがオープン中のファイルが容量を使っている可能性

ls -al /proc/*/fd/* | grep deleted

lsof | grep "(deleted)"

でsizeの大きくて心当たりのあるコマンド名のPIDをみつける

find /proc/<PID>/fd -ls 2> /dev/null | grep '(deleted)'

プロセスが動いていたら止めたら消えるかも?
止められないしどうしようもないなら以下を試してファイルのサイズを0にするのを試したり。

truncate -s 0 /proc/<PID>/fd/XXX

find-and-remove-large-files-that-are-open-but-have-been-deleted

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0