go Back

Documents
Projects
File Archive

About Me
Some Links
Fun stuff

Login - Mail




access(2) OpenSolaris

Sun, SPARCs and SCSI:

Ever feeled confused about SCSI and Sun boxes? Here is a small brief.

Index:


SCSI Types:

Single Ended SCSI:
Single ended SCSI has 2 leaders for each bit you want to transfer; the first one is always 0 volt and the second one pends between 0 and +5 volt, thus indicating a binary zero at 0 volt and a binary 1 if its +5 volt.

This might cause you some problem, if for example you get +2 volt (might occur in case of an error somewhere, or if its a long cable) , is that a binary 0 or a 1?

The maximum guaranteed lenght for a single ended SCSI cable to work is 3 metres.

Differential SCSI:
Differential SCSI has 3 leaders, one 0 volt, the others -5 and +5 volt. The databit is a binary zero when the total is -5 volt, and a binary one at +5 volt (eg the difference between -5 and +5 sets the databit). Since you need an extra leeder the cable will be a little bit thicker.

The maximum guaranteed lenght for a differential SCSI cable is 25 metres.

A rather common way is to combine singleended with differential, first you have a single ended controller, then you passes it thru a converter and a diff scsi cable, followed by another controller and a singleended disk. (most disks are single ended).
This way you can have longer scsi cables.

Now adays its common to combine SCSI with opticalcables, since optical cables can transfer more data than SCSI cables, and they can be much longer.


Sun/SCSI standards:

These are the SCSI standards you might find on a Sun box:
Standard: Clock rate: Bus width: Data rate:*1 Command rate:*2 Max #of devices:*3
SCSI-1(very very old) 5 MHz 8 bit 5 MB/sec 5 MB/sec 7
SCSI-2(fast SCSI) 10 MHz 8 bit 10 MB/sec 5 MB/sec 7
SCSI-2(fast/wide SCSI) 10 MHz 16 bit 20 MB/sec 5 MB/sec 15
SCSI-2(ultra) 20 MHz 16 bit 40 MB/sec 5 MB/sec 15
Optical*4 25 MHz - 25 MB/sec Duplex -
Optical*5 100 MHz - 100 MB/sec Duplex -

Explainations:
*1: The Data rate can be calculated by looking at how much the device can send at each cycle. SCSI-1 for example, sends 8 bits/cycle and makes 5 million cycles/second, therefor the data rate is 5 MB/sec.(8 bits = 1 byte)

*2: As you can see, the command rate is always set to 5 MHz, this is due to compability issues. All commands, for example "read" is sent at 5 Mhz, but before the device starts sending its data, there is a negotiation between the controller and the device.

*3: Equal to the bus width, minus 1 for the controller

*4: This old type of optical connection was used on the old arrays such as SSA1xx and SSA2xx.

*5: This is the current optical one, it can be found for example in the A3500.


About the targets:

The targets are most commonly assigned like this:
  • 7 - Holds the SCSI controller.
  • 6 - Assigned for CD-roms.
  • 4 and 5 - Assigned for tapes.
  • 3 - Boot disk.
  • 0,1 and 2 - Other disks.

This is because that the higher SCSI target, the higher priority, and you do want the controller to have the highest priority followed by the slowest devices (tapes, cdroms) on high priorities as well.

If the faster devices would have higher priority than the slower it would be rather difficult to use the slower ones.


09:37 15/Aug/2010
footer image