2

Xfs文件系统下增加inode

 8 months ago
source link: https://bajie.dev/posts/20231221-inode_xfs/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Xfs文件系统下增加inode

2023-12-21 1 分钟阅读

终于遇到了inode不够了,细碎文件爆棚了,导致inode不够了。

XFS 文件系统本质上是没有 inode 的限制的

只有一个缺省的限制,使用现有文件系统的 25% 来存储 inode 信息。

这个缺省的配置在大多数情况下都是够用的。

某些情况下不够用,可以删除一些文件来缓解。

终极办法是增大这个 25% 的阈值来解决:

root@zombie:~# xfs_info /srv/backup/
metadane=/dev/mapper/slow-backup isize=256    agcount=17, agsize=2621440 blks
        =                       sectsz=512   attr=2
data    =                       bsize=4096   blocks=44564480, imaxpct=25
        =                       sunit=0      swidth=0 blks
naming  =version 2              bsize=4096  
 ascii-ci=0
log     =internal               bsize=4096   blocks=20480, version=2
        =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime=brak                   extsz=4096   blocks=0, rtextents=0

上面,我们看到 imaxpct=25 ,就是这个配置了。

增大的方法:

xfs_growfs -m 30

这样就增大到 30% 了


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK