Home Archives Categories Tags Docs

Linux 磁盘 needs inodes on the / filesystem 问题

发布时间: 更新时间: 总字数:273 阅读时间:1m 作者: 分享

Linux 磁盘 needs inodes on the / filesystem 问题

问题描述

安装软件包,报如下错误:

Transaction check error:
  installing package git-1.8.3.1-20.el7.x86_64 needs 1058 inodes on the / filesystem
  installing package which-2.20-7.el7.x86_64 needs 1070 inodes on the / filesystem
  installing package vim-enhanced-2:7.4.160-5.el7.x86_64 needs 1077 inodes on the / filesystem
  installing package openssl-devel-1:1.0.2k-16.el7.x86_64 needs 2786 inodes on the / filesystem

Error Summary

df -lh查看正常,df -i看到IUse100%

[root@bkdata-1 yum]# df -i
Filesystem                        Inodes   IUsed    IFree IUse% Mounted on
/dev/xvda1                      31456704 1883058 29573646    6% /
devtmpfs                         4091621     324  4091297    1% /dev
tmpfs                            4097490       4  4097486    1% /dev/shm
tmpfs                            4097490     689  4096801    1% /run
tmpfs                            4097490      16  4097474    1% /sys/fs/cgroup
/dev/mapper/vg_bkdata-lv_bkdata   307200  304970     2230  100% /data
[root@bkdata-1 ~]# df -i /data
Filesystem                      Inodes  IUsed IFree IUse% Mounted on
/dev/mapper/vg_bkdata-lv_bkdata 307200 304970  2230  100% /data

需要扩展 inode 的值

查看 inode 大小

  • 查看inode的大小:dumpe2fs -h /dev/sda2 | grep «Inode size»
  • 查看inode的数量:dumpe2fs -h /dev/sda2 | grep «Inode count»
  • 查看block的大小:dumpe2fs -h /dev/sda2 | grep «block size»
  • 查看block的数量:dumpe2fs -h /dev/sda2 | grep «block count»
相关文章
最近更新
最新评论
加载中...