Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ scsi(4) — OS/MP 4.1A

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sd(4S)

st(4S)

si(4S)

sr(4S)

SCSI(4)  —  DEVICES AND NETWORK INTERFACES

NAME

scsi − general SCSI error messages

DESCRIPTION

All SCSI devices in a Solbourne system use a three layer device driver scheme. The top layer supports a specific type of device (for example disk sd(4S), or tape st(4S)), the middle layer contains common code ( scsi(4S)), and the lower layer supports specific host adaptor hardware (for example SCSI IOASIC si(4S), or SCSI Rimfire sr(4S)).  This man page describes diagnostics produced by the common middle layer. 

DIAGNOSTICS

Error messages produced in the common middle layer are broken into two categories: those which occur when an upper layer device is actively connected to a lower layer, and those which occur when no device is connected to the lower host adaptor layer.  In the first case the message is associated with the device, and in the second it is associated with the adaptor. 

Device Messages

There is only one format for device messages.  If fields in the message have no defined symbolic interpretation then hex numbers may appear.  Device error messages have the format:

device: command: {scsi_status:} {{bn%d:} sense_key(%s): sense_code(%x):} {adaptor_code:} ..recovery

device name of the upper layer device such as sd0. 

command the SCSI command which was executing such as writex. 

scsi_status A scsi_status code is returned after each command completion.  Possible values are:

OK Command completed as expected. 

CHECK An error, exception, or abnormal condition occured during command execution.  The bn%d, sense_key, and sense_code fields contain further information. 

BUSY The device is unable to accept a command at this time. 

RCON Device is reserved by another initiator on the SCSI bus. 

timeout A pseudo status produced when a command does not complete within a predetermined time.  In case other units are using all the SCSI bus bandwidth (inducing timeouts on low priority devices), an attempt is made to recover by forcing others idle.  If this does not work then a timeout message is printed including information about whether the command is still ‘connected’ to the SCSI bus and, if not, who is. 

reset A pseudo status produced when the SCSI bus is reset during a command. 

bn%d A block number is printed if the scsi_status is CHECK and if the error was associated with a specific block. 

sense_key A sense_key is available if the scsi_status is CHECK.  The sense_key provides a general classification of an error, exception, or abnormal condition.  Possible sense_key values are:

NO SENSE There is no sense key information to be reported.  This message should not appear. 

RECOVERED The command completed successfully, but with some recovery action performed by the device. 

NOT READY The device cannot be accessed.  Operator intervention may be required. 

MEDIUM ERROR A nonrecoverable error condition occured due to a flaw in the media. 

HARDWARE ERROR A nonrecoverable hardware error (device failure, parity error, etc) was detected while the drive was performing the command, or during self test. 

ILLEGAL REQUEST There was an illegal parameter in the command or command parameters. 

UNIT ATTENTION The device has been reset. 

DATA PROTECT A write operation was attempted on a write protected device. 

BLANK CHECK Device encountered end of recorded media. 

COPY ABORTED A copy command was aborted due to an error. 

ABORT COMMAND The device aborted a command. 

VOLUME OVERFLOW Physical end of media has been reached. 

sense_code(%x)
A sense_code message will identify device specific information about the error. 

adaptor_code
The adaptor_code field identifies host adaptor specific error messages and codes. 

recovery The error recovery action that the upper layer driver will initiate is printed here. Possible recovery actions include:

fatal The upper level driver cannot recover from the error, the failure will be reported to the user application. 

retry The upper level driver will retry the command that failed. 

rezero Specific to disks, the upper level driver will seek to track 0 and then retry. 

recovered The error was recoverable. 

respin Specific to disks, the upper level driver will spin up the drive. 

busy The device has been returning BUSY status for too long.  This is a fatal. 

wait Starting delay period before retrying the operation. 

reseting Reset the SCSI bus and then retry the operation. 

 
As an example, the error message

sd0: readx: CHECK: bn100: UNIT ATTENTION: power_on/reset(29) :.. retry

indicates that SCSI disk drive sd0 completed a readx command with a CHECK scsi_status on block number 100.  The CHECK condition was caused by a pending UNIT ATTENTION due to the error code power_on/reset(29) and that the sd driver will attempt to recover from the error by via retry. 

Adaptor Messages

adaptor:scsi bus failure.
an abnormal sequence of events occured which the low level driver could not handle.

adaptor:command timeout.
A command did not complete within its allotted frame.

adaptor:cant reconnect target %d lun %d: connected to target %d lun %d.
A reconnect to an already connected bus occured.

adaptor:cant reconnect target %d lun %d: not disconnected.
A reconnect from a target which the driver did not have marked a disconnected occured.

adaptor:resetting scsi bus.
Due to the previously specified error condition, we are resetting the SCSI bus to achieve a known state.

adaptor:received scsi bus reset.
Some other target on the bus caused a reset.  This failure can sometimes be caused by static discharge.

SEE ALSO

sd(4S), st(4S), si(4S), sr(4S). 

Solbourne Computer, Inc.  —  13 December 1989

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026