-bash:无法为此处文档创建临时文件:设备上没有剩余空间

-bash:无法为此处文档创建临时文件:设备上没有剩余空间

这不是重复的(尽管相关)bash:无法为此处文档创建临时文件:设备上没有剩余空间

/tmp尽管我的 rootfs 尚未满并且目录本身是空的,但我的很快就被填满了。

我检查了一些事情:

$ ls /tmp -l

$ cat /etc/fstab
/dev/mmcblk0p1 / ext4 defaults,noatime,nodiratime,commit=600,errors=remount-ro 0 1
tmpfs /tmp tmpfs defaults,nosuid 0 0
/var/swap none swap sw 0 0


$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/mmcblk0p1  3.2G  2.7G  446M  86% /
udev             10M     0   10M   0% /dev
tmpfs           197M   13M  185M   7% /run
tmpfs           493M     0  493M   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           493M     0  493M   0% /sys/fs/cgroup
tmpfs           493M  493M     0 100% /tmp
tmpfs            99M     0   99M   0% /run/user/0
$ free
             total       used       free     shared    buffers     cached
Mem:       1008512     975332      33180     528316      52020     747548
-/+ buffers/cache:     175764     832748
Swap:            0          0          0

编辑1:

这是要求的输出:

$ lsof /tmp/
COMMAND     PID     USER   FD   TYPE DEVICE  SIZE/OFF  NODE NAME
cron        435     root    5u   REG   0,28      2778  4383 /tmp/tmpfX8gN33 (deleted)
cron        439     root    5u   REG   0,28    360448  3992 /tmp/tmpfJPLDh4 (deleted)
cron        440     root    5u   REG   0,28         0  4385 /tmp/tmpfSHqdP2 (deleted)
sh          455     root    1u   REG   0,28      2778  4383 /tmp/tmpfX8gN33 (deleted)
sh          455     root    2u   REG   0,28      2778  4383 /tmp/tmpfX8gN33 (deleted)
sh          459     root    1u   REG   0,28    360448  3992 /tmp/tmpfJPLDh4 (deleted)
sh          459     root    2u   REG   0,28    360448  3992 /tmp/tmpfJPLDh4 (deleted)
sh          459     root   10u   REG   0,28    360448  3992 /tmp/tmpfJPLDh4 (deleted)
sh          466     root    1u   REG   0,28         0  4385 /tmp/tmpfSHqdP2 (deleted)
sh          466     root    2u   REG   0,28         0  4385 /tmp/tmpfSHqdP2 (deleted)
hard_rese   468     root    1u   REG   0,28      2778  4383 /tmp/tmpfX8gN33 (deleted)
hard_rese   468     root    2u   REG   0,28      2778  4383 /tmp/tmpfX8gN33 (deleted)
shaula720   471     root    1u   REG   0,28 476921856  4381 /tmp/tmpfVehH93 (deleted)
shaula720   471     root    2u   REG   0,28 476921856  4381 /tmp/tmpfVehH93 (deleted)
sip_speak   476     root    1u   REG   0,28    360448  3992 /tmp/tmpfJPLDh4 (deleted)
sip_speak   476     root    2u   REG   0,28    360448  3992 /tmp/tmpfJPLDh4 (deleted)
amp_switc   479     root    1u   REG   0,28         0  4385 /tmp/tmpfSHqdP2 (deleted)
amp_switc   479     root    2u   REG   0,28         0  4385 /tmp/tmpfSHqdP2 (deleted)
tail        801     root    2u   REG   0,28         0  4385 /tmp/tmpfSHqdP2 (deleted)
tail        801     root    3r   REG   0,28    202442  5784 /tmp/gmediarenderer.log
amp_switc   802     root    1u   REG   0,28         0  4385 /tmp/tmpfSHqdP2 (deleted)
amp_switc   802     root    2u   REG   0,28         0  4385 /tmp/tmpfSHqdP2 (deleted)
apache2    1047     root   10u   REG   0,28         0  6360 /tmp/.ZendSem.V3ty8j (deleted)
apache2    1273 asterisk   10u   REG   0,28         0  6360 /tmp/.ZendSem.V3ty8j (deleted)
apache2    1277 asterisk   10u   REG   0,28         0  6360 /tmp/.ZendSem.V3ty8j (deleted)
apache2    1279 asterisk   10u   REG   0,28         0  6360 /tmp/.ZendSem.V3ty8j (deleted)
apache2    1280 asterisk   10u   REG   0,28         0  6360 /tmp/.ZendSem.V3ty8j (deleted)
apache2    1281 asterisk   10u   REG   0,28         0  6360 /tmp/.ZendSem.V3ty8j (deleted)
mysqld     1309    mysql    4u   REG   0,28         0  5967 /tmp/ibPPMR90 (deleted)
mysqld     1309    mysql    5u   REG   0,28         0  5968 /tmp/ib45arbS (deleted)
mysqld     1309    mysql    6u   REG   0,28         0  5969 /tmp/ibxf4rdJ (deleted)
mysqld     1309    mysql    7u   REG   0,28         0  6383 /tmp/ib7ct0IA (deleted)
mysqld     1309    mysql   11u   REG   0,28         0  6384 /tmp/ibvYyZtI (deleted)
apache2    2515 asterisk   10u   REG   0,28         0  6360 /tmp/.ZendSem.V3ty8j (deleted)
apache2    2518 asterisk   10u   REG   0,28         0  6360 /tmp/.ZendSem.V3ty8j (deleted)
apache2    2519 asterisk   10u   REG   0,28         0  6360 /tmp/.ZendSem.V3ty8j (deleted)
safe_aste  2672     root  cwd    DIR   0,28       180  2847 /tmp
asterisk   2676 asterisk  cwd    DIR   0,28       180  2847 /tmp
apache2    4929 asterisk   10u   REG   0,28         0  6360 /tmp/.ZendSem.V3ty8j (deleted)
apache2    6584 asterisk   10u   REG   0,28         0  6360 /tmp/.ZendSem.V3ty8j (deleted)
sleep     17741     root    1u   REG   0,28      2778  4383 /tmp/tmpfX8gN33 (deleted)
sleep     17741     root    2u   REG   0,28      2778  4383 /tmp/tmpfX8gN33 (deleted)
gmediaren 28047     root  DEL    REG   0,28           40445 /tmp/orcexec.8LcbcH
gmediaren 28047     root  DEL    REG   0,28           40444 /tmp/orcexec.fEQrHQ
gmediaren 28047     root    3w   REG   0,28    202442  5784 /tmp/gmediarenderer.log

相关内容