万象系统之家 - 系统光盘下载网站!

当前位置:万象系统之家 > 系统教程 > Linux提示没有磁盘空间

Linux下使用xfs时提示没有磁盘空间的情况该如何处理

时间:2014-12-18 15:40:13 作者:qipeng 来源:万象系统之家 1. 扫描二维码随时看资讯 2. 请使用手机浏览器访问: https://m.xitongzhijia.net/xtjc/20141218/32898.html 手机查看 评论

  在进行Linux系统操作的时候,使用xfs文件系统时会出现没有磁盘空间提示,可空间明明还有剩,那么遇到这种情况该如何解决呢?下面小编就给大家介绍下Linux中使用xfs文件系统是出现没有磁盘空间错误提示的解决方法。

 Linux下使用xfs时提示没有磁盘空间的情况该如何处理

  日前,同事反馈一个问题:在一个大分区(24T)中使用xfs文件系统,用来做历史文件备份,突然提示没有磁盘空间错误,先检查下:

  代码如下:

  [root@imysql ~]# df -hT

  Filesystem Type Size Used Avail Use% Mounted on

  /dev/sdb1 xfs 19T 16T 2.4T 88% /backup《/p》 《p》[root@imysql ~]# df -hi

  Filesystem Inodes IUsed IFree IUse% Mounted on

  /dev/sdb1 9.3G 3.4M 9.3G 1% /backup

  可以看到,不管是物理空间,还是inode,都还有很多余量,那为何还会报告磁盘空间不够呢?

  查询了下XFS FAQ,发现有一段:

  代码如下:

  Q: What is the inode64 mount option for?《/p》 《p》By default, with 32bit inodes, XFS places inodes only in the first 1TB of a disk. If you have a disk with 100TB, all inodes will be stuck in the first TB. This can lead to strange things like “disk full” when you still have plenty space free, but there‘s no more place in the first TB to create a new inode. Also, performance sucks.

  To come around this, use the inode64 mount options for filesystems 》1TB. Inodes will then be placed in the location where their data is, minimizing disk seeks.

  Beware that some old programs might have problems reading 64bit inodes, especially over NFS. Your editor used inode64 for over a year with recent (openSUSE 11.1 and higher) distributions using NFS and Samba without any corruptions, so that might be a recent enough distro.

  大意就是xfs文件系统会把inode存储在磁盘最开始的这1T空间里,如果这部分空间被完全填满了,那么就会出现磁盘空间不足的错误提示了。解决办法就是在挂载时,指定 inode64 选项:

  代码如下:

  mount -o remount -o noatime,nodiratime,inode64,nobarrier /dev/sdb1 /backup

  P.S,磁盘空间小于1T的不用担心这个问题 :)

  上面就是Linux下使用xfs文件系统提示没有磁盘空间错误的解决方法介绍了,如果你出现了该错误提示,而又不知道该如何处理的话,不妨试试该方法吧。

发表评论

0

没有更多评论了

评论就这些咯,让大家也知道你的独特见解

立即评论

以上留言仅代表用户个人观点,不代表万象系统之家立场

其他版本软件

热门教程

人气教程排行

Linux系统推荐

本站发布的系统仅为个人学习测试使用,请在下载后24小时内删除,不得用于任何商业用途,否则后果自负,请支持购买微软正版系统!

如侵犯到您的权益,请及时通知我们,我们会及时处理,对系统之家有任何投诉或建议,请与管理员联系. QQ:346231061

Copyright2024 万象系统之家(www.maxdo.tech) 版权所有 沪ICP备2021023961号-5