[1753] in athena10

home help back first fref pref prev next nref lref last post

tmp-cleaner for Linerva

daemon@ATHENA.MIT.EDU (Greg Price)
Tue Mar 17 19:27:44 2009

Date: Tue, 17 Mar 2009 19:26:45 -0400
From: Greg Price <price@MIT.EDU>
To: linerva@mit.edu
Message-ID: <20090317232645.GT25963@mit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

We should install a tmp-cleaner on Linerva.  Today we nearly hit 50G.

   linerva / tmp / andersk  17:41  (Anders Kaseorg)
       Filesystem           1K-blocks      Used Available Use% Mounted on
       /dev/mapper/linerva-tmp
                             51606140  47324116   1660968  97% /tmp
   linerva / tmp / price  18:01  (Gregory N. Price)
       # find /tmp -maxdepth 1 -size +1G -atime 3
   
       finds seven files.  None of the owners are logged in.  I'm going to
       remove them with /bin/saferm (like debathena-tmp-cleaner uses.)
       Then we can deal non-urgently.
   linerva / tmp / price  18:01  (Gregory N. Price)
       (pausing for objections...)
   linerva / tmp / price  18:05  (Gregory N. Price)
       Done.
   
       vinegar-pot:~# df /tmp/
       Filesystem           1K-blocks      Used Available Use% Mounted on
       /dev/mapper/linerva-tmp
                             51606140  40478324   8506760  83% /tmp
   
       We should still set up a real tmp-cleaner.

One obvious choice is debathena-tmp-cleaner, which as written removes
files in /tmp older than 2 days and in /var/tmp older than 3.

But it refuses to remove files owned by users who are logged in, no
matter how long ago the file was last touched.  Since the history of
-tmp-cleaner is that ghudson wrote it in July, I suspect that this was
motivated by the cluster situation where a logged-in user "owns" the
machine and may as well do as they please in /tmp/.  For Linerva we
may want to vary this behavior.

It might also be nice to use upstream software.  Any recommendations?

Greg

home help back first fref pref prev next nref lref last post