佳木斯湛栽影视文化发展公司

主頁 > 知識庫 > xfs文件系統(tǒng)提示沒有磁盤空間錯誤的解決方法

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

熱門標簽:服務器配置 硅谷的囚徒呼叫中心 電話機器人搭建 解決方案 百度競價點擊價格的計算公式 外呼系統(tǒng) 家政服務網(wǎng)絡 美團

日前,同事反饋一個問題:在一個大分區(qū)(24T)中使用xfs文件系統(tǒng),用來做歷史文件備份,突然提示沒有磁盤空間錯誤,先檢查下:

復制代碼
代碼如下:

[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,發(fā)現(xiàn)有一段:

復制代碼
代碼如下:

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文件系統(tǒng)會把inode存儲在磁盤最開始的這1T空間里,如果這部分空間被完全填滿了,那么就會出現(xiàn)磁盤空間不足的錯誤提示了。解決辦法就是在掛載時,指定 inode64 選項:

復制代碼
代碼如下:

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

P.S,磁盤空間小于1T的不用擔心這個問題 :)

標簽:邢臺 南昌 臨沂 撫州 北海 防城港 韶關 烏蘭察布

巨人網(wǎng)絡通訊聲明:本文標題《xfs文件系統(tǒng)提示沒有磁盤空間錯誤的解決方法》,本文關鍵詞  ;如發(fā)現(xiàn)本文內容存在版權問題,煩請?zhí)峁┫嚓P信息告之我們,我們將及時溝通與處理。本站內容系統(tǒng)采集于網(wǎng)絡,涉及言論、版權與本站無關。
  • 相關文章
  • 收縮
    • 微信客服
    • 微信二維碼
    • 電話咨詢

    • 400-1100-266
    镇沅| 榕江县| 肇东市| 泗洪县| 罗山县| 靖安县| 桓台县| 怀安县| 金堂县| 伊通| 长岛县| 闻喜县| 高安市| 南部县| 延边| 伊通| 高雄县| 宝鸡市| 辽宁省| 宁海县| 开鲁县| 新蔡县| 新安县| 金湖县| 岳普湖县| 毕节市| 张家港市| 胶州市| 油尖旺区| 来凤县| 视频| 高密市| 平凉市| 淅川县| 峨山| 左贡县| 洛川县| 巴塘县| 巴彦县| 九寨沟县| 澎湖县|