ubuntu“设备上没有剩余空间"但是有很多空间 [英] ubuntu "No space left on device" but there is tons of space

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

问题描述

我尝试执行的几乎所有操作都收到设备上没有剩余空间"的错误消息.甚至可以使用制表符自动完成命令!

I am getting the "No space left on device" error for pretty much anything i try to do. Even using tab to autocomplete a command!

但是当我做df -h时我得到:

but when i do df -h i get:

ubuntu@ip-10-0-2-108:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1       99G  6.5G   88G   7% /
udev            3.7G  8.0K  3.7G   1% /dev
tmpfs           1.5G  184K  1.5G   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            3.7G     0  3.7G   0% /run/shm
none            100M     0  100M   0% /run/user
/dev/xvdb       414G  199M  393G   1% /mnt
overflow        1.0M  1.0M     0 100% /tmp

在我看来,

有很多空间. df -i看起来也类似:

which to me looks like there is tons of space. df -i also looks similar:

ubuntu@ip-10-0-2-108:~$ df -i
Filesystem       Inodes IUsed    IFree IUse% Mounted on
/dev/xvda1      6553600 94227  6459373    2% /
udev             951353   393   950960    1% /dev
tmpfs            953649   274   953375    1% /run
none             953649     3   953646    1% /run/lock
none             953649     1   953648    1% /run/shm
none             953649     1   953648    1% /run/user
/dev/xvdb      27525120    11 27525109    1% /mnt
overflow         953649    12   953637    1% /tmp

我在Amazon EC2 ubuntu 12.04实例上.

I am on an Amazon EC2 ubuntu 12.04 instance.

以下是弹出错误的一些示例:

Here are some examples of the error popping up:

ubuntu@ip-10-0-2-108:~$ sudo crontab -e
/tmp/crontab.RvYjrR/crontab: No space left on device

ubuntu@ip-10-0-2-108:~$ ls /va (hit tab for autocomplete)

-bash: cannot create temp file for here-document: No space left on device
-bash: cannot create temp file for here-document: No space left on device

但是,服务器似乎正在运行,并且一切似乎都在工作. 到底是怎么回事?

however the server seems to be running and everything seems to be working. what on earth is going on??

推荐答案

可能是内存不足或其他空间不足,它提示系统挂载溢出文件系统,无论出于何种原因,它都不会离开.

It's possible that you've run out of memory or some space elsewhere and it prompted the system to mount an overflow filesystem, and for whatever reason, it's not going away.

尝试卸载溢出分区:

umount /tmp

umount overflow

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

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