正在停止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文件体系提示出有磁盘空间谬误的处理要领引见了,若是您呈现了该谬误提示,而又没有知叙该若何解决的话,没关系尝尝该要领吧。
相关文章