"der.hans" wrote:
>
> On Tue, 7 Sep 1999, Raju K V wrote:
>
> > hi all,
> >
> > how do I enable scsi logging? Do I have to set some flag and recompile
> > the kernel or is there a /proc/scsi interface to it?
>
> "If you need a _lot_ of the SCSI sub-system debug information (mainly from
> the mid-level) then try 'echo "scsi dump 0" > /proc/scsi/scsi' and lots of
> debug will appear in your console/log."
>
> That's from /usr/src/linux/Documentation/scsi-generic.txt. I think some of
> the drivers have other options as well. Check the different README files
> under /usr/src/linux/drivers/scsi for more info.
You will also need to compile the kernel with
CONFIG_SCSI_LOGGING=y
... and it would be a good idea to turn on
CONFIG_SCSI_CONSTANTS=y
which gives fuller error messages in your log file
when something goes wrong.
If you want ongoing debug output, then the form:
# echo "scsi log <token> <number>" > /proc/scsi/scsi
will do this. See brief explanation around line 2235
on linux/drivers/scsi/scsi.c . Be careful if your root
file system is on a SCSI disk because this debug output
can cause an infinite loop with your log file !
Doug Gilbert
Doug Gilbert
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]