OpenSuse 10.0 - how to stop kernel logging for usb-storage??
[OpenSuse 10.0 - how to stop kernel logging for usb-storage??] Hi, I got a problem with opensuse 10.0 logging mechanism. It works properly in most instances except when I connect an external usb-2 device (ie. a hard disk). The external usb works fine BUT /var/log/messages becomes VERY huge VERY fast with tons of data from kernel - see below. Does anyone have any idea how to reduce the amount of output from the kernel for usb-storage. Thanks for any help and/or advice. Rgds. Apr 12 22:20:01 rentsch-asia /usr/sbin/cron[21890]: (root) CMD (/usr/appbin/getmail.sh 1>/dev/null 2>&1) Apr 12 22:24:13 rentsch-asia kernel: usb-storage: queuecommand called Apr 12 22:24:13 rentsch-asia kernel: usb-storage: *** thread awakened. Apr 12 22:24:13 rentsch-asia kernel: usb-storage: Command READ_10 (10 bytes) Apr 12 22:24:13 rentsch-asia kernel: usb-storage: 28 00 00 00 00 00 00 00 01 00 Apr 12 22:24:13 rentsch-asia kernel: usb-storage: Bulk Command S 0x43425355 T 0x616 L 512 F 128 Trg 0 LUN 0 CL 10 Apr 12 22:24:13 rentsch-asia kernel: usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes Apr 12 22:24:13 rentsch-asia kernel: usb-storage: Status code 0; transferred 31/31 Apr 12 22:24:13 rentsch-asia kernel: usb-storage: -- transfer complete Apr 12 22:24:13 rentsch-asia kernel: usb-storage: Bulk command transfer result=0 Apr 12 22:24:13 rentsch-asia kernel: usb-storage: usb_stor_bulk_transfer_sglist: xfer 512 bytes, 1 entries Apr 12 22:24:13 rentsch-asia kernel: usb-storage: Status code 0; transferred 512/512 Apr 12 22:24:13 rentsch-asia kernel: usb-storage: -- transfer complete Apr 12 22:24:13 rentsch-asia kernel: usb-storage: Bulk data transfer result 0x0 Apr 12 22:24:13 rentsch-asia kernel: usb-storage: Attempting to get CSW... Apr 12 22:24:13 rentsch-asia kernel: usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes Apr 12 22:24:13 rentsch-asia kernel: usb-storage: Status code 0; transferred 13/13 Apr 12 22:24:13 rentsch-asia kernel: usb-storage: -- transfer complete Apr 12 22:24:13 rentsch-asia kernel: usb-storage: Bulk status result = 0 Apr 12 22:24:13 rentsch-asia kernel: usb-storage: Bulk Status S 0x53425355 T 0x616 R 0 Stat 0x0 Apr 12 22:24:13 rentsch-asia kernel: usb-storage: scsi cmd done, result=0x0 Apr 12 22:24:13 rentsch-asia kernel: usb-storage: *** thread sleeping. Apr 12 22:24:13 rentsch-asia kernel: usb-storage: queuecommand called Apr 12 22:24:13 rentsch-asia kernel: usb-storage: *** thread awakened. Apr 12 22:24:13 rentsch-asia kernel: usb-storage: Command READ_10 (10 bytes) Apr 12 22:24:13 rentsch-asia kernel: usb-storage: 28 00 00 00 00 01 00 00 29 00 Apr 12 22:24:13 rentsch-asia kernel: usb-storage: Bulk Command S 0x43425355 T 0x617 L 20992 F 128 Trg 0 LUN 0 CL 10 Apr 12 22:24:13 rentsch-asia kernel: usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes Apr 12 22:24:13 rentsch-asia kernel: usb-storage: Status code 0; transferred 31/31 Apr 12 22:24:13 rentsch-asia kernel: usb-storage: -- transfer complete Apr 12 22:24:13 rentsch-asia kernel: usb-storage: Bulk command transfer result=0 Apr 12 22:24:13 rentsch-asia kernel: usb-storage: usb_stor_bulk_transfer_sglist: xfer 20992 bytes, 6 entries Apr 12 22:24:13 rentsch-asia kernel: usb-storage: Status code 0; transferred 20992/20992 Apr 12 22:24:13 rentsch-asia kernel: usb-storage: -- transfer complete Apr 12 22:24:13 rentsch-asia kernel: usb-storage: Bulk data transfer result 0x0 Apr 12 22:24:13 rentsch-asia kernel: usb-storage: Attempting to get CSW... [Same stuff contnues for thousands of lines!!!!!!]
Otto Rodusek (AP-SGP) schrieb:
[OpenSuse 10.0 - how to stop kernel logging for usb-storage??]
Hi,
I got a problem with opensuse 10.0 logging mechanism. It works properly in most instances except when I connect an external usb-2 device (ie. a hard disk). The external usb works fine BUT /var/log/messages becomes VERY huge VERY fast with tons of data from kernel - see below. Does anyone have any idea how to reduce the amount of output from the kernel for usb-storage. Thanks for any help and/or advice. Rgds.
Let me guess. You are not using the default SUSE kernel. Regards, Carl-Daniel -- http://www.hailfinger.org/
Hi Carl, You guessed wrong!! It is the plain vanilla kernel as delivered by suse. uname -a Linux rentsch-asia 2.6.13-15.8-default #1 Wed Mar 29 01:28:03 SGT 2006 x86_64 x86_64 x86_64 GNU/Linux Why do you suspect a non-standard kernel?? Is it possible the DVD I download has a kernel patch with a debugging factor?? I did do a YOU update and that did install a new kernel - but the problem was the same with both !! Rgds. Otto. Carl-Daniel Hailfinger wrote:
Otto Rodusek (AP-SGP) schrieb:
[OpenSuse 10.0 - how to stop kernel logging for usb-storage??]
Hi,
I got a problem with opensuse 10.0 logging mechanism. It works properly in most instances except when I connect an external usb-2 device (ie. a hard disk). The external usb works fine BUT /var/log/messages becomes VERY huge VERY fast with tons of data from kernel - see below. Does anyone have any idea how to reduce the amount of output from the kernel for usb-storage. Thanks for any help and/or advice. Rgds.
Let me guess. You are not using the default SUSE kernel.
Regards, Carl-Daniel
Otto Rodusek (AP-SGP) schrieb:
Hi Carl,
You guessed wrong!! It is the plain vanilla kernel as delivered by suse.
Sorry, was just my first guess.
uname -a
Linux rentsch-asia 2.6.13-15.8-default #1 Wed Mar 29 01:28:03 SGT 2006 x86_64 x86_64 x86_64 GNU/Linux
Please run zcat /proc/config.gz|grep CONFIG_USB_STORAGE_DEBUG That should result in # CONFIG_USB_STORAGE_DEBUG is not set If so, please open a bug in SUSE bugzilla against the kernel with the subject: "CONFIG_USB_STORAGE_DEBUG enabled, but not set in .config" and add kernel01@hailfinger.org to the CC: list. Regards, Carl-Daniel -- http://www.hailfinger.org/
Hi Carl, Darn you were right!!!! I just re-linked the kernel and commented out the # CONFIG_USB_STORAGE_DEBUG is not set in .config and that seems to have solved the problem!!! Much thanks for your help !!!! Rgds. Otto. Carl-Daniel Hailfinger wrote:
Otto Rodusek (AP-SGP) schrieb:
Hi Carl,
You guessed wrong!! It is the plain vanilla kernel as delivered by suse.
Sorry, was just my first guess.
uname -a
Linux rentsch-asia 2.6.13-15.8-default #1 Wed Mar 29 01:28:03 SGT 2006 x86_64 x86_64 x86_64 GNU/Linux
Please run zcat /proc/config.gz|grep CONFIG_USB_STORAGE_DEBUG
That should result in # CONFIG_USB_STORAGE_DEBUG is not set
If so, please open a bug in SUSE bugzilla against the kernel with the subject: "CONFIG_USB_STORAGE_DEBUG enabled, but not set in .config" and add kernel01@hailfinger.org to the CC: list.
Regards, Carl-Daniel
On Thu, Apr 13, 2006 at 12:55:36AM +0800, Otto Rodusek (AP-SGP) wrote:
Hi Carl, <snip>
Could it be possible not to toppost in the future? Thanks. http://en.opensuse.org/Opensuse_mailing_list_netiquette for more info. houghi -- Nutze die Zeit. Sie ist das Kostbarste, was wir haben, denn es ist unwiederbringliche Lebenszeit. Leben ist aber mehr als Werk und Arbeit, und das Sein wichtiger als das Tun - Johannes Müller-Elmau
participants (3)
-
Carl-Daniel Hailfinger
-
houghi
-
Otto Rodusek (AP-SGP)