<分区>
当我触摸
一个文件时,比如touch test.txt
,我收到一条消息,显示设备上没有剩余空间。
touch: cannot touch 'test.txt': no space left on device
但是当我 df
时,它显示可用空间超过 10GB。
出了什么问题?
标签 linux
<分区>
当我触摸
一个文件时,比如touch test.txt
,我收到一条消息,显示设备上没有剩余空间。
touch: cannot touch 'test.txt': no space left on device
但是当我 df
时,它显示可用空间超过 10GB。
出了什么问题?
最佳答案
请检查您是否看到零 IFree。
df -i
应该有助于解决这个问题:
Filesystem Inodes IUsed IFree IUse% Mounted on
udev 60107 322 59785 1% /dev
如果您看到足够的空闲 inode - 请查看您是否已删除但仍打开的文件。像这样:
lsof -nP | grep '(deleted)'
tail 18687 root 3r REG 8,1 0 130833 /root/test (deleted)
关于linux - 当我收到 "filesystem is full"错误,但 "df"显示有可用空间时,可能是什么问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56305386/