From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199610271809.NAA13322@sub2317.jic.com> Date: Sun, 27 Oct 1996 13:09:07 -0500 From: Eric Youngdale Subject: Re: SCSI driver times out on UDB? >> I doubt that this will work. None of the drivers currently support >>having more than one initiator on the bus at one time. >> > >Think again, billybob: Since I wrote large parts of the scsi layer, I think I have a pretty good idea of what is going on :-). I believe the real problem would be if you were trying to heavily use the disk from both machines at the same time. It depends a bit upon whether the devices support tagged queueing or not (i.e. multiple outstanding requests to the same device). If not, one host will see the device is busy when the other one is using it. With tagged queueing, I am not sure what would happen, as the queue could get filled in strange ways. If the queue is filled with requests from machine A, and machine B doesn't get it's requests satisfied in a timely fashion, machine B will assume the bus is locked up, and start trying to unjam it - typically this would involve either BUS DEVICE RESET or BUS RESET. This is likely to severely screw up machine A, since it would appear to that machine like it's requests timed out (when in fact they were dropped if the reset used cleared the device), and then machine A would start trying to reset the bus in order to clear the condition... To eliminate this possibility, one would need to fix things so that each host had knowledge of the other one, so that it could make allowances for the problems. Ideally the two hosts could communicate (provided that you could put them in target mode), to swap notes about what devices are in use and what devices are busy, but this would require a fairly complicated interaction. A simpler solution would be to make use of a feature of SCSI that was designed for exactly this case. You can 'reserve' a device, such that any other hosts on the bus would find out that the device is busy. I would hesitate to use this in the normal case because it adds additional overhead to command processing, but it would probably be the easiest solution to implement. -Eric -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null