LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 09-24-2003, 02:53 PM   #1
mattkat
LQ Newbie
 
Registered: Sep 2002
Distribution: Redhat 7.2
Posts: 23

Rep: Reputation: 15
Question Cleaning up /var partition - what to delete?


I'm using RH 7.3 on a small lan server. I'm continually needing to check disk use on the /var partition. Usually it is on the verge of filling up. I was wondering what stuff I can remove. One oversite I've recently fixed is logrotate was not compressing the logs, I've fixed that. However it still seems that there is way too much space eaten up on the /var partition.

Here is the output of du -h /var | grep M (for the sub directories breaking the megabyte barrior)
25M /var/lib/rpm
1.3M /var/lib/slocate
1.9M /var/lib/tripwire
16M /var/lib/anaconda-rebuilddb1036084739
44M /var/lib
3.2M /var/log/sa
70M /var/log/samba
81M /var/log
1.4M /var/cache/man
4.7M /var/cache/mondo-archive
6.5M /var/cache
1.3M /var/spool/lpd/Laserjet1200
1.3M /var/spool/lpd
88M /var/spool/up2date
89M /var/spool
1.5M /var/ftp/lib
1.8M /var/ftp
221M /var

So clearly I need to figure out what is going on the log directory. One thing that is especially strange about it is that there is both the /var/log/samba/*.logs and /var/log/samba-logs* - anyone know why there are logs in multiple places for that?

Also in /var/spool/lpd there are always old print jobs that haven't been cleaned up. What's up with that - isn't it supposed to be automated?

Finally what about the /var/spool/up2date & /var/lib/rpm - those are two full directories that I have so far been afraid to clean out. Is that where the up2date & rpm databases are stored? Can either of those directories be cleaned or is everthing in there mission critical for the rpm database and up2date service?

Any other thoughts folks have would be greatly appreciated.

Thanks
 
Old 09-24-2003, 02:56 PM   #2
mattkat
LQ Newbie
 
Registered: Sep 2002
Distribution: Redhat 7.2
Posts: 23

Original Poster
Rep: Reputation: 15
forgot to ask about...

I forgot to ask about the /var/lib/anaconda-rebuilddb1036084739 directory. Is that from the last time I upgraded from 7.1? Any reason to save that?

Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VAR - logs - when to delete High-gain Linux - Newbie 4 02-27-2005 09:54 AM
cleaning / partition fred22 Red Hat 1 10-27-2004 06:18 AM
cleaning up /var/adm/wtmp Risc91 AIX 5 08-23-2004 09:52 AM
Delete file in /var chii-chan Linux - Newbie 5 03-19-2004 04:58 PM
Cleaning up /var and /tmp.... Whitehat Linux - General 3 01-04-2004 07:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 12:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration