国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > Linux > 正文

xfs文件系統提示沒有磁盤空間錯誤的解決方法

2020-07-10 11:40:56
字體:
來源:轉載
供稿:網友

日前,同事反饋一個問題:在一個大分區(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的不用擔心這個問題 :)

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 建湖县| 米泉市| 江口县| 琼海市| 合江县| 永昌县| 荥经县| 莱州市| 腾冲县| 新宾| 定西市| 西城区| 万宁市| 九龙城区| 北京市| 织金县| 五莲县| 沂南县| 拉孜县| 日喀则市| 日照市| 怀来县| 江城| 昌邑市| 儋州市| 马鞍山市| 邢台县| 靖江市| 彭泽县| 巨野县| 宝山区| 溧水县| 盐池县| 仁化县| 汉中市| 永丰县| 沈丘县| 黔南| 临泉县| 临泉县| 夏邑县|