Linux|系统管理|WEB开发

关注Linux,系统管理,WEB开发以及开源世界

SCSI Sense Key Chart

| Comments

SCSI Primary Commands(SPC)是描述SCSI基本命令的权威文档,在这个文档的的第四章,确切的说是4.5节,名字就叫做Sense data,即这一节是专门介绍Sense Data的.
Sense data中最有意义的东西叫做sense keysense code.这两个概念基本上确定了你这个错误究竟是什么错误。如果出现SCSI有关的错误,那么肯定得首先查询sense key,因此把起code的含义做了一个表格,方便查询

Key Sense Key Description
0h No Sense – Indicates there           is no specific Sense Key information to be reported for the disc drive. This would be the           case for a successful command or when the ILI bit is one.
1h Recovered Error – Indicates           the last command completed successfully with some recovery action performed by the disc           drive. When multiple recovered errors occur, the last error that occurred is reported by           the additional sense bytes. Note: For some Mode settings, the last command may have           terminated before completing.
2h Not Ready - Indicates the           logical unit addressed cannot be accessed. Operator intervention may be required to           correct this condition.
3h Medium Error – Indicates the           command terminated with a nonrecovered error condition, probably caused by a flaw in the           medium or an error in the recorded data.
4h Hardware Error – Indicates           the disc drive detected a nonrecoverable hardware failure while performing the command or           during a self test. This includes SCSI interface parity error, controller failure or           device failure.
5h Illegal Request – Indicates           an illegal parameter in the command descriptor block or in the additional parameters           supplied as data for some commands (Format Unit, Mode Select, and so forth). If the disc           drive detects an invalid parameter in the Command Descriptor Block, it shall terminate the           command without altering the medium. If the disc drive detects an invalid parameter in the           additional parameters supplied as data, the disc drive may have already altered the           medium. This sense key may also indicate that an invalid IDENTIFY message was received.           This could also indicate an attempt to write past the last logical block.
6h Unit Attention – Indicates           the disc drive may have been reset.
7h Data Protect – Indicates           that a command that reads or writes the medium was attempted on a block that is protected           from this operation. The read or write operation is not performed.
9h Firmware Error – Vendor           specific sense key.
Bh Aborted Command - Indicates           the disc drive aborted the command. The initiator may be able to recover by trying the           command again.
Ch Equal – Indicates a SEARCH           DATA command has satisfied an equal comparison.
Dh Volume Overflow – Indicates           a buffered peripheral device has reached the end of medium partition and data remains in           the buffer that has not been written to the medium.
Eh Miscompare – Indicates that           the source data did not match the data read from the medium.

Comments