Mailinglist Archive: opensuse (3831 mails)

< Previous Next >
Re: [opensuse] Large /tmp dir w. many files
  • From: Kenneth Schneider <suse-list3@xxxxxxxxxxxxx>
  • Date: Thu, 11 Jan 2007 08:28:57 -0500
  • Message-id: <1168522137.21128.12.camel@xxxxxxxxxxxxxxxxx>
On Thu, 2007-01-11 at 08:08 -0500, Carl Hartung wrote:
> On Thu January 11 2007 07:54, Nick Zentena wrote:
> > On Thursday 11 January 2007 07:51, Verner Kjærsgaard wrote:
> > > Hi list,
> > >
> > > on a SuSE9.2 with aprox. 150 users over time since 2004, the /tmp dir now
> > > holds something like +12000 files and some 3.5G in size.
> > >
> > > - would it be safe to go to runlevel 2 and delete all that?
> >
> > Check Yast. I don't remember with 9.2 but there is likely a setting to
> > automatically delete tmp files on a schedule. I've no idea why the default
> > is to not delete.
>
> In YaST:
> System -> /etc/sysconfig Editor ->System->Cron
>
> I've used these settings since 8.2 to avoid your problem:
>
> TMP_DIRS_TO_CLEAR = /tmp /var/tmp
> CLEAR_TMP_DIRS_AT_BOOT = yes
>
> I'd be inclined to enable these settings then reboot the system to confirm
> they've 'taken' and the space recovered.
>

They can also be set to delete files after they are a certain age.

--
Ken Schneider
UNIX since 1989, linux since 1994, SuSE since 1998

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups