五月综合激情婷婷六月,日韩欧美国产一区不卡,他扒开我内裤强吻我下面视频 ,无套内射无矿码免费看黄,天天躁,日日躁,狠狠躁

新聞動(dòng)態(tài)

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

發(fā)布日期:2022-03-11 13:54 | 文章來源:腳本之家

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

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

[root@imysql ~]# df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/sdb1xfs 19T16T 2.4T 88% /backup</p> <p>[root@imysql ~]# df -hi
FilesystemInodesIUsedIFree IUse% Mounted on
/dev/sdb19.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è)問題 :)

國(guó)外穩(wěn)定服務(wù)器

版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請(qǐng)保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非maisonbaluchon.cn所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場(chǎng),如有內(nèi)容涉嫌侵權(quán),請(qǐng)聯(lián)系alex-e#qq.com處理。

相關(guān)文章

實(shí)時(shí)開通

自選配置、實(shí)時(shí)開通

免備案

全球線路精選!

全天候客戶服務(wù)

7x24全年不間斷在線

專屬顧問服務(wù)

1對(duì)1客戶咨詢顧問

在線
客服

在線客服:7*24小時(shí)在線

客服
熱線

400-630-3752
7*24小時(shí)客服服務(wù)熱線

關(guān)注
微信

關(guān)注官方微信
頂部