Re: 2.6.0-test8 scsi logging not working

From: Mike Anderson
Date: Fri Oct 24 2003 - 00:14:45 EST


jtholmesjr@xxxxxxxxxxx [jtholmesjr@xxxxxxxxxxx] wrote:
> The problem:
>
> I thought
> echo "scsi log all" >/proc/scsi/scsi
> with
> scsi_logging=y in .config
> would turn on kernel scsi logging and put some notification line
> in /var/log/messages
> indicating scsi logging was now active at such and such a level
>
> that is not happening and I have a external drive connected via
> usb talking scsi that cannot be unmounted and i need to trace
> scsi action so I can post here.
>
> lsscsi output is
> [0:0:0:0] disk USB 2.0 Storage Device 0100 /dev/sda
> [1:0:0:0] disk Linux scsi_debug 0004 /dev/sdb
>

The scsi logging interface switched control from proc to sysctl.

sysctl -w dev.scsi.logging_level=0xffffffff

Will result in a scsi log all. You need to use caution if syslogd is
running and you have other scsi devices.

-andmike
--
Michael Anderson
andmike@xxxxxxxxxx

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/