SCSI target mode?

SCSI target mode?

Post by Jule » Fri, 01 Apr 2005 21:34:56



Initial asking around suggests it's not possible as there's no Linux
kernel support for it, but...

... does Linux support running as a SCSI target (rather than a host) at
all?

As a lot of my work involves computer preservation, it'd be quite handy to
emulate an old SCSI disk / tape / CDROM using a modern Linux PC - when
hooked up to an old system, the old system would just think it was
talking to a standard SCSI device.

I'm quite happy to write sg driver code, but I get the impression that
there's no underlying support at all - the kernel always assumes it's the
host rather than target :-(

cheers

Jules

 
 
 

SCSI target mode?

Post by Tauno Voipi » Sat, 02 Apr 2005 03:51:14



> Initial asking around suggests it's not possible as there's no Linux
> kernel support for it, but...

> ... does Linux support running as a SCSI target (rather than a host) at
> all?

> As a lot of my work involves computer preservation, it'd be quite handy to
> emulate an old SCSI disk / tape / CDROM using a modern Linux PC - when
> hooked up to an old system, the old system would just think it was
> talking to a standard SCSI device.

> I'm quite happy to write sg driver code, but I get the impression that
> there's no underlying support at all - the kernel always assumes it's the
> host rather than target :-(

> cheers

> Jules

The SCSI target does all the work. The master only starts it
up. AFAIK, the interface chips used on PC SCSI cards do not
handle the target mode.

--

Tauno Voipio
tauno voipio (at) iki fi

 
 
 

SCSI target mode?

Post by Jule » Sat, 02 Apr 2005 06:29:00



> The SCSI target does all the work. The master only starts it
> up.

Yep, but this is using the SCSI HBA as the target - with another HBA on
the bus as the master. It's all within the SCSI spec AFAIK, but I'm not
convinced that the Linux kernel drivers support target mode at all...

Quote:> AFAIK, the interface chips used on PC SCSI cards do not handle the
> target mode.

Wow - that's pretty cheap and crappy if they don't :( I assumed the
hardware side of it would always allow either (at least for
reasonable-quality HBA's, forgetting cheap scanner interfaces etc.) and it
was just the software that might be limited.

cheers

Jules

 
 
 

SCSI target mode?

Post by Tauno Voipi » Sat, 02 Apr 2005 05:44:53




>>The SCSI target does all the work. The master only starts it
>>up.

> Yep, but this is using the SCSI HBA as the target - with another HBA on
> the bus as the master. It's all within the SCSI spec AFAIK, but I'm not
> convinced that the Linux kernel drivers support target mode at all...

>>AFAIK, the interface chips used on PC SCSI cards do not handle the
>>target mode.

> Wow - that's pretty cheap and crappy if they don't :( I assumed the
> hardware side of it would always allow either (at least for
> reasonable-quality HBA's, forgetting cheap scanner interfaces etc.) and it
> was just the software that might be limited.

The target has to do more than the initiator.
Please read the SCSI specification. After initiation,
the transfer is controlled and timed by the target
alone, the initiator just complies.

--

Tauno Voipio
tauno voipio (at) iki fi

 
 
 

SCSI target mode?

Post by Jack Master » Tue, 05 Apr 2005 02:53:12





>>> The SCSI target does all the work. The master only starts it
>>> up.

>> Yep, but this is using the SCSI HBA as the target - with another HBA on
>> the bus as the master. It's all within the SCSI spec AFAIK, but I'm not
>> convinced that the Linux kernel drivers support target mode at all...

>>> AFAIK, the interface chips used on PC SCSI cards do not handle the
>>> target mode.

>> Wow - that's pretty cheap and crappy if they don't :( I assumed the
>> hardware side of it would always allow either (at least for
>> reasonable-quality HBA's, forgetting cheap scanner interfaces etc.)
>> and it
>> was just the software that might be limited.

> The target has to do more than the initiator.
> Please read the SCSI specification. After initiation,
> the transfer is controlled and timed by the target
> alone, the initiator just complies.

Guess you will need to take the board from an old HD or scanner, and do
some soldering. Someone in vmsnet.pdp-11 just did a similar thing for
Q-bus storage (see http://www.geocities.com/saipan59/dec/rxv11_emu.html)

J

 
 
 

1. SCSI Driver that Supports SCSI Target Mode

  A co-worker is looking for a SCSI driver that will support SCSI target
  mode on a Unix transfer the data over a SCSI bus to a host system for
  further processing.  Please specify the board that is required as
  well.  If the driver is in source, it would be ideal.

  Email any replies.  And thanks in advance.


--
The UUCP Mailer

2. changing font for VT's

3. SCSI target mode driver to virtual disk

4. smail config files all messed up. help

5. SCSI target mode

6. Where is xfstt for RedHat?

7. Concern: Do SCSI Target mode drivers exist for Linux

8. Sendmail clientmailqueue

9. SCSI Target mode

10. SCSI Target Mode

11. driver put scsi bus to target mode

12. Target mode SCSI.

13. SCSI card and driver with target mode support