设备上没有剩余空间 [英] No space left on device

查看:751
本文介绍了设备上没有剩余空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我试图scp一些文件到centos机器,我得到的错误设备上没有剩余空间

When i tried to scp some files to a centos machine, I am getting the error "No space left on device"

我试过

[root@...]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol01 18G   18G     0 100% /

当我做

du -sh / - >只有5G

du -sh / -> it gives only 5G

[... ~]$ df -i /
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/mapper/VolGroup00-LogVol01
                     4685824  209516 4476308    5% /

似乎文件系统已满。

推荐答案

<$ c的输出之间的这种差异如果一些大文件已被删除,但仍由某些进程打开,则可能会发生$ c> du -sh 和 df -h 请使用命令 lsof | grep deleted 以查看哪些进程已打开已删除文件的描述符。您可以重新启动该进程,空间将被释放。

Such difference between the output of du -sh and df -h may happen if some large file has been deleted, but is still opened by some process. Check with the command lsof | grep deleted to see which processes have opened descriptors to deleted files. You can restart the process and the space will be freed.

这篇关于设备上没有剩余空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆