[opensuse] Large /tmp dir w. many files
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? -- ------------------------------------------------------------------------- Med venlig hilsen/Best regards Verner Kjærsgaard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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. Nick -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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. hth & regards, Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu January 11 2007 08:28, Kenneth Schneider wrote:
They can also be set to delete files after they are a certain age.
Hi Ken, These settings are in the same section as the ones I described. I hope the OP will see and consider implementing them, as well, now that I think about it. regards, Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 11 January 2007 05:08, 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.
Hey! Very cool, thank you. I was running out of space on my lappie and eventually noticed about 20G of files in /tmp/kai - never even knew the folder existed. Of course, I deleted everything, since nothing seemed to be needed. Now I will just have it continually empty. -- kai - theperfectreign@yahoo.com www.perfectreign.com || www.4thedadz.com www.filesite.org || www.donutmonster.com wo ist der ort für den ehrlichsten kuss ich weiss, dass ich ihn für uns finden muss... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu January 11 2007 08:49, Kai Ponte wrote:
Hey! Very cool, thank you. ...
You're welcome, Kai! I don't know why it isn't configured this way by default, but I'm sure there's a very good reason. I've given up trying to second-guess the SUSE wizards! ;-) Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Thursday 2007-01-11 at 09:34 -0500, Carl Hartung wrote:
Hey! Very cool, thank you. ...
You're welcome, Kai!
I don't know why it isn't configured this way by default, but I'm sure there's a very good reason. I've given up trying to second-guess the SUSE wizards! ;-)
Safety. You are the root, you decide what is best for your system ;-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFFplkktTMYHG2NR9URAtyAAJ0YUShF2RGywS7CecNlFtQfYzzIXgCfdATR nWkIyqppfdwz+1RuIPAF7JE= =eNDQ -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Torsdag 11 januar 2007 16:34 skrev Carlos E. R.:
The Thursday 2007-01-11 at 09:34 -0500, Carl Hartung wrote:
Hey! Very cool, thank you.
...
You're welcome, Kai!
I don't know why it isn't configured this way by default, but I'm sure there's a very good reason. I've given up trying to second-guess the SUSE wizards! ;-)
Safety.
You are the root, you decide what is best for your system ;-)
-- Cheers, Carlos E. R.
Thanks to all. I edited (YaST) sysconfig as described, set it to delete files being older than 50 days. Now we'll wait and see what cron.daily does to them when it runs. -- ------------------------------------------------------------------------- Med venlig hilsen/Best regards Verner Kjærsgaard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi Kai, Am Donnerstag, 11. Januar 2007 14:49 schrieb Kai Ponte:
I was running out of space on my lappie and eventually noticed about 20G of files in /tmp/kai - never even knew the folder existed. Of course, I deleted everything, since nothing seemed to be needed.
kdirstat is your friend... kdirstat scans a directory tree and shows very impressive where your disk space goes to... You will be baffled where your disk space gets lost ... It's easy to forget some huge "temp" files like videos. kdirstat resides in its own package, to be installed with yast. And, luckily, you may scan mounted discs of clients running any OS. Cheers, Winfried -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Mandag 15 januar 2007 02:28 skrev Winfried Huber:
Hi Kai,
Am Donnerstag, 11. Januar 2007 14:49 schrieb Kai Ponte:
I was running out of space on my lappie and eventually noticed about 20G of files in /tmp/kai - never even knew the folder existed. Of course, I deleted everything, since nothing seemed to be needed.
kdirstat is your friend...
kdirstat scans a directory tree and shows very impressive where your disk space goes to...
You will be baffled where your disk space gets lost ... It's easy to forget some huge "temp" files like videos.
kdirstat resides in its own package, to be installed with yast. And, luckily, you may scan mounted discs of clients running any OS.
Cheers, Winfried
- Thank You! -- ------------------------------------------------------------------------- Med venlig hilsen/Best regards Verner Kjærsgaard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
i don't know if someone sent this in already but a "du" command and
especially a "du -h" will give you a solid breakdown as well.
On 1/15/07, Verner Kjærsgaard
Mandag 15 januar 2007 02:28 skrev Winfried Huber:
Hi Kai,
Am Donnerstag, 11. Januar 2007 14:49 schrieb Kai Ponte:
I was running out of space on my lappie and eventually noticed about 20G of files in /tmp/kai - never even knew the folder existed. Of course, I deleted everything, since nothing seemed to be needed.
kdirstat is your friend...
kdirstat scans a directory tree and shows very impressive where your disk space goes to...
You will be baffled where your disk space gets lost ... It's easy to forget some huge "temp" files like videos.
kdirstat resides in its own package, to be installed with yast. And, luckily, you may scan mounted discs of clients running any OS.
Cheers, Winfried
- Thank You!
-- ------------------------------------------------------------------------- Med venlig hilsen/Best regards Verner Kjærsgaard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday, January 16, 2007 @ 6:09 AM, Rami Michael wrote:
i don't know if someone sent this in already but a "du" command and especially a "du -h" will give you a solid breakdown as well.
On 1/15/07, Verner Kjærsgaard
wrote: Mandag 15 januar 2007 02:28 skrev Winfried Huber:
Hi Kai,
Am Donnerstag, 11. Januar 2007 14:49 schrieb Kai Ponte:
I was running out of space on my lappie and eventually noticed about 20G of files in /tmp/kai - never even knew the folder existed. Of course, I deleted everything, since nothing seemed to be needed.
kdirstat is your friend...
kdirstat scans a directory tree and shows very impressive where your disk space goes to...
You will be baffled where your disk space gets lost ... It's easy to forget some huge "temp" files like videos.
kdirstat resides in its own package, to be installed with yast. And, luckily, you may scan mounted discs of clients running any OS.
Cheers, Winfried
- Thank You!
-- ------------------------------------------------------------------------- Med venlig hilsen/Best regards Verner Kjærsgaard -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Also, the --max-depth= option can be useful. --max-depth=1 says only summarize to the highest level underneath the current directory, which gives you a high-level view of everything. Greg Wallace -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 14 January 2007 17:28, Winfried Huber wrote:
Hi Kai,
Am Donnerstag, 11. Januar 2007 14:49 schrieb Kai Ponte:
I was running out of space on my lappie and eventually noticed about 20G of files in /tmp/kai - never even knew the folder existed. Of course, I deleted everything, since nothing seemed to be needed.
kdirstat is your friend...
kdirstat scans a directory tree and shows very impressive where your disk space goes to...
You will be baffled where your disk space gets lost ... It's easy to forget some huge "temp" files like videos.
kdirstat resides in its own package, to be installed with yast. And, luckily, you may scan mounted discs of clients running any OS.
su smart install kdirstat... and I'm off and running. Cool! Pacman!! Thanks! -- kai - theperfectreign@yahoo.com www.perfectreign.com || www.4thedadz.com www.filesite.org || www.donutmonster.com wo ist der ort für den ehrlichsten kuss ich weiss, dass ich ihn für uns finden muss... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 17 Jan 2007, kai@perfectreign.com wrote:
su smart install kdirstat...
and I'm off and running.
Don't know if this applies to your version of SUSE, but you can set: MAX_DAYS_IN_TMP in /etc/sysconfig/cron to auto cleanup the tmp directory. For example, mine is set to: MAX_DAYS_IN_TMP="7" This will cleanup any files not use for 7 days in the tmp directory. You can also set the variable: CLEAR_TMP_DIRS_AT_BOOTUP if you want. Charles -- printk(KERN_ERR "scsi%d: !!BINGO!! Falcon has no lock in NCR5380_abort\n", ...) linux-2.6.6/drivers/scsi/atari_NCR5380.c
participants (10)
-
Carl Hartung
-
Carlos E. R.
-
Charles philip Chan
-
Greg Wallace
-
Kai Ponte
-
Kenneth Schneider
-
Nick Zentena
-
Rami Michael
-
Verner Kjærsgaard
-
Winfried Huber