Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Log file /var/log/messages is over 5GB
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
cld71
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jul 2005
Posts: 128

PostPosted: Wed Feb 16, 2011 6:36 pm    Post subject: Log file /var/log/messages is over 5GB Reply with quote

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
View user's profile Send private message
ssteinberg
Apprentice
Apprentice


Joined: 09 Jul 2010
Posts: 206
Location: Israel

PostPosted: Wed Feb 16, 2011 6:54 pm    Post subject: Reply with quote

Run
gzip /proc/config.gz -cd | grep DEBUG
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Wed Feb 16, 2011 7:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
lxg
Veteran
Veteran


Joined: 12 Nov 2005
Posts: 1019
Location: Aachen, Germany

PostPosted: Wed Feb 16, 2011 7:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
cld71
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jul 2005
Posts: 128

PostPosted: Wed Feb 16, 2011 8:56 pm    Post subject: Reply with quote

That worked.
THANKS!!!!

logrotate is installed don't know why it didn't chunks and compress messages.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23082

PostPosted: Thu Feb 17, 2011 3:40 am    Post subject: Reply with quote

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
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3468
Location: Canada

PostPosted: Thu Feb 17, 2011 6:02 am    Post subject: Reply with quote

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
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Thu Feb 17, 2011 6:58 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum