溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

xfs文件系統(tǒng)提示沒有磁盤空間錯誤怎么辦

發(fā)布時間:2021-10-11 13:50:18 來源:億速云 閱讀:105 作者:小新 欄目:系統(tǒng)運維

這篇文章主要介紹了xfs文件系統(tǒ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

感謝你能夠認真閱讀完這篇文章,希望小編分享的“xfs文件系統(tǒng)提示沒有磁盤空間錯誤怎么辦”這篇文章對大家有幫助,同時也希望大家多多支持億速云,關(guān)注億速云行業(yè)資訊頻道,更多相關(guān)知識等著你來學(xué)習(xí)!

向AI問一下細節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

xfs
AI