E: Write error - write (28 No space left on device)

1:在终端中运行cd命令,提示:


e: Write error - write (28 No space left on device)

E: Cant mmap an empty file

2:使用 df -h 查看磁盘空间情况:


/dev/xvda1       20G  20G  0G  100% /

3:继续查看大文件所在目录:#du --max-depth=1 -h  /


4.0K    /opt

9.6M    /bin

408K    /run

4.0K    /srv

4.0K    /lib64

0       /sys

9.0M    /sbin

34M     /boot

224K    /home

4.0K    /dev

du: cannot access ‘/proc/31292/task/31292/fd/4’: No such file or directory

du: cannot access ‘/proc/31292/task/31292/fdinfo/4’: No such file or directory

du: cannot access ‘/proc/31292/fd/4’: No such file or directory

du: cannot access ‘/proc/31292/fdinfo/4’: No such file or directory

0       /proc

284M    /lib

80K     /tmp

13G     /root

4.0K    /media

1.3G    /mnt

1.2G    /usr

16K     /lost+found

5.2G    /var

6.1M    /etc

21G     /

可见 /root下面存在大文件,继续查看:#du --max-depth=1 -h  /root


8.0K    /root/.ssh

13G     /root/.pm2

6.0M    /root/.forever

17M     /root/.npm

4.0K    /root/.cache

13G     /root

可见,大文件在.pm2下面,进入此目录进行查看:pm2# ll


total 13326616

drwxr-xr-x 4 root root        4096 May 11 21:20 ./

drwx------ 7 root root        4096 Aug 22 08:35 ../

-rw-r--r-- 1 root root        1561 Jun 20  2015 conf.js

-rw-r--r-- 1 root root       22557 Apr 19 00:28 dump.pm2

drwxr-xr-x 2 root root        4096 Apr 21 08:37 logs/

-rw-r--r-- 1 root root           2 Jun 20  2015 module_conf.json

drwxr-xr-x 2 root root        4096 Aug 22 08:38 pids/

-rw-r--r-- 1 root root 13646360576 Aug 22 08:38 pm2.log

-rw-r--r-- 1 root root           5 May 11 21:20 pm2.pid

srwxr-xr-x 1 root root           0 May 11 21:20 pub.sock=

srwxr-xr-x 1 root root           0 May 11 21:20 rpc.sock=

发现pm2.log日志文件为13G,将其删除。

时间: 2024-08-10 10:08:56

E: Write error - write (28 No space left on device)的相关文章

ORA-09817: Write to audit file failed   Linux-x86_64 Error: 28: No space left on device

连接数据库报错 [[email protected] ~]$ sqlplus  /  as sysdba SQL*Plus: Release 11.2.0.3.0 Production on Fri Jun 29 18:44:03 2012 Copyright (c) 1982, 2011, Oracle.  All rights reserved. ERROR: ORA-09817: Write to audit file failed. Linux-x86_64 Error: 28: No 

mysql执行SQL语句时报错:[Err] 3 - Error writing file '/tmp/MYP0G1B8' (Errcode: 28 - No space left on device)

问题描述: 今天一同事在mysql中执行SQL语句的时候,报了/tmp空间不足的问题,报错如下: [SQL] SELECT f.prov as 字段1, MAX( CASE f.flag_name WHEN '字段1' THEN f.num ELSE 0 END ) AS '字段1', MAX( CASE f.flag_name WHEN '店员量' THEN f.num ELSE 0 END ) AS '字段1', MAX( CASE f.flag_name WHEN '字段1' THEN f

Error writing file '/tmp/MLLGyECY' (Errcode: 28 - No space left on device)

mysql 的一个从库报错: Could not execute Write_rows event on table xxx.xxxx_tmp_tj; Error writing file '/tmp/MLLGyECY' (Errcode: 28 - No space left on device), Error_code: 3; Error writing file 'mysql-bin' (errno: 28 - No space left on device), Error_code: 1

解决IOError: [Errno 28] No space left on device(设备空间不足)

问题重现: 问题分析: 出现这样的问题,是磁盘空间不足,需要清理.卸载一下系统非必要软件和文件. 解决方案: 可以使用如下命令清理: #自动清理残余的依赖库 sudo apt-get autoremove sudo apt-get autoclean #强制删除系统文件夹 sudo rm -rf '文件夹目录或文件'

linux 使用systemctl 启动服务报错: Error: No space left on device

By default, Linux only allocates 8192 watches for inotify, which is ridiculously low. And when it runs out, the error is also No space left on device, which may be confusing if you aren't explicitly looking for this issue. vi /etc/sysctl.conf  增加  fs

No space left on device: Couldn’t create accept lock

执行 apachectl start 时,error_log报错如下: [warn] pid file /usr/local/zend/apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [emerg] (28)No space left on device: Couldn't create accept lock (/usr/local/zend/apache2/logs/accept.l

170318 11:44:26 [ERROR] Can't start server: can't create PID file: No space left on device

数据库挂了.打开远程,进了系统,service mysqld stop 失败.service mysqld start等了好大一会,提示Timeout error occurred trying to start MySQL Daemon 出现Can't start server: can't create PID file: No space left on device这个错误. 提示磁盘空间不足 后用df -h 命令查看 竟然发现磁盘容量全部用完了,于是要查看是谁占用了用命令:find /

gcc 错误:Fatal error error writing to tmp No space left on device

在使用gcc make时报错:Fatal error error writing to tmp No space left on device finiteVolume/ddtSchemes/EulerDdtScheme/EulerDdtSchemes.C:40: fatal error: error writing to /tmp/ccUN0zCh.s: No space left on device LaunderGibsonRSTM/LaunderGibsonRSTM.C:348: fat

pache排查问题:Apache ERROR: No space left on device: AH00023: Couldn't create the ssl-cache mutex

1:启动apache:systemctl status httpd.service 2:查看看日志:tail -f  /var/log/httpd/error_log 报:Apache ERROR: No space left on device: AH00023: Couldn't create the ssl-cache mutex 3:查看进程ps ax|grep httpd,进程存在杀掉 4:查看apache分析消息队列.共享内存和信号量 ipcs -s | grep apache 5: