View previous topic :: View next topic |
Author |
Message |
cld71 Tux's lil' helper
Joined: 12 Jul 2005 Posts: 128
|
Posted: Wed Feb 16, 2011 6:36 pm Post subject: Log file /var/log/messages is over 5GB |
|
|
The system keeps adding the following in dmesg, and /var/log/messages which is over 5GB:
Code: |
usb-storage: Command WRITE_10 (10 bytes)
usb-storage: 2a 00 12 9f 26 f0 00 00 08 00
usb-storage: Bulk Command S 0x43425355 T 0x5251b L 4096 F 0 Trg 0 LUN 0 CL 10
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_sglist: xfer 4096 bytes, 1 entries
usb-storage: Status code 0; transferred 4096/4096
usb-storage: -- transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x5251b R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
|
The system has a Western Digital - My Passport 320GB hard drive.
Does anyone know how to stop the messages?
Is the kernel configuration causing this?
Is it a configuration problem with syslog-ng? |
|
Back to top |
|
|
ssteinberg Apprentice
Joined: 09 Jul 2010 Posts: 206 Location: Israel
|
Posted: Wed Feb 16, 2011 6:54 pm Post subject: |
|
|
Run
gzip /proc/config.gz -cd | grep DEBUG |
|
Back to top |
|
|
gerard27 Advocate
Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
Posted: Wed Feb 16, 2011 7:02 pm Post subject: |
|
|
It might be the kernel config.
Do cd /usr/src/linux > make menuconfig.
Go to Device Drivers > USB Support > USB Mass Storage Support.
Right under it you'll see: USB Mass Storage Debug.
If that's set it explains your problem.
Gerard. _________________ To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download |
|
Back to top |
|
|
lxg Veteran
Joined: 12 Nov 2005 Posts: 1019 Location: Aachen, Germany
|
Posted: Wed Feb 16, 2011 7:12 pm Post subject: |
|
|
By the way, consider installing logrotate, it will cut log files into chunks and compress them. Then they take significantly less space, and old ones are deleted automatically. _________________ lxg.de – codebits and tech talk |
|
Back to top |
|
|
cld71 Tux's lil' helper
Joined: 12 Jul 2005 Posts: 128
|
Posted: Wed Feb 16, 2011 8:56 pm Post subject: |
|
|
That worked.
THANKS!!!!
logrotate is installed don't know why it didn't chunks and compress messages. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23081
|
Posted: Thu Feb 17, 2011 3:40 am Post subject: |
|
|
cld71 wrote: | logrotate is installed don't know why it didn't chunks and compress messages. | Depending on the configuration and the amount of noise from the kernel, it is possible that your logs were already rotated, but grow so fast that they have already become huge again. Check that the logrotate job runs often enough, and that it is configured to rotate the relevant files. |
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3468 Location: Canada
|
Posted: Thu Feb 17, 2011 6:02 am Post subject: |
|
|
Hu wrote: | cld71 wrote: | logrotate is installed don't know why it didn't chunks and compress messages. | Depending on the configuration and the amount of noise from the kernel, it is possible that your logs were already rotated, but grow so fast that they have already become huge again. Check that the logrotate job runs often enough, and that it is configured to rotate the relevant files. |
You can also set the logrotate to rotate based on the size reached |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Thu Feb 17, 2011 6:58 am Post subject: |
|
|
ssteinberg wrote: | Run
gzip /proc/config.gz -cd | grep DEBUG |
NB: you can save yourself a few keystrokes:
Code: |
zgrep DEBUG /proc/config.gz
|
_________________ Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash |
|
Back to top |
|
|
|