因磁盘inode被用光招致"No space left on device"

因磁盘inode被用光导致"No space left on device"
/data目录下无法创建文件
> touch a
touch: cannot touch `a': No space left on device

 

磁盘只使用了61%
> df -h

Filesystem Size Used Avail Use% Mounted on
...
/dev/sda5 817G 466G 310G 61% /data
...
inode被用光
> df -i

Filesystem Inodes IUsed IFree IUse% Mounted on
...
/dev/sda5 54378496 54378496 0 100% /data
...

  

解决办法:删除无用文件,释放inode

总结:看来对于大量小文件的应用来说,inde的可用数量也是要监控的。

 

--end