濮阳杆衣贸易有限公司

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

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

熱門標(biāo)簽:如何找電銷機(jī)器人 電銷機(jī)器人怎么打卡 無錫ai智能語音電銷機(jī)器人廠家 濟(jì)南智能語音電銷機(jī)器人加盟 河南語音電銷機(jī)器人加盟公司 易聯(lián)系統(tǒng)外呼營銷來回呼 江西意向度高的羿智云外呼系統(tǒng) 無錫真人電銷機(jī)器人供應(yīng)商 抖音商家地圖標(biāo)注入駐店

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

復(fù)制代碼
代碼如下:

[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,都還有很多余量,那為何還會(huì)報(bào)告磁盤空間不夠呢?
查詢了下XFS FAQ,發(fā)現(xiàn)有一段:

復(fù)制代碼
代碼如下:

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

復(fù)制代碼
代碼如下:

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

P.S,磁盤空間小于1T的不用擔(dān)心這個(gè)問題 :)

標(biāo)簽:銅陵 運(yùn)城 潛江 保定 衢州 山南 麗水 新余

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《xfs文件系統(tǒng)提示沒有磁盤空間錯(cuò)誤的解決方法》,本文關(guān)鍵詞  xfs,文件,系統(tǒng),提示,沒有,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《xfs文件系統(tǒng)提示沒有磁盤空間錯(cuò)誤的解決方法》相關(guān)的同類信息!
  • 本頁收集關(guān)于xfs文件系統(tǒng)提示沒有磁盤空間錯(cuò)誤的解決方法的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    武定县| 大关县| 嫩江县| 杨浦区| 睢宁县| 福建省| 凌海市| 邮箱| 潮安县| 广安市| 河津市| 交城县| 平潭县| 荥经县| 嘉峪关市| 芜湖市| 宜州市| 晴隆县| 台湾省| 庆云县| 安庆市| 于都县| 建德市| 海宁市| 松桃| 宝兴县| 宝应县| 湖州市| 图木舒克市| 东辽县| 革吉县| 咸丰县| 辽中县| 石屏县| 明水县| 中宁县| 黄陵县| 高碑店市| 胶南市| 商丘市| 当阳市|