All Topics  
SCSI

 

   Email Print
   Bookmark   Link






 

SCSI



 
 
Small Computer System Interface, or SCSI , is a set of standards for physically connecting and transferring data between computers and peripheral devices. The SCSI standards define commands
SCSI command

In SCSI computer storage, a command is the basic unit of communication. The SCSI command architecture was originally defined for Parallel SCSI buses but has been carried forward with minimal change for use with Fibre Channel, iSCSI and Serial Attached SCSI....
, protocols, and electrical and optical interfaces
Interface (computer science)

Interface generally refers to an Abstraction_%28computer_science%29 that an entity provides of itself to the outside. This separates the methods of external communication from internal operation, and allows it to be internally modified without affecting the way outside entities interact with it, as well as provide Polymorphism in object-orien...
. SCSI is most commonly used for hard disks and tape drives, but it can connect a wide range of other devices, including scanners and CD
CD-ROM

CD-ROM is a pre-pressed Compact Disc that contains Computer data storage accessible to, but not writable by, a computer. While the Compact Disc format was originally designed for music storage and playback, the 1985 Yellow Book standard developed by Sony and Philips adapted the format to hold any form of Binary file....
 drives.






Discussion
Ask a question about 'SCSI'
Start a new discussion about 'SCSI'
Answer questions from other users
Full Discussion Forum



Encyclopedia


Scsi Logo
Small Computer System Interface, or SCSI , is a set of standards for physically connecting and transferring data between computers and peripheral devices. The SCSI standards define commands
SCSI command

In SCSI computer storage, a command is the basic unit of communication. The SCSI command architecture was originally defined for Parallel SCSI buses but has been carried forward with minimal change for use with Fibre Channel, iSCSI and Serial Attached SCSI....
, protocols, and electrical and optical interfaces
Interface (computer science)

Interface generally refers to an Abstraction_%28computer_science%29 that an entity provides of itself to the outside. This separates the methods of external communication from internal operation, and allows it to be internally modified without affecting the way outside entities interact with it, as well as provide Polymorphism in object-orien...
. SCSI is most commonly used for hard disks and tape drives, but it can connect a wide range of other devices, including scanners and CD
CD-ROM

CD-ROM is a pre-pressed Compact Disc that contains Computer data storage accessible to, but not writable by, a computer. While the Compact Disc format was originally designed for music storage and playback, the 1985 Yellow Book standard developed by Sony and Philips adapted the format to hold any form of Binary file....
 drives. The SCSI standard defines command sets for specific peripheral device types
SCSI Peripheral Device Type

A SCSI Peripheral Device Type is a way of describing what capabilities are provided by a SCSI device. It is a five-bit field which can be found in the SCSI Request Sense Command provided in response to an SCSI Inquiry Command....
; the presence of "unknown" as one of these types means that in theory it can be used as an interface to almost any device, but the standard is highly pragmatic and addressed toward commercial requirements.

  • SCSI is an intelligent interface: it hides the complexity of physical format. Every device attaches to the SCSI bus in a similar manner.
  • SCSI is a peripheral interface: up to 8 or 16 devices can be attached to a single bus. There can be any number of hosts and peripheral devices but there should be at least one host.
  • SCSI is a buffered interface: it uses hand shake signals between devices, SCSI-1, SCSI-2 have the option of parity error checking. Starting with SCSI-U160 (part of SCSI-3) all commands and data are error checked by a CRC32
    Cyclic redundancy check

    A cyclic redundancy check is a type of function that takes as input a data stream of any length, and produces as output a value of a certain space, commonly a 32-bit integer....
     checksum.
  • SCSI is a peer to peer interface: the SCSI protocol defines communication from host to host, host to a peripheral device, peripheral device to a peripheral device. However most peripheral devices are exclusively SCSI targets, incapable of acting as SCSI initiator
    SCSI initiator

    In computer storage, a SCSI initiator is the endpoint that initiates a SCSI session, that is, sends a SCSI command. The initiator usually does not provide any logical unit numbers ....
    s—unable to initiate SCSI transactions themselves. Therefore peripheral-to-peripheral communications are uncommon, but possible in most SCSI applications. The Symbios Logic
    Symbios Logic

    Symbios Logic was a manufacturer of SCSI host adapter chipsets and disk array storage subsystems. It was originally established as a division of NCR Corporation in 1972, before NCR's takeover by AT&T in 1991....
     53C810 chip is an example of a PCI
    Peripheral Component Interconnect

    The PCI Local Bus , or Conventional PCI, is a computer bus for attaching computer hardware in a computer. These devices can take either the form of an integrated circuit fitted onto the motherboard itself, called a planar device in the PCI specification or an expansion card that fits into a socket....
     host interface that can act as a SCSI target.


History

SCSI was derived from "SASI", the "Shugart Associates
Shugart Associates

Shugart Associates was a computer peripheral manufacturer that dominated the floppy disk drive market in the late 1970s and is famous for introducing the Floppy_disk_drive#The_5.C2.BC-inch_minifloppy....
 System Interface", introduced by that company in 1981. A SASI controller provided a bridge between a hard disk drive's low-level interface and a host computer, which needed to read blocks of data. SASI controller boards were typically the size of a hard disk drive and usually mounted on top of them. SASI, which was used in mini- and microcomputers, defined the interface as using a 50-pin flat ribbon connector which was adopted as the SCSI-1 connector. Many, if not all, of the then existing SASI controllers were SCSI-1 compatible.

Larry Boucher is considered to be the "father" of SASI and SCSI due to his pioneering work first at Shugart Associates
Shugart Associates

Shugart Associates was a computer peripheral manufacturer that dominated the floppy disk drive market in the late 1970s and is famous for introducing the Floppy_disk_drive#The_5.C2.BC-inch_minifloppy....
 and then at Adaptec
Adaptec

Adaptec is a computer hardware company based in Milpitas, California that primarily produces host adapters for connecting computer storage devices to computers....
.

The ANSI committee documenting the standard would not allow it to be named after a company. Almost a full day was devoted to agreeing to name the standard "Small Computer System Interface," which Boucher intended to be pronounced "sexy"; however, Dal Allan pronounced the new acronym as "scuzzy" and that stuck.

The "small" part in SCSI is historical; since the mid-1990s, SCSI has been available on even the largest of computer systems.

Since its standardization in 1986, SCSI has been commonly used in the Amiga
Amiga

The Amiga is a family of personal computers originally developed by Amiga Corporation. Development on the Amiga began in 1982 with Jay Miner as the principal hardware designer....
, Apple Macintosh
Macintosh

File:Imac alu.pngMacintosh, commonly shortened to Mac, is a brand name which covers several lines of personal computers designed, developed, and marketed by Apple Inc....
 and Sun Microsystems
Sun Microsystems

Sun Microsystems, Inc. is a multinational corporation vendor of computers, computer components, computer software, and information technology services, founded on February 24, 1982....
 computer lines and PC server systems. Apple started using IDE
AT Attachment

AT Attachment and AT Attachment Packet Interface are Electrical connector standardization for the connection of computer storage devices such as hard disks, solid-state drives, and CD-ROM drives in computers....
 for its low-end machines with the Macintosh Quadra 630 in 1994, and added it to its high-end desktops starting with the Power Macintosh G3 in 1997. Apple dropped on-board SCSI completely (in favor of IDE and FireWire
FireWire

The IEEE 1394 interface is a serial communications interface standard for high-speed communications and isochronous real-time data transfer, frequently used by personal computers, as well as in digital audio, digital video, automotive, and aeronautics applications....
) with the Blue & White G3 in 1999. Sun has switched its lower end range to Serial ATA
Serial ATA

The Serial ATA computer bus is a storage-interface for connecting Host adapter to mass storage devices .Conceptually, SATA is a 'wire replacement' for the older AT Attachment standard ....
 (SATA). SCSI has never been popular in the low-priced IBM PC world, owing to the lower cost and adequate performance of its ATA hard disk standard. SCSI drives and even SCSI RAID
RAID

RAID is an acronym first defined by David A. Patterson , Garth A. Gibson and Randy Katz at the University of California, Berkeley in 1987 to describe a Redundant Array of Inexpensive Disks, a technology that allowed computer users to achieve mainframe-class storage reliability from low-cost and less reliable PC-class disk-drive componen...
s became common in PC workstations for video or audio production, but the appearance of large cheap SATA drives means that SATA is rapidly taking over this market.

Currently, SCSI is popular on high-performance workstations and servers. RAIDs on servers almost always use SCSI hard disks, though a number of manufacturers offer SATA-based RAID systems as a cheaper option. Desktop computers and notebooks more typically use the ATA/IDE or the newer SATA interfaces for hard disks, and USB, e-sata, and FireWire connections for external devices.

SCSI interfaces


SCSI is available in a variety of interfaces. The first, still very common, was parallel SCSI
Parallel SCSI

Parallel SCSI is one of the interface implementations in the SCSI family. In addition to being a Bus , SPI is a Parallel communications electrical bus: There is one set of electrical connections stretching from one end of the SCSI bus to the other....
 (now also called SPI), which uses a parallel
Parallel communications

In telecommunication and computer science, parallel communication is a method of sending several data signals simultaneously over several parallel channels....
 electrical bus
Electrical bus

An electrical bus is a physical electrical interface where many devices share the same electric connection. This allows signals to be transferred between devices ....
 design. As of 2008, SPI is being replaced by Serial Attached SCSI
Serial Attached SCSI

In computing, the data-transfer technology Serial Attached SCSI moves data to and from computer storage devices such as hard drives and tape drives....
 (SAS), which uses a serial
Serial communications

In telecommunication and computer science, serial communication is the process of sending data one bit at one time, sequentially, over a communication channel or computer bus....
  design but retains other aspects of the technology. iSCSI
ISCSI

In computing, iSCSI is Internet SCSI , an Internet Protocol -based storage networking standard for linking data storage facilities. By carrying SCSI commands over IP networks, iSCSI is used to facilitate data transfers over intranets and to manage storage over long distances....
 drops physical implementation entirely, and instead uses TCP/IP as a transport mechanism. Many other interfaces which do not rely on complete SCSI standards still implement the SCSI command protocol

SCSI interfaces have often been included on computers from various manufacturers for use under Microsoft Windows
Microsoft Windows

Microsoft Windows is a series of software operating systems and graphical user interfaces produced by Microsoft. Microsoft first introduced an operating environment named Windows in November 1985 as an add-on to MS-DOS in response to the growing interest in graphical user interfaces ....
, Mac OS
Mac OS

Mac OS is the trademarked name for a series of graphical user interface-based operating systems developed by Apple Inc. for their Macintosh line of computer systems....
, Unix
Unix

Unix is a computer operating system originally developed in 1969 by a group of American Telephone & Telegraph employees at Bell Labs, including Ken Thompson , Dennis Ritchie, Douglas McIlroy, and Joe Ossanna....
 and Linux
Linux

Linux is a generic term referring to Unix-like computer operating systems based on the Linux kernel. Their development is one of the most prominent examples of free and open source software collaboration; typically all the underlying source code can be used, freely modified, and redistributed by anyone under the terms of the GNU GPL license...
 operating systems, either implemented on the motherboard
Motherboard

A motherboard is the central printed circuit board in some complex electronic systems, such as modern personal computers. The motherboard is sometimes alternatively known as the mainboard, system board, or, on Apple Inc....
 or by the means of plug-in adaptors. With the advent of SAS
Serial Attached SCSI

In computing, the data-transfer technology Serial Attached SCSI moves data to and from computer storage devices such as hard drives and tape drives....
 and SATA
Serial ATA

The Serial ATA computer bus is a storage-interface for connecting Host adapter to mass storage devices .Conceptually, SATA is a 'wire replacement' for the older AT Attachment standard ....
 drives, provision for SCSI on motherboards is being discontinued. A few companies still market SCSI interfaces for motherboards supporting PCIe and PCI-X.

Parallel SCSI



Other SCSI interfaces

Interface Alternative
names
Specification
document
Connector Width
(bits)
Clock Maximum
Throughput (MB/s) Throughput (Mbit/s) Length Devices
SSA
Serial Storage Architecture

Serial Storage Architecture is a serial transport protocol used to attach disk drives to Server s. It was invented by Ian Judd of IBM in 1990. IBM produced a number of successful products based upon this standard before it was overtaken by the more widely adopted Fibre Channel protocol....
    1 200 MHz 40 MB/s 320 Mbit/s 25 m 96
SSA 40    1 400 MHz 80 MB/s 640 Mbit/s 25 m 96
FC-AL
Fibre Channel

Fibre Channel, or FC, is a gigabit-speed network technology primarily used for storage networking. Fibre Channel is standardized in the Technical Committee T11 of the InterNational Committee for Information Technology Standards , an American National Standards Institute ?accredited standards committee....
 1Gb
    1 1 GHz 100 MB/s 800 Mbit/s 500m/3 km 127
FC-AL 2Gb    1 2 GHz 200 MB/s 1600 Mbit/s 500m/3 km 127
FC-AL 4Gb    1 4 GHz 400 MB/s 3200 Mbit/s 500m/3 km 127
SAS
Serial Attached SCSI

In computing, the data-transfer technology Serial Attached SCSI moves data to and from computer storage devices such as hard drives and tape drives....
    1 3 GHz 300 MB/s 2400 Mbit/s 6 m 16,256
iSCSI
ISCSI

In computing, iSCSI is Internet SCSI , an Internet Protocol -based storage networking standard for linking data storage facilities. By carrying SCSI commands over IP networks, iSCSI is used to facilitate data transfers over intranets and to manage storage over long distances....
    Implementation- and network-dependent


SCSI cabling


Internal SCSI cables are usually ribbon cables that have multiple 68 pin or 50 pin connectors. External cables are shielded and only have connectors on the ends.

iSCSI

iSCSI
ISCSI

In computing, iSCSI is Internet SCSI , an Internet Protocol -based storage networking standard for linking data storage facilities. By carrying SCSI commands over IP networks, iSCSI is used to facilitate data transfers over intranets and to manage storage over long distances....
 preserves the basic SCSI paradigm
Paradigm

The word paradigm has been used in linguistics and science to describe distinct concepts.To the 1960s, the word was specific to grammar: the 1900 Merriam-Webster dictionary defines its technical use only in the context of grammar or, in rhetoric, as a term for an illustrative parable or fable....
, especially the command set, almost unchanged. iSCSI advocates project the iSCSI standard, an embedding of SCSI-3 over TCP/IP, as displacing Fibre Channel
Fibre Channel

Fibre Channel, or FC, is a gigabit-speed network technology primarily used for storage networking. Fibre Channel is standardized in the Technical Committee T11 of the InterNational Committee for Information Technology Standards , an American National Standards Institute ?accredited standards committee....
 in the long run, arguing that Ethernet
Ethernet

Ethernet is a family of Data frame-based computer networking technologies for local area networks . The name comes from the physical concept of the Luminiferous aether....
 data rates are currently increasing faster than data rates for Fibre Channel and similar disk-attachment technologies
Technology

Technology is a broad concept that deals with an animal species' usage and knowledge of tools and crafts, and how it affects an animal species' ability to control and adapt to its Natural environment....
. iSCSI could thus address both the low-end and high-end markets with a single commodity
Commodity

A commodity is anything for which there is demand, but which is supplied without qualitative product differentiation across a market. It is a product that is the same no matter who produces it, such as petroleum, notebook paper, or milk....
-based technology.

Serial SCSI

Three recent versions of SCSI—SSA
Serial Storage Architecture

Serial Storage Architecture is a serial transport protocol used to attach disk drives to Server s. It was invented by Ian Judd of IBM in 1990. IBM produced a number of successful products based upon this standard before it was overtaken by the more widely adopted Fibre Channel protocol....
, FC-AL
Fibre Channel

Fibre Channel, or FC, is a gigabit-speed network technology primarily used for storage networking. Fibre Channel is standardized in the Technical Committee T11 of the InterNational Committee for Information Technology Standards , an American National Standards Institute ?accredited standards committee....
, and Serial Attached SCSI
Serial Attached SCSI

In computing, the data-transfer technology Serial Attached SCSI moves data to and from computer storage devices such as hard drives and tape drives....
 (SAS)—break from the traditional parallel SCSI
Parallel SCSI

Parallel SCSI is one of the interface implementations in the SCSI family. In addition to being a Bus , SPI is a Parallel communications electrical bus: There is one set of electrical connections stretching from one end of the SCSI bus to the other....
 standards and perform data transfer via serial communications. Although much of the documentation of SCSI talks about the parallel interface
Parallel SCSI

Parallel SCSI is one of the interface implementations in the SCSI family. In addition to being a Bus , SPI is a Parallel communications electrical bus: There is one set of electrical connections stretching from one end of the SCSI bus to the other....
, most contemporary development effort is on serial SCSI. Serial SCSI has a number of advantages over parallel SCSI: faster data rates, hot swapping
Hot swapping

Hot swapping and hot plugging are terms used to separately describe the functions of replacing system components without shutting down the system....
 (some but not all parallel SCSI interfaces support it), and improved fault isolation. The primary reason for the shift to serial interfaces is the clock skew
Clock skew

In circuit designIn circuit designs, clock skew is a phenomenon in synchronous circuits in which the clock signal arrives at different components at different times....
 issue of high speed parallel interfaces, which makes the faster variants of parallel SCSI susceptible to problems caused by cabling and termination. Serial SCSI devices are more expensive than the equivalent parallel SCSI devices, but this is likely to change soon.

SCSI command protocol

In addition to many different hardware implementations, the SCSI standards also include a complex set of command protocol definitions. The SCSI command architecture was originally defined for parallel SCSI
Parallel SCSI

Parallel SCSI is one of the interface implementations in the SCSI family. In addition to being a Bus , SPI is a Parallel communications electrical bus: There is one set of electrical connections stretching from one end of the SCSI bus to the other....
 buses but has been carried forward with minimal change for use with iSCSI and serial SCSI. Other technologies which use the SCSI command set include the ATA Packet Interface, USB Mass Storage class
USB mass storage device class

The USB mass storage device class or USB MSC or UMS is a set of computing Protocol defined by the USB Implementers Forum that run on the Universal Serial Bus....
 and FireWire SBP-2
Serial Bus Protocol 2

Serial Bus Protocol 2 standard is a transport protocol within Serial Bus, Institute of Electrical and Electronics Engineers Std 1394-1995 , developed by T10....
.

In SCSI terminology, communication takes place between an initiator
SCSI initiator

In computer storage, a SCSI initiator is the endpoint that initiates a SCSI session, that is, sends a SCSI command. The initiator usually does not provide any logical unit numbers ....
 and a target. The initiator sends a command
SCSI command

In SCSI computer storage, a command is the basic unit of communication. The SCSI command architecture was originally defined for Parallel SCSI buses but has been carried forward with minimal change for use with Fibre Channel, iSCSI and Serial Attached SCSI....
 to the target which then responds. SCSI commands are sent in a Command Descriptor Block (CDB
SCSI CDB

In SCSI computer storage, commands are sent in a Command Descriptor Block .Each CDB can be a total of 6, 10, 12, or 16 bytes, but later versions of the SCSI standard also allow for variable-length CDBs....
). The CDB consists of a one byte operation code followed by five or more bytes containing command-specific parameters.

At the end of the command sequence the target returns a Status Code
SCSI Status Code

A SCSI Status Code is used to determine the success or failure of a SCSI SCSI command. At the end of any command, the SCSI target returns a Status Code byte which should be one of the following:...
 byte which is usually 00h for success, 02h for an error (called a Check Condition
SCSI check condition

In computer terminology, a Check Condition occurs when a SCSI device needs to report an error.SCSI communication takes place between an SCSI initiator and a SCSI target....
), or 08h for busy. When the target returns a Check Condition in response to a command, the initiator usually then issues a SCSI Request Sense command
SCSI Request Sense Command

The SCSI Request Sense command is used to obtain sense data from a target device.The SCSI CDB structure is:The response is a set of SCSI sense data which is structured like this:...
 in order to obtain a Key Code Qualifier (KCQ) from the target. The Check Condition and Request Sense sequence involves a special SCSI protocol called a Contingent Allegiance Condition
SCSI contingent allegiance condition

On a computer SCSI connection, a contingent allegiance condition occurs while a SCSI device reports an error.SCSI communication takes place between an SCSI initiator and a SCSI target....
.

There are 4 categories of SCSI commands: N (non-data), W (writing data from initiator to target), R (reading data), and B (bidirectional). There are about 60 different SCSI command
SCSI command

In SCSI computer storage, a command is the basic unit of communication. The SCSI command architecture was originally defined for Parallel SCSI buses but has been carried forward with minimal change for use with Fibre Channel, iSCSI and Serial Attached SCSI....
s in total, with the most common being:

  • Test unit ready
    SCSI Test Unit Ready Command

    The SCSI Test Unit Ready command is used to determine if a device is ready to transfer data , i.e. if a disk has spun up, if a tape is loaded and ready etc....
    : Queries device to see if it is ready for data transfers (disk spun up, media loaded, etc.).
  • Inquiry
    SCSI Inquiry Command

    The SCSI Inquiry command is used to obtain basic information from a target device. The SCSI CDB structure is:If the EVPD parameter bit is zero and the Page Code parameter byte is zero then the target will return the standard inquiry data which is structured like this:...
    : Returns basic device information, also used to "ping" the device since it does not modify sense data.
  • Request sense
    SCSI Request Sense Command

    The SCSI Request Sense command is used to obtain sense data from a target device.The SCSI CDB structure is:The response is a set of SCSI sense data which is structured like this:...
    : Returns any error codes from the previous command that returned an error status.
  • Send diagnostic
    SCSI Send Diagnostic Command

    The SCSI Send Diagnostic command is used to instruct a target device to perform a self-test on a specific Logical Unit Number. The SCSI CDB structure is:...
     and Receive diagnostic results
    SCSI Receive Diagnostic Results Command

    The SCSI Receive Diagnostic Results command is used to interrogate the results of a self-test. The self-test must have been triggered by a previous SCSI Send Diagnostic Command command which would have defined the self-test required....
    : runs a simple self-test, or a specialised test defined in a diagnostic page
    SCSI diagnostic pages

    SCSI SCSI target devices provide a number of SCSI diagnostic pages. These can be used by a SCSI Send Diagnostic Command to tell a target device to run a specialised self-test....
    .
  • Start/Stop unit
    SCSI Start Stop Unit Command

    The SCSI Start/Stop Unit command is used to control the motor in a rotary device such as a SCSI disk-drive. It is also used to load or eject exchangeable media such as a tapes or CDs....
    : Spins disks up and down, load/unload media.
  • Read capacity
    SCSI Read Capacity Command

    The SCSI Read Capacity command is used to obtain data capacity information from a target device.The SCSI CDB structure is:The special control fields in the CDB have the following meaning:...
    : Returns storage capacity.
  • Format unit
    SCSI Format Unit Command

    The SCSI Format Unit command is used to format a SCSI SCSI target device into Logical_Block_Addresss. Defect management options can be specified in the SCSI CDB....
    : Sets all sectors to all zeroes, also allocates logical blocks avoiding defective sectors.
  • SCSI Read format capacities: Retrieve the data capacity of the device.
  • Read
    SCSI Read Commands

    There are six different SCSI Read commands defined....
     (four variants): Reads data from a device.
  • Write
    SCSI Write Commands

    There are four different SCSI Write commands defined....
     (four variants): Writes data to a device.
  • Log sense
    SCSI Log Sense Command

    The SCSI Log Sense command is used to obtain current data from SCSI log pages in a SCSI SCSI target device. The SCSI CDB structure for the Log Sense command is:...
    : Returns current information from log pages
    SCSI log pages

    SCSI SCSI target devices provide a number of SCSI log pages. These can be interrogated by a SCSI Log Sense Command and in some cases can be set by a SCSI Log Select Command....
    .
  • Mode sense
    SCSI Mode Sense Command

    The SCSI Mode Sense command is used to obtain current device information from SCSI mode pages in a SCSI SCSI target device. There are two different versions of the command, a 6 byte version and a 10 byte version....
    : Returns current device parameters from mode pages
    SCSI mode pages

    SCSI SCSI target devices provide a number of SCSI mode pages. These can be interrogated by a SCSI Mode Sense Command and set by a SCSI Mode Select Command....
    .
  • Mode select
    SCSI Mode Select Command

    The SCSI Mode Select command is used to modify device information contained in SCSI mode pages in a SCSI SCSI target device. There are two different versions of the command, a 6 byte version and a 10 byte version....
    : Sets device parameters in a mode page.


Each device on the SCSI bus is assigned at least one Logical Unit Number (LUN). Simple devices have just one LUN, more complex devices may have multiple LUNs. A "direct access" (i.e. disk type) storage device consists of a number of logical blocks, usually referred to by the term Logical Block Address (LBA). A typical LBA equates to 512 bytes of storage. The usage of LBAs has evolved over time and so four different command variants are provided for reading and writing data. The Read(6)
SCSI Read Commands

There are six different SCSI Read commands defined....
 and Write(6)
SCSI Write Commands

There are four different SCSI Write commands defined....
 commands contain a 21-bit LBA address. The Read(10)
SCSI Read Commands

There are six different SCSI Read commands defined....
, Read(12)
SCSI Read Commands

There are six different SCSI Read commands defined....
, Read Long
SCSI Read Commands

There are six different SCSI Read commands defined....
, Write(10)
SCSI Write Commands

There are four different SCSI Write commands defined....
, Write(12)
SCSI Write Commands

There are four different SCSI Write commands defined....
, and Write Long
SCSI Write Commands

There are four different SCSI Write commands defined....
 commands all contain a 32-bit LBA address plus various other parameter options.

A "sequential access" (i.e. tape-type) device does not have a specific capacity because it typically depends on the length of the tape, which is not known exactly. Reads and writes on a sequential access device happen at the current position, not at a specific LBA. The block size on sequential access devices can either be fixed or variable, depending on the specific device. Tape devices such as half-inch 9-track tape
IBM 9 Track

The IBM System/360, released in 1964, introduced what is now generally known as 9 track tape. The magnetic tape is 1/2 inch wide, with 8 data tracks and one parity bit track for a total of 9 parallel tracks....
, DDS
Digital Data Storage

Digital Data Storage is a format for storing and backup up computer data on magnetic tape that evolved from Digital Audio Tape technology, which was originally created for compact disc-quality audio recording....
 (4 mm tapes physically similar to DAT
Digital Audio Tape

Digital Audio Tape is a signal recording and playback medium developed by Sony in the mid 1980s. In appearance it is similar to a compact audio cassette, using 4 mm magnetic tape enclosed in a protective shell, but is roughly half the size at 73 mm ? 54 mm ? 10.5 mm....
), Exabyte
Exabyte (company)

Exabyte Corp. was a manufacturer of magnetic tape data storage products headquartered in Boulder, Colorado, United States. Exabyte Corp. is now defunct, but company's technology is sold by TANDBERG DATA under both brand names....
, etc.., support variable block sizes.

How SCSI works

SCSI uses a protocol method to transfer data between devices on the bus. It is a circular process which starts and ends up in the same layer. From the first layer, all additional layers of protocol must be executed before any data is transferred to or from another device and the layers of protocol must be completed after the data has been transferred to the end of the process. The protocol layers are referred to as "SCSI bus phases". These phases are:

  • BUS FREE
  • ARBITRATION
  • SELECTION
  • MESSAGE OUT
  • COMMAND OUT
  • DATA OUT/IN
  • STATUS IN
  • MESSAGE IN
  • RESELECTION


The SCSI bus can be in only one phase at a given time.

SCSI device identification

In the modern SCSI transport protocols, there is an automated process of "discovery" of the IDs. SSA initiators "walk the loop" to determine what devices are there and then assign each one a 7-bit "hop-count" value. FC-AL initiators use the LIP (Loop Initialization Protocol) to interrogate each device port for its WWN (World Wide Name
World Wide Name

A World Wide Name or World Wide Identifier is a unique identifier in a Fibre Channel or Serial Attached SCSI Storage area network. Each WWN is an 8-byte number derived from an IEEE Organizationally Unique Identifier and vendor-supplied information ....
). For iSCSI, because of the unlimited scope of the (IP) network, the process is quite complicated. These discovery processes occur at power-on/initialization time and also if the bus topology changes later, for example if an extra device is added.

On a parallel SCSI bus, a device (e.g. host adapter, disk drive) is identified by a "SCSI ID", which is a number in the range 0-7 on a narrow bus and in the range 0–15 on a wide bus. On earlier models a physical jumper or switch controls the SCSI ID of the initiator (host adapter
Host adapter

In computer hardware, a host controller, host adapter, or host bus adapter connects a host system to other computer network and computer storage devices....
). On modern host adapters (since about 1997), doing I/O to the adapter sets the SCSI ID; for example, the adapter often contains a BIOS program that runs when the computer boots up and that program has menus that let the operator choose the SCSI ID of the host adapter. Alternatively, the host adapter may come with software that must be installed on the host computer to configure the SCSI ID. The traditional SCSI ID for a host adapter is 7, as that ID has the highest priority during bus arbitration (even on a 16 bit bus).

The SCSI ID of a device in a drive enclosure that has a backplane is set either by jumpers or by the slot in the enclosure the device is installed into, depending on the model of the enclosure. In the latter case, each slot on the enclosure's back plane delivers control signals to the drive to select a unique SCSI ID. A SCSI enclosure without a backplane often has a switch for each drive to choose the drive's SCSI ID. The enclosure is packaged with connectors that must be plugged into the drive where the jumpers are typically located; the switch emulates the necessary jumpers. While there is no standard that makes this work, drive designers typically set up their jumper headers in a consistent format that matches the way that these switches implement.

Note that a SCSI target device (which can be called a "physical unit") is often divided into smaller "logical units." For example, a high-end disk subsystem may be a single SCSI device but contain dozens of individual disk drives, each of which is a logical unit (more commonly, it is not that simple—virtual disk devices are generated by the subystem based on the storage in those physical drives, and each virtual disk device is a logical unit). The SCSI ID, WWN, etc. in this case identifies the whole subsystem, and a second number, the logical unit number (LUN) identifies a disk device within the subsystem.

It is quite common, though incorrect, to refer to the logical unit itself as a "LUN." Accordingly, the actual LUN may be called a "LUN number" or "LUN id".

Setting the bootable (or first) hard disk to SCSI ID 0 is an accepted IT community recommendation. SCSI ID 2 is usually set aside for the floppy disk drive while SCSI ID 3 is typically for a CD-ROM drive.

SCSI enclosure services

In larger SCSI servers, the disk-drive devices are housed in an intelligent enclosure that supports SCSI Enclosure Services (SES)
SCSI Enclosure Services

Most recent SCSI disk enclosure products support a protocol called SCSI Enclosure Services . The SCSI initiator can communicate with the enclosure using a specialised set of SCSI commands to access power, cooling, and other non-data characteristics....
. The initiator can communicate with the enclosure using a specialized set of SCSI commands to access power, cooling, and other non-data characteristics.

See also

  • List of device bandwidths
    List of device bandwidths

    This is a list of device bandwidths: the net bit rate of some computer devices employing methods of data transport is quantified in units of kilobits per second , megabits per second , or gigabits per second as appropriate....


Bibliography



External links

  • (SCSI standards)