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 at flask-yellow tmpfs]# touch file touch: cannot touch `file': No space left on device [root at 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 at 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 at flask-yellow tmpfs]# touch file > touch: cannot touch `file': No space left on device > [root at 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 at centos.org > [mailto:centos-bounces at centos.org] On Behalf Of Adam Tauno Williams > Sent: Wednesday, December 01, 2010 9:14 AM > To: centos at 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 at flask-yellow tmpfs]# touch file > touch: cannot touch `file': No space left on device > [root at flask-yellow tmpfs]# df -k > Filesystem 1K-blocks Used Available Use% Mounted on > none 393216 19296 373920 5% /srv/tmpfsWhat 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**
Reasonably Related Threads
- Does devtmps and tmpfs use underlying hard disk storage or Physical Memory (RAM)
- Starting emacs gives "shmget failed: error 28" message
- C8 regression / tmp on tmpfs
- tmpfs regression in recent -STABLE
- Offtopic: nfs, tmpfs and `getfh failed: Operation not permitted'