No space left on device

By admin, 7 八月, 2018

当我们发现磁盘空间不够,但df -h显示还有空间的时候,可以看看df -i。这个是查磁盘inode数量的,即磁盘文件的个数。这个数字是在格式化磁盘的时候就定好了的,只能通过删除数量庞大的小文件来解决。

root@iZ62dn8z0plZ:/var/log# touch haha
touch: cannot touch 'haha': No space left on device


root@iZ62dn8z0plZ:/var/log# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            483M     0  483M   0% /dev
tmpfs           100M   13M   88M  13% /run
/dev/vda1        20G   14G  5.1G  73% /
tmpfs           500M  108K  500M   1% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           500M     0  500M   0% /sys/fs/cgroup
cgmfs           100K     0  100K   0% /run/cgmanager/fs
tmpfs           100M   16K  100M   1% /run/user/114
tmpfs           100M     0  100M   0% /run/user/0
tmpfs           100M     0  100M   0% /run/user/1000

root@iZ62dn8z0plZ:/var/log# df -i
Filesystem      Inodes   IUsed  IFree IUse% Mounted on
udev            123503     409 123094    1% /dev
tmpfs           127978     618 127360    1% /run
/dev/vda1      1310720 1310716      4  100% /
tmpfs           127978       6 127972    1% /dev/shm
tmpfs           127978       4 127974    1% /run/lock
tmpfs           127978      18 127960    1% /sys/fs/cgroup
cgmfs           127978      14 127964    1% /run/cgmanager/fs
tmpfs           127978      14 127964    1% /run/user/114
tmpfs           127978       4 127974    1% /run/user/0
tmpfs           127978       4 127974    1% /run/user/1000

评论

Restricted HTML

  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <img src>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。
验证码
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
请输入"Drupal10"