[7176] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Re: how to enable scsi logging?

daemon@ATHENA.MIT.EDU (Douglas Gilbert)
Tue Sep 7 09:18:53 1999

Date:   Tue, 07 Sep 1999 09:19:55 -0400
From:   Douglas Gilbert <dgilbert@interlog.com>
To:     "der.hans" <linux-scsi@LuftHans.com>
CC:     Raju K V <rajukv@wipinfo.soft.net>,
        Linux SCSI mailing list <linux-scsi@vger.rutgers.edu>

"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 majordomo@vger.rutgers.edu

home help back first fref pref prev next nref lref last post