Ec2实例向下错误:无法为这里的文件创build临时文件

Iam运行我的网站build立在开​​发模式在轨道上的ruby在EC2实例,当我SSH的那个实例,它说..

Welcome to Ubuntu 12.10 (GNU/Linux 3.5.0-17-generic x86_64) * Documentation: https://help.ubuntu.com/ System information as of Thu Mar 28 05:10:40 UTC 2013 System load: 0.48 Processes: 84 Usage of /: 94.9% of 7.87GB Users logged in: 0 Memory usage: 49% IP address for eth0: 10.130.18.205 Swap usage: 0% => / is using 94.9% of 7.87GB Graph this data and manage this system at https://landscape.canonical.com/ 156 packages can be updated. 86 updates are security updates. Get cloud support with Ubuntu Advantage Cloud Guest 

现在,当我尝试将光盘放入/ home / ubuntu中的其中一个文件夹时,它会显示错误消息

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

和裁谈会的命令失败,可能是什么问题,因为该网站是closures的,我无法找出问题。其他o / p我需要张贴这个问题。

编辑 $ sudo du -sch / tmp *

52K / tmp

总共52K

$ df -hi

  Filesystem Inodes IUsed IFree IUse% Mounted on udev 72K 389 72K 1% /dev tmpfs 74K 270 74K 1% /run none 74K 4 74K 1% /run/lock none 74K 1 74K 1% /run/shm none 74K 1 74K 1% /run/user /dev/xvda1 512K 222K 291K 44% / 

$ sudo df -h

  Filesystem Size Used Avail Use% Mounted on udev 287M 8.0K 287M 1% /dev tmpfs 118M 188K 118M 1% /run none 5.0M 0 5.0M 0% /run/lock none 295M 0 295M 0% /run/shm none 100M 0 100M 0% /run/user /dev/xvda1 7.9G 7.5G 13M 100% / 

/的使用:7.87GB的94.9%

并从更新的问题

/ dev / xvda1 7.9G 7.5G 13M 100%/

系统默认使用5%的磁盘空间。 你的/显示94.9%完全如此有效你的文件系统已满。 看一看du -sh /df -h的输出,如果它们都显示大致相同的用法,那么很可能是你的文件系统被一个大文件填充,你需要跟踪和处理(甚至更可能是一个日志文件)。 使用

 du -h --max-depth=1 / 

仔细检查输出的高使用率文件/目录。 正确处理文件和冲洗目录,并重复(如果/ var显示高使用率)

 cd /var du -h --max-depth=1 . 

等等。 最终你会find一个你想删除的文件(或一系列文件)。 最安全的方法是closures正在使用该文件的服务,将其删除(如果需要保存,将其归档),然后重新启动该服务。

如果上面的dfdu命令的输出差别很大,那么很可能是由进程保留了一个被删除的文件。 使用该命令

 lsof +L1 

跟踪文件,然后重新启动将其打开的进程。

如果这些都不起作用,那么你可能需要fsck文件系统。