Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Feb 2004 17:11:56 +0800
From:      jerry_ch_lee@wistron.com.tw
To:        Mark Terribile <materribile@yahoo.com>
Cc:        freebsd-scsi@freebsd.org
Subject:   Re: scsi_target crashed when initiator is using LSI PCI-X Ultra320 SCSI card
Message-ID:  <48256E3F.00328547.00@TWTPEDS1.WISTRON.COM.TW>

next in thread | raw e-mail | index | archive | help



Hi Mark:

But when the initiator is FreeBSD, it works pretty fine... I am not sure what is
happening?
I am sorry that I have something in my post... I am using Windows 2003 on
initiator, not 2000.
This still happens to me, even I used Adaptec  39320 card.

Rescanning is not working...

Best regards,

Jerry Lee
Senior Engineer
Broadband & Storage
Wistron Corp.
(TEL)     886-2-86911521
(CELL)   886-920894353
(EMAIL) jerry_ch_lee@wistron.com.tw
(MSN)    i_am_jhlee@hotmail.com





Mark Terribile <materribile@yahoo.com> on 2004/02/19 01:54:42 PM
                                                              
                                                              
                                                              
 To:      Jerry CH Lee/WHQ/Wistron@Wistron,                   
          freebsd-scsi@freebsd.org                            
                                                              
                                                              
 cc:                                                          
                                                              
                                                              
                                                              
                                                              
 Subject: Re: scsi_target crashed when initiator is using LSI 
          PCI-X Ultra320    SCSI card                         
                                                              


This document is classified as     Normal




Jerry,


> Target crashed! ( I can't grab the log because it's not logged in messages)

My recent work was on a different setup (Linux initiator) but I found that
when _anything_ changed (including the SCSI target emulator exiting or dying)
I had to rescan on the initiator or else things would crash soon.  Try
rescanning the initiator after the emulator shuts down, before restarting it.

And then you have to debug the target emulator.  It took me a while to figure
out how the confounded thing works.  The key is the queues on which the
transaction structs (I don't have it in front of me and do not recall their
names, but there is one kind for ATIOs and one for CTIOs) are placed.  They
start out on one fixed queue, and are placed on another (different for ATIO
and CTIO) when the struct is sent to the SCSI target layer via the write(2)
on targN.  When they are returned with work to do, the CTIOs are placed on
queues linked to the ATIOs while the async read or write is underway.

Side note in case you haven't been watching VERY closely: /dev/targ0,
/dev/targ1, etc., are created WHEN YOU OPEN THEM in FreeBSD5.x; if they
exist you can't open them because something else has the file open!

Hope this helps.  I'm curious about this one; I may have to play
target to a MicroSoft initiator one of these days.

Seems lots of people are making SCSI targets of themselves these days.

    Mark Terribile
    materribile@yahoo.com


__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48256E3F.00328547.00>