I have a server where we use tmpfs as a cache for temporary files used by a web application. But occasionally this tmpfs thinks it is full when it isn't.
[root@flask-yellow tmpfs]# touch file touch: cannot touch `file': No space left on device [root@flask-yellow tmpfs]# df -k Filesystem 1K-blocks Used Available Use% Mounted on none 393216 19296 373920 5% /srv/tmpfs
Simply unmounting and remounting /srv/tmpfs resolves the issue.
2.6.18-164.11.1.el5
Any suggestions as to the cause of this or workarounds are appreciated.
On 1 December 2010 14:13, Adam Tauno Williams awilliam@whitemice.org wrote:
I have a server where we use tmpfs as a cache for temporary files used by a web application. But occasionally this tmpfs thinks it is full when it isn't.
[root@flask-yellow tmpfs]# touch file touch: cannot touch `file': No space left on device [root@flask-yellow tmpfs]# df -k Filesystem 1K-blocks Used Available Use% Mounted on none 393216 19296 373920 5% /srv/tmpfs
Simply unmounting and remounting /srv/tmpfs resolves the issue.
2.6.18-164.11.1.el5
Any suggestions as to the cause of this or workarounds are appreciated.
Webserver process holding the file handles open so that the space doesn't get released maybe?
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Adam Tauno Williams Sent: Wednesday, December 01, 2010 9:14 AM To: centos@centos.org Subject: [CentOS] tmpfs says "No space left on device"
I have a server where we use tmpfs as a cache for temporary files used by a web application. But occasionally this tmpfs thinks it is full when it isn't.
[root@flask-yellow tmpfs]# touch file touch: cannot touch `file': No space left on device [root@flask-yellow tmpfs]# df -k Filesystem 1K-blocks Used Available Use% Mounted on none 393216 19296 373920 5% /srv/tmpfs
What does lsof show regarding file open on this device? I'm thinking files opened, then unlinked, but file descriptors not yet closed. ******************************************************************* This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. www.Hubbell.com - Hubbell Incorporated**