[1768] in athena10
Re: tmp-cleaner for Linerva
daemon@ATHENA.MIT.EDU (Greg Price)
Wed Mar 18 17:55:32 2009
Date: Wed, 18 Mar 2009 17:54:33 -0400
From: Greg Price <price@MIT.EDU>
To: Nelson Elhage <nelhage@mit.edu>
Cc: linerva@mit.edu
Message-ID: <20090318215433.GY25963@mit.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20090318205243.GP5764@mit.edu>
Sounds good to me. We ran all the way out of space just now, so it's
past time we dealt with this.
Nearly all of the huge files I deleted in today and yesterday's
episodes belonged to users who were not logged in, so this cleaner may
well be sufficiently thorough, anyway.
Greg
On Wed, Mar 18, 2009 at 04:52:43PM -0400, Nelson Elhage wrote:
> Lacking a definite better plan, I say we set up the (Deb)Athena tmp
> cleaner. If we need something more aggressive, we can move to
> tmpreaper or something that doesn't necessarily respect logged-in
> status. But the Athena cleaner is something people are used to and we
> know works reasonably well in comparable environments.
>
> I'll hold off on doing so until I get at least one ack from another
> maintainer.
>
> - Nelson
>
> On Tue, Mar 17, 2009 at 07:26:45PM -0400, Greg Price wrote:
> > 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