Skip to content

No space left on device

设置crontab 时提示No space left on device
用df -k 检查还有空间

用df -i  显示 /var 已占用100%,如果inode耗尽,则系统上将不能创建文件。

在/var/spoo/clientmqueue/下有超多的文件 ls 半天没反应
用rm -rf * 会自动跳出root,用xargs来解决。

# cd /var/spool/clientmqueue

# ls | xargs rm -f

解决办法:  将crontab里面的命令后面加上> /dev/null 2>&1

Posted in LINUX, 技术.

One Response

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Leo Chen says

    Thanks a lot. It helps me a lot !!

Some HTML is OK

or, reply to this post via trackback.