Post

ファイル数がいっぱいでファイルを作成できない

事象

OSからファイルを作成できるスペースがないか通知が来た

/home/app/.rbenv/libexec/rbenv-init: line 152: cannot create temp file for here-document: No space left on device

ファイル数を確認すると100%近くになっている

$ df -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/xvde 524288 119921 404367 99% / tmpfs 199647 1 199646 1% /dev/shm

対応

maildrop直下のメールを削除

# cd /var/spool/postfix; sudo find . -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -n -> 404569 maildrop # find /var/spool/postfix/maildrop/ -type f -print | xargs rm -f

関連資料

No space left on device とエラーが出るときの対処法 - Qiita

This post is licensed under CC BY 4.0 by the author.