LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-20-2005, 08:08 PM   #1
wearetheborg
Member
 
Registered: Sep 2004
Distribution: Mint 17
Posts: 272

Rep: Reputation: 31
/var messages are huge


My mandrake 2006 laptop crashed withing 2 days of running. It may not be the reason but df -h gave the / partition as being 100% full. On checking I found /var had grown to over 1.2 GB. Any way to cut down on the messages ? As a temp fix I did echo xyz > filename for the files that were huge. I hope this doesnt break the system.
 
Old 12-20-2005, 08:51 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
Did you update the system? Maybe the update files is stored here. Do something like ' du -k | sort -n '. The command will list the diskuasge and sorts it from smallest to largest.

Just want to make sure since not really saying /var/spool/messages as contain all the data. var is just not all for messages.

Hope this helps.
Brian1
 
Old 12-20-2005, 08:52 PM   #3
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
try tail /var/log/messages to see why your log files are so big. I had the problem because some process was generating alot of errors over and over
 
Old 12-20-2005, 08:59 PM   #4
wearetheborg
Member
 
Registered: Sep 2004
Distribution: Mint 17
Posts: 272

Original Poster
Rep: Reputation: 31
Yes I updated the system right after installation. The 3 biggest files were (~320MB each)
/var/log/messages
/var/log/syslog
/var/kernel/errors

Right now (after Brian1's command) the 2 (by far) biggest files are /var/lib/rpmi - 80MB
/var/lib/urpmi - 110MB
 
Old 12-20-2005, 09:39 PM   #5
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
Not a mandriva user but others can confrim this but I think this is whre mandriva stores downlaoded rpm updates. Also you say they are files, I they are directories. Synaptic/Apt does the same to store downloaded rpms but uses /var/cache/apt.

If /var/log/messages and others is that large after 2 days then see whats in them. dmesg command will show most of that. Just to make sure you are seeing it correctly use the command ' ls -lha ' in /var/logs directory. The h makes the it more humanly readable. Default is bytes.


Brian1
 
  


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
what does messages suppressed in /var/log/messages mean saavik Linux - Networking 2 05-07-2008 03:31 PM
Redirecting the kernel messages to file other than /var/log/messages jyotika_b83 Linux - General 3 04-28-2005 07:39 PM
From where am i getting error messages to /var/log/messages? prabhuacsp Programming 3 02-16-2005 09:59 AM
From where am i getting error messages to /var/log/messages? prabhuacsp Linux - Networking 1 02-16-2005 01:34 AM
/var/log/messages full of these messages. Should I be concerned? mdavis Linux - Security 5 04-16-2004 11:08 AM


All times are GMT -5. The time now is 12:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration