因小图片较多,导致Inode占用100%,磁盘空间虽然还有82%但是无法写入数据,导致minio各节点无法同步,最终导致节点无法启动
xfs硬盘格式inode空间占比(默认为5%)
如果是ext4无法动态调整inode空间占比,所以需要将ext4改为xfs(xfs支持动态调整inode空间占比),这里就不说怎么改了,只说xfs调整inode空间。
# df -i -kh /data
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/centos-root 48M 142K 48M 1% (总共就48M,已经使用了142K)
# xfs_info /data
meta-data=/dev/mapper/centos-root isize=512 agcount=4, agsize=6233600 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=0 spinodes=0
data = bsize=4096 blocks=24934400, imaxpct=25(我的系统现在是25)
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal bsize=4096 blocks=12175, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
# xfs_growfs -m 30 /data
meta-data=/dev/mapper/centos-root isize=512 agcount=4, agsize=6233600 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=0 spinodes=0
data = bsize=4096 blocks=24934400, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal bsize=4096 blocks=12175, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
inode max percent changed from 25 to 30(从25扩容到30)
xfs文件系统动态扩容inode空间占比为10%(后续可以根据存储情况调整)
# xfs_info /data
meta-data=/dev/mapper/centos-root isize=512 agcount=4, agsize=6233600 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=0 spinodes=0
data = bsize=4096 blocks=24934400, imaxpct=30(现在扩容到30)
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal bsize=4096 blocks=12175, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
# df -i -kh /data
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/centos-root 58M 142K 57M 1% / (容量已经从原来的48M扩容到58M,说明扩容成功)
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有