因磁盤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