View previous topic :: View next topic |
Author |
Message |
decrease789 Apprentice
Joined: 25 Jun 2004 Posts: 194 Location: The United Krapdom
|
Posted: Thu Jul 07, 2005 11:26 pm Post subject: /var/log/kern.log |
|
|
where does /var/log/kern.log come from?
and how do i stop it from logging!!!
this file gets massive!!!!! i have a cron job to remove it daily....
today it 522MB big! |
|
Back to top |
|
|
Rosjahh Apprentice
Joined: 16 Jan 2003 Posts: 182 Location: Below sealevel
|
Posted: Fri Jul 08, 2005 12:04 am Post subject: |
|
|
It's syslog-ng or another logger that creates this file. Check /etc/syslog-ng/syslog-ng.conf if you're using syslog-ng.
Obviously something is going wrong if it gets that big. |
|
Back to top |
|
|
ekutay l33t
Joined: 30 Mar 2005 Posts: 636 Location: Berlin
|
Posted: Fri Jul 08, 2005 12:06 am Post subject: |
|
|
its probably your kernel log file. you should read the file and fix the problem. maybe you have some debugging options compiled into your kernel or into some modules, what makes the output that huge?
so read the logfile, and look for the probably continously appearing error. _________________ -- erol |
|
Back to top |
|
|
decrease789 Apprentice
Joined: 25 Jun 2004 Posts: 194 Location: The United Krapdom
|
Posted: Fri Jul 08, 2005 8:56 am Post subject: |
|
|
Code: | root@nicolson james # tail /var/log/kern.log
Jul 8 09:51:42 nicolson usb-storage: -- transfer complete
Jul 8 09:51:42 nicolson usb-storage: Bulk data transfer result 0x0
Jul 8 09:51:42 nicolson usb-storage: Attempting to get CSW...
Jul 8 09:51:42 nicolson usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
Jul 8 09:51:42 nicolson usb-storage: Status code 0; transferred 13/13
Jul 8 09:51:42 nicolson usb-storage: -- transfer complete
Jul 8 09:51:42 nicolson usb-storage: Bulk status result = 0
Jul 8 09:51:42 nicolson usb-storage: Bulk Status S 0x53425355 T 0x62145 R 0 Stat 0x0
Jul 8 09:51:42 nicolson usb-storage: scsi cmd done, result=0x0
Jul 8 09:51:42 nicolson usb-storage: *** thread sleeping.
root@nicolson james # head /var/log/kern.log
Jul 3 11:38:18 nicolson usb-storage: -- transfer complete
Jul 3 11:38:18 nicolson usb-storage: Bulk status result = 0
Jul 3 11:38:18 nicolson usb-storage: Bulk Status S 0x53425355 T 0x2a7 R 0 Stat 0x0
Jul 3 11:38:18 nicolson usb-storage: scsi cmd done, result=0x0
Jul 3 11:38:18 nicolson usb-storage: *** thread sleeping.
Jul 3 11:38:18 nicolson usb-storage: queuecommand called
Jul 3 11:38:18 nicolson usb-storage: *** thread awakened.
Jul 3 11:38:18 nicolson usb-storage: Command WRITE_10 (10 bytes)
Jul 3 11:38:18 nicolson usb-storage: 2a 00 00 4c 00 6f 00 00 08 00
Jul 3 11:38:18 nicolson usb-storage: Bulk Command S 0x43425355 T 0x2a8 L 4096 F 0 Trg 0 LUN 0 CL 10 | so obviously has something to do with to do with usb-storage module, but I probably have some stupid debugging option compiled into my kernel.... i will need to take a look.... I already thought i might have to recompile my kernel and i think i removed all options that could be related.... but i will take another look....
is there an equivalent of usb-storage for firewire? I am moving to firewire soon anyway....
James |
|
Back to top |
|
|
decrease789 Apprentice
Joined: 25 Jun 2004 Posts: 194 Location: The United Krapdom
|
Posted: Fri Jul 08, 2005 9:02 am Post subject: |
|
|
in posting my last reply i noticed that the dates where different.... so obviously my cron job wasnt working which is strange...... Code: | root@nicolson cron.daily # ll
total 32K
4.0K -rwxr-xr-x 1 root root 35 May 31 17:45 kern.log.cron |
|
|
Back to top |
|
|
ekutay l33t
Joined: 30 Mar 2005 Posts: 636 Location: Berlin
|
Posted: Fri Jul 08, 2005 9:24 am Post subject: |
|
|
consider logrotate _________________ -- erol |
|
Back to top |
|
|
decrease789 Apprentice
Joined: 25 Jun 2004 Posts: 194 Location: The United Krapdom
|
Posted: Fri Jul 08, 2005 9:57 am Post subject: |
|
|
i have logrotate..... logrotate wont fix my problem... its a MASSIVE log file per DAY |
|
Back to top |
|
|
ekutay l33t
Joined: 30 Mar 2005 Posts: 636 Location: Berlin
|
Posted: Fri Jul 08, 2005 10:52 am Post subject: |
|
|
decrease789 wrote: | i have logrotate..... logrotate wont fix my problem... its a MASSIVE log file per DAY |
got it, but the reason for the logfile are IMHO your debug options for usb. to rotate and compress logfiles, logrotate could be the weapon of choice. if your cron job didn't work properly the file is maybe not > 500MB a day
have you setup your crond properly? there are cronds which has to be merried with cron.daily, cron.hourly and so on. _________________ -- erol |
|
Back to top |
|
|
decrease789 Apprentice
Joined: 25 Jun 2004 Posts: 194 Location: The United Krapdom
|
Posted: Fri Jul 08, 2005 12:10 pm Post subject: |
|
|
Quote: | . if your cron job didn't work properly the file is maybe not > 500MB a day | yeah i know otherwise i wouldnt have mentioned it, but I know for a fact that it does generate at least 64MB per day, I first noticed it when it was 16GB big!!!!!! Quote: | there are cronds which has to be merried with cron.daily, cron.hourly and so on. | what is merried? I just moved cron daemons actually, from vixie-cron to fcron all my other cron jobs work! but I had fcron before July 3rd so I know something as screwed up that particular cron job since then
my cron job is just Code: | #!/bin/sh
rm -f /var/log/kern.log |
|
|
Back to top |
|
|
ekutay l33t
Joined: 30 Mar 2005 Posts: 636 Location: Berlin
|
Posted: Fri Jul 08, 2005 5:36 pm Post subject: |
|
|
decrease789 wrote: | what is merried? I just moved cron daemons actually, from vixie-cron to fcron all my other cron jobs work! but I had fcron before July 3rd so I know something as screwed up that particular cron job since then | Sorry, I mistyped married...
you have to perform Code: | crontab /etc/crontab | in order to activate the cron.hourly, cron.daily ...
there is also the fine cron guide http://www.gentoo.org/doc/en/cron-guide.xml here _________________ -- erol |
|
Back to top |
|
|
|