簡體   English   中英

AWS EC2錯誤:-bash:無法為此處文檔創建臨時文件:設備上沒有剩余空間

[英]AWS EC2 ERROR: -bash: cannot create temp file for here-document: No space left on device

做標簽時出現以下錯誤。 並且無法更改文件,可以打開文件但不能保存文件。 看起來服務器工作正常,並且長腳本不斷執行,而且永無止境。

ubuntu@ip-172-31-49-89:~$ cat /etc/issue.net
Ubuntu 14.04.4 LTS

ubuntu@ip-172-31-49-89:~$ uname -a    
Linux ip-172-31-49-89 3.13.0-74-generic #118-Ubuntu SMP Thu Dec 17 22:52:10 
UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

ubuntu@ip-172-31-49-89:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            492M   12K  492M   1% /dev
tmpfs           100M  376K   99M   1% /run
/dev/xvda1       50G   47G     0 100% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
none            5.0M     0  5.0M   0% /run/lock
none            497M     0  497M   0% /run/shm
none            100M     0  100M   0% /run/user

ubuntu@ip-172-31-49-89:~$ df -i
Filesystem      Inodes  IUsed   IFree IUse% Mounted on
udev            125803    387  125416    1% /dev
tmpfs           127040    315  126725    1% /run
/dev/xvda1     3276800 134435 3142365    5% /
none            127040      2  127038    1% /sys/fs/cgroup
none            127040      1  127039    1% /run/lock
none            127040      1  127039    1% /run/shm
none            127040      2  127038    1% /run/user

ubuntu@ip-172-31-49-89:~$ cd new
-bash: cannot create temp file for here-document: No space left on device

我現在應該怎么辦? 我只是刪除了不必要的創建者和文件。 一段時間后仍然是相同的錯誤。

我嘗試解決此問題,但我的tmp和日志文件較小:

ubuntu@ip-172-31-49-89:~$ du -sh /tmp
1.3M    /tmp
ubuntu@ip-172-31-49-89:~$ du -sh /var/log
6.2M    /var/log

好吧,你自己說:磁盤已滿:

/dev/xvda1 50G 47G 0 100% /

開始調查根目錄文件夾中磁盤空間的位置:

du -hs /* | sort -h

那應該給出一個很好的主意,即什么占據了大部分磁盤驅動器。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM