Date: Wed, 4 Jul 2001 22:15:04 -0700 (PDT) From: Matthew Jacob <mjacob@feral.com> To: Xubin He <xbhe@yahoo.com> Cc: scsi@freebsd.org Subject: Re: target mode usage quick primer Message-ID: <Pine.BSF.4.21.0107042214410.26426-100000@beppo> In-Reply-To: <20010705034040.23800.qmail@web13007.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Go chdir to /dev and do the appropriate MAKEDEV magic? On Wed, 4 Jul 2001, Xubin He wrote: > Dear Matthew, > Thank you very much for your detail information.It is > really helpful. Now when I boot the target side > machine,I can see the message > "(targbh0:ahc0:0:-1:-1):Lun now enabled for target > mode", which means that the system has already been > set to target mode.But when I tried to run > ./scsi_target -p 0 -t 0 -l 3 to test the target mode, > I got an error message "/dev/targ.ctl:no such file or > directory."Do you have any idea about this error?Sorry > for bothering you again. Have a great holiday. > ---Ben > --- Matthew Jacob <mjacob@feral.com> wrote: > > > > On Wed, 4 Jul 2001, Ben wrote: > > > > > This message was sent from Geocrawler.com by "Ben" > > <xbhe@yahoo.com> > > > > > > > > > Dear Matthew, > > > I have connected two PCs running FreeBSD 4.3 > > > each with an adaptec 39160 adapter.These two > > > apaters are connected through a SCSI cable. One > > > of the SCSI ID is set to 6,the other is set to 7. > > > I am trying to make one machine running under > > > target mode. What I did is to change > > > AHC_TMODE_ENABLE to 1 and rebuild the > > > kernel.After I reboot these two systems,nothing > > > is new. Could you point out how I shold test the > > > target mode?Thank you very much. > > > Ben > > > > You need the drivers > > > > device scsi_target > > device scsi_targ_bh > > > > in your kernel as well as enabling target mode > > support in either the > > Adaptec driver or the the QLogic driver. Note that > > while the QLogic > > driver supports simultaneous initiator/target mode > > operation, the last > > I checked, the Adaptec doesn't, so for your h/w, you > > have to have the > > initiator side *not* have AHC_TMODE_ENABLE on. You > > might probably want > > to put > > > > device pt > > > > in the initiator side. > > > > Once you boot the target mode side, you'll eee > > wildcard enabling > > via the targbh driver so that commands to > > non-existent luns have > > somebody to actually respond. > > > > Then go off and compile > > /usr/share/examples/scsi_target/scsi_target.c > > and enable a lun for real. > > > > Then boot the initiator side or camcontrol rescan > > the initiator side. > > > > -matt > > > > > > > __________________________________________________ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail > http://personal.mail.yahoo.com/ > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0107042214410.26426-100000>