Linux

已安裝的 NFS 設備上的“設備上沒有剩餘空間”

  • March 3, 2021

在 NFS 伺服器上:

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/xvdf2           103212320  85090308  12879132  87% /export18

在客戶端伺服器上:

ip-xxxxxxxx.ap-northeast-1.compute.internal:/export18
                103212320  85090304  12879136  87% /export18

但是,如果我嘗試創建文件,則會收到以下消息:

touch: cannot touch `/export18/test': No space left on device

我已解除安裝該卷並在其上執行 fsck:

fsck -t ext3 /dev/xvdf2
fsck from util-linux-ng 2.17.2
e2fsck 1.41.14 (22-Dec-2010)
/dev/xvdf2 has gone 484 days without being checked, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/xvdf2: 6553600/6553600 files (4.8% non-contiguous), 21683897/26214400 blocks

也許非連續的 4.8% 有點高,但是……仍然無法寫入。

**問題:**如果只使用 %87,可能無法寫入卷的原因是什麼?

編輯:

Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/xvdf2           6553600 6553600       0  100% /export18

您可能用完了 inode。請檢查df -iNFS 伺服器。

引用自:https://serverfault.com/questions/464356