LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-28-2010, 04:29 PM   #1
Riallin
Member
 
Registered: Feb 2005
Posts: 52

Rep: Reputation: 16
Can't get logrotate to work


Hey everyone,

Not sure if this is of the same problem as my other thread, so I posted a new one. Mods, please combine if it turns out to be related.

root@sloan:/var/log# ls -lah | sort -rn
total 68G
-rw-r--r-- 1 root sloan 286K 2010-01-27 18:22 lastlog
-rw-r--r-- 1 root root 32K 2010-01-26 17:32 Xorg.0.log.old
-rw-r--r-- 1 root root 31K 2010-01-26 17:32 Xorg.0.log
-rw-r--r-- 1 root root 1.6K 2010-01-26 17:31 shorewall-init.log.1.gz
-rw-r--r-- 1 root root 0 2010-01-26 17:31 dmesg.0
-rw-r--r-- 1 root adm 52K 2010-01-26 17:31 dmesg
-rw-r----- 1 root adm 9.6M 2010-01-28 11:28 syslog
-rw-r----- 1 root adm 52M 2010-01-27 07:35 syslog.2.gz
-rw-r----- 1 root adm 49K 2010-01-28 11:26 daemon.log
-rw-r----- 1 root adm 2.6M 2010-01-26 17:37 syslog.3.gz
-rw-r----- 1 root adm 23G 2010-01-28 11:28 kern.log
-rw-r----- 1 root adm 23G 2010-01-28 11:28 debug
-rw-r----- 1 root adm 23G 2010-01-28 11:28 bandwidth
-rw-r----- 1 root adm 22K 2010-01-28 11:27 messages
-rw-r----- 1 root adm 196K 2010-01-28 11:25 mail.log
-rw-r----- 1 root adm 196K 2010-01-28 11:25 mail.info
-rw-r----- 1 root adm 189K 2010-01-28 11:25 mail.warn
-rw-r----- 1 root adm 189K 2010-01-28 11:25 mail.err
-rw-r----- 1 root adm 130K 2010-01-28 11:25 auth.log
-rw-r----- 1 root adm 0 2010-01-26 17:37 user.log
-rw-r----- 1 root adm 0 2010-01-26 17:37 shorewall-init.log
-rw-r----- 1 root adm 0 2010-01-26 17:31 lpr.log
-rw------- 1 root root 0 2010-01-26 17:31 dmesg.new
drwxr-xr-x 4 root root 4.0K 2010-01-28 11:24 .
drwxr-xr-x 2 root root 4.0K 2010-01-26 17:31 news
drwxr-xr-x 2 root lp 4.0K 2010-01-28 07:35 cups
drwxr-xr-x 15 root root 4.0K 2009-11-04 09:51 ..
root@sloan:/var/log# logrotate kern.log
Segmentation fault
root@sloan:/var/log# logrotate debug
Segmentation fault
root@sloan:/var/log# logrotate bandwidth
Segmentation fault
root@sloan:/var/log# logrotate -f kern.log
Segmentation fault



My other thread is: http://www.linuxquestions.org/questi...4/#post3844157
 
Old 01-28-2010, 06:46 PM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Definitely related - your log files are 23 gigabytes in size, which is causing problems for logrotate. What is also odd is that these three files are all the same size.
 
Old 01-28-2010, 07:17 PM   #3
Riallin
Member
 
Registered: Feb 2005
Posts: 52

Original Poster
Rep: Reputation: 16
-rw-r----- 1 root adm 25817862671 2010-01-28 14:18 bandwidth
-rw-r----- 1 root adm 25759830430 2010-01-28 14:18 kern.log
-rw-r----- 1 root adm 25759828766 2010-01-28 14:18 debug

is an ls -la

close in size, but not identical.
 
Old 01-29-2010, 03:15 AM   #4
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
If you don't care about the contents of the logs, then you can truncate them:
Code:
> /var/log/bandwidth
> /var/log/kern.log
> /var/log/debug
However, it would be worth head and tail-ing them first to see why they are so large; it indicates some other problem.
 
1 members found this post helpful.
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How does logrotate work? kenneho Linux - Software 5 08-24-2011 12:34 PM
logrotate does not work! mderakhs Linux - Server 1 09-15-2008 01:13 PM
Why we use logrotate ? shipon_97 Linux - Newbie 4 01-09-2008 09:15 AM
My Logrotate won't work with mySQL guarriman Fedora 3 05-30-2006 05:02 AM
Pix logging on syslog... logrotate does not work logicalfuzz Linux - Software 0 03-06-2006 12:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:35 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