Xfs文件系统下增加inode
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.
Xfs文件系统下增加inode
终于遇到了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
-
5
Linux的inode的理解 2015-09-23 17:53:00 http://www.cnblogs.com/itech/archive/2012/05/15/2502284.html 一、inode是什么?...
-
9
创建XFS文件系统 使用 mkfs.xfs 可以将存储设备格式化为XFS格式 dd if=/dev/zero of=~/xfs.img bs=1M count=4096 mkfs.xfs ~/xfs.img meta-data=/home/lujun9972/xfs.img isize=512...
-
6
xfs文件系统修复 xfs_repair 2021-07-20 16:53:00 https://blog.csdn.net/theoldsod2000/article/details/105988902/ ...
-
4
Copy link KevinWang15 commented
-
6
Welcome to LWN.net The following subscription-only content has been made available to you by an LWN subscriber. Thousands of subscribers depend on LWN for the best news from the Linux and free software communities....
-
5
tmpfs inode corruption: introducing inode64 A few months ago I got a report from a service owner that their service was crashing when trying to access certain files stored in tmpfs. This service provides a way to do things like bui...
-
5
V2EX › Linux inode 100%见过没? TigerGod · 3 小时 32 分钟前 · 723 次点击 ...
-
5
inode 是一个 Linux 非常重要的知识点,了解它有利于我们对 Linux 系统的进一步了解。今天无意中看到了阮一峰老师对 inode 做的一个博客笔记,我这里简单的记录下学到的东西。存储单位:扇区...
-
5
Oracle故障处理:空间利用率和inode利用率都达到100% 原创 接到同事电话,告知一客...
-
8
器→工具, 工具软件 Linux文件系统inode详解
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK