Scsi sense key SCSI sense data: Sense key: 6 Sense code: 29 Sense qualifier: 0: Physical Disk 0:0:5 Controller 0, SCSI Sense Key Chart. 00h. –help This process is part of a SCSI protocol called Contingent Allegiance Condition. Unsolved. dmesg is also showing SCSI_CMD: 2A WRITE(10) Status validity : 01 SCSI status field is valid SCSI status : 02 CHECK (SCSI sense is valid) SCSI Sense code : Response code: 70 Current errors --- SCSI ; SCSI_Sense_Data ; SENSE_KEY ; Instance Property SENSE _KEY. SCSI sense data: Sense key: 3 Sense code: 11 Sense qualifier: 0: Physical Disk 1:0:6 Controller 0, Connector 1' Have also been getting a lot of Microsoft SCSI sense key 0x1,0xb,0x96 and 97 - bad disk, cable, or backplane? Discussion I have an array of 8 HGST SAS disks, H7280A520SUN8. Solaris DDI specific (Solaris DDI). Additional sense code. 1k次,点赞2次,收藏25次。参考文档:UFI Command Specification1. 2h. This would be the case for a successful Scsi架构中主机上的scsi接口卡称为initiator,与其相连接的scsi 磁盘等设备称为target,在逻辑上,initiator和target之间通信的工作模式,与两个网络设备之间的模式相似,他们之间采用client -s或—sense-key,用来解析SCSI感知秘钥,SCSI感知秘钥显示在命令返回CHECK CONDITION状态时可用的感知数据中。感知密钥包含了解命令失败原因所必需的所有信息。 表 1 は、直接アクセス装置用に分類される一般的な Self-Monitoring, Analysis and Reporting Technology (SMART) ASC/ASCQ エラー・コードの説明を示しています。 ASC (追加のセン Table 27 — Sense key descriptions (Sheet 2 of 2) Sense . Not Ready, In Process of Becoming Ready The library detected that the CAP is open and a SCSI command was issued to access the CAP. Table of explanations of SCSI sense key data. Sense key. 8 Sense key and additional sense code definitions Sense Key Short Description Long Description 0x00 NO From the SCSI specification's description of this sense key: Sense Key 5h ILLEGAL REQUEST. 3. Initialize Element Status (07h) If it is less, a check condition SCSI sense data: Sense key: 5 Sense code errors in the OMSA alert log. This would be the case for a Are you sure you want to update a translation? It seems an existing English Translation exists already. SCSI_TEST_UNIT_READY(0x00)查询设备是否ready。空闲的时候,主机 I have several Hitachi Ultrastar SSD400M Model #HUSML4040ASS601. -a, –additional-sense-data Input the additional sense data, it is an ASC/ASCQ pair value. I am not able to conclude on where Table of explanations of SCSI sense key data. The library SCSIデバイスに何らかのエラーが発生したときに、SCSIドライブのセンスデータ(エラー情報)を表示する。デバイスから送られたセンスデータの The scsi_sense_key(), scsi_sense_asc(), and scsi_sense_ascq() functions are used to retrieve values from SCSI sense data, regardless of whether the sense data is in fixed format or struct scsi_sense_hdr: 这是一个稍微修改过的 SCSI sense 描述符格式的结构体。它包含了 SCSI sense 数据的一些重要字段,用于方便应用程序处理。具体字段如下: 本文还有配套的精品资源,点击获取 简介:本文探讨了SCSI(Small Computer System Interface)标准中的命令数据块(CDB)以及Linux内核版本2. Remember that you must use the combined Unexpected sense. See section SCSI sense keys host_byte(hd_status) | From the kernel. I use these references all the time in my Sense Key = 0x5 Errors All 0x5 sense key errors are information errors. These are used disks, purchased on ebay この記事の内容. 0+ UInt8 SENSE_KEY; Current page is SENSE_KEY 日志中经常会出现某个指令出现错误或反复重试,会有对应的指令内容打印和Sense Key/Code。协议中定义的Sense Key包括如下16种类型: Sense Code对应的是SPC中的ASC和ASCQ SCSI sense data: Sense key: 3 Sense code: 11 Sense qualifier: 0: Physical Disk 0:0:3 Controller 0, Connector 0 Sep 19 15:22:24 XXX Server Administrator: Storage Service EventID: 2266 Table 1. Additional sense code qualifier. int scsi_set_sense_information (u8 *buf, int buf_len, u64 info) ¶ set the Usgae: esxi_sense [OPTION] Interpreting SCSI sense codes in VMware ESXi and ESX. C April 2010 Parallel SCSI Fibre Channel (FC) Serial Attached SCSI (SAS) 很显然, 这个函数最主要的工作还是调用 sd_do_mode_sense, 即还是发送 MODE SENSE 命令. SCSI 要求センス コマンドに応答して状態またはエラー情報を報告するために使用されます。. The following table explains how the drives interpret sense key descriptions. Illegal Request - Indicates an illegal parameter in the command descriptor block or in the additional parameters supplied as data for some Table 1. bitflip) in such way that on scsi level SCSI 协议是让数据以块的方式进行传输的一种协议规范。 正文Mass Storage 插入单板时总会有 “sd xxxx: [sdx] Result: xxxxxxx” 的log,这打印是 USB 枚举成功后,SCSI 识别 As most of the guys will know who have worked with SCSI, if a SCSI command is issued, the device can return a so called sense code with additional information. 8), which is Sense Key 代码: Sense Key符号 (Symbol) 具体含义描述: 0x00: NO_SENSE : 在特定逻辑单元上,没有特殊的Sense Key信息。发生这种情况情形包括: (1)成功完成一个命令;(2)命 SCSI devices have the ability to generate error information in the form of Sense Key, Sense Code, and Additional Sense Code Qualifiers. 1) Last updated on OCTOBER 05, 2022. Typically this function can be called after a SCSI Sense Keys. Key Code Qualifier is an error-code returned by a SCSI device. The library 10. spootypoof. The Sense Buffer. Illegal Request - Indicates an illegal parameter in the command descriptor block or in the additional parameters supplied as data for some 典型的 SCSI 通用驱动器命令对于字符设备,SCSI 通用驱动器支持许多典型的系统调用,比如 open()、close()、read()、write、poll() 和 ioctl()。 向特定的 SCSI 设备发送 SCSI いつもと毛色が違うネタですが、SCSIの制御に使う値。ここ数年はあまりこっちの世界にいなかったのですが、最近またちょっと近い所に移って来まして。 SCSI Sense Key/Code In SCSI Interface errors are recognized by concatenation of 3 numbers: SenseKey + ASC + ASCQ. 关于 sense data, 事实上, 坊间一直流传着一本叫做 SCSI Primary Commands(SPC) 的秘籍, 在这本秘籍的第四章, 确切的说是 4. Commands with no output data can give status information via the sense buffer (which is part of the header structure). Because of Description:SCSI sense data Sense key: 5 Sense code: 24 Sense qualifier: 0: I'm getting this for all disks on controller 1 connector 1, and on 1 disk on controller 0. This would be the case for a successful Solaris SCSI Error: "Sense Key: Aborted_Command - ASC: 0x44 (internal target failure), ASCQ: 0x0, FRU: 0x0" (Doc ID 2179850. This key’s errors indicate that the Dear list, I sent the e-mail below to aacraid@xxxxxxxxxxxx However I'm not entirely sure if it's related to Adaptec, or if it's some other part of the SCSI subsystem reporting Hello The reported error ID 107833 is correlated with a tape drive Certain Sun SCSI and FC-AL Disk Drives May Become Inaccessible During Periods of High Sequential Writes Instead, the library returns sense data with Sense Key set to Illegal Request (05h), ASC set to LUN Not supported (25h), and ASCQ set to 00h. 1 Message. Indicates that there was an illegal parameter in the command descriptor block or in the Table of explanations of SCSI sense key data. 4. Fh. Storage Service Severity: Informational, Category: Storage, MessageID: STOR0210, Message: SCSI sense data (Sense key: 0 Sense code: 0 Sense qualifier: 0) received from SCSI Sense Keys. 我们前面说过,SCSI 设备写真集最多就是 64 页 (64=0x3f+1). We appreciate your interest in having Red Hat content localized to your language. asc/ascq pair description describes the meaning of all errors based on 描述:在分析RAID卡日志时经常会出现某个指令出现错误或反复重试,会有对应的指令内容打印和Sense Key/Code。那问题来了,这个Sense Key/Code有什么用? 当scsi设备 SCSI Operation Codes SCSI 错误信息表整理 正文出现 SCSI相关错误的时候,我们总能看到下面这样的 log。 1sd 0:0:0:0: [sda] ASC=0x28 ASCQ=0x0 log里面 ASC(ADDITIONAL -s, –sense-key Input the sense key, the value must be an hex number. 8 Sense key and additional sense code definitions Sense Key Short Description Long Description 0x00 NO SENSE Indicates that there is no specific sense key SCSI层IO完成最终调用函数scsi_complete(),如下图所示,存在下列五种状态完成IO:以成功完成IO:要求传输的数据全部完成处理,返回状态为成功,此时结束IO; 完成部分IO:只传输完部分IO,返回状态为成功,此时会将 See section Status codes msg_byte(hd_status) | From the device. 0. Sense data is available when the previous SCSI Interfaces Guide¶ Author:. log分析的补充 这就是 scsi_sense_valid() 做的事情. I recently SCSI Interfaces Guide¶ Author:. Illegal Request - Indicates an illegal parameter in the command descriptor block or in the additional parameters supplied as data for some 注意:最も役に立つフィールドは Sense Key( sec-sensekeys 章を みてください)、Additional Sense Code および Additional Sense Code Qualifier( sec-sensecodes 章をみてください)です。 A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more. Unexpected SCSI sense data: Sense key: 3 Sense code: 11 Sense qualifier: 0: Physical Disk 0:0:3 Controller 0, Connector 0 Sep 19 15:22:24 XXX Server Administrator: Storage Service EventID: 2266 SCSI_CMD: 2A WRITE(10) Status validity : 01 SCSI status field is valid SCSI status : 02 CHECK (SCSI sense is valid) SCSI Sense code : Response code: 70 Current errors --- See the clause describing the REQUEST SENSE command in the SCSI Primary Commands - 4 (SPC-4) draft standard (or later) for more information about sense data. These tables list all possible combinations of Sense Keys, Additional Sense Codes (ASC), and Additional 文章浏览阅读4. com). Following this errors 2095 Sun Oct 21 21:11:57 2018 Storage Service Unexpected sense. Key. 4. Illegal Request - Indicates an illegal parameter in the command descriptor block or in the additional parameters supplied as data for some SCSI Sense Key から返された Key Code Qualifier (KCQ) 情報を解読する方法 Solution Unverified - Updated 2014-04-29T14:54:46+00:00 - Japanese The scsi_sense_key(), scsi_sense_asc(), and scsi_sense_ascq() functions are used to retrieve values from SCSI sense data, regardles of whether the sense data is in fixed format or Sense Keys Additional Sense Data Information Op Codes - Command Operation Codes Information Vendor IDs - Vendor ID Strings. Table 1. The logical 在执行SCSI命令时,驱动程序必须正确设置sense_buffer字段,以确保能够接收SCSI设备发送的Sense数据。当SCSI命令执行失败时,驱动程序可以使用sense_buffer缓冲 Table of explanations of SCSI sense key data. Author:. The “ main elements ” from sense data are: response_code, sense_key, asc, ascq and additional_length (only for descriptor format). The server crashed during the SENSE DATA F000 0305 2BF4 3E18 0000 0000 1100 0080 003E 0000 1100 0000 4B81 怎么和我的scsi sense key/code/qualifier 联系起来呀? Table of explanations of SCSI sense key data. Contribute to python-scsi/python-scsi development by creating an account on GitHub. x and ESXi 5. This would be the case for a Table of explanations of SCSI sense key data. The sense key contains all the SCSI Commands Reference Manual provides a comprehensive guide to SCSI commands, covering Parallel SCSI, Fibre Channel (FC), and Serial Attached SCSI (SAS). If the library is partitioned and you issue a Table A-3 SCSI Additional Sense Code/Qualifier Code Pairs below lists the Additional sense codes and Qualifier codes and their meanings. -d, --device Input IBM LTO Ultrium Tape Drive - SCSI Sense Keys and Additional Sense. 4). Description: Below you will see a portion of the controller log displaying Sense Key 6 Code 29 Qualifier 1 entries. DriverKit 20. Not Ready, 关于sense data,在SCSI Primary Commands(SPC-3)的4. . 0 (broadcom. The "Control Mode Page (0Ah)" (4. Illegal Request - Indicates an illegal parameter in the command descriptor block or in the additional parameters supplied as data for some Shame, that tool really helps in understanding the SMART data. SCSI sense data: SCSI Sense Key Chart. 用于报告状态或错误信息以响应 SCSI 请求感知 命令。. Illegal Request - Indicates an illegal parameter in the command descriptor block or in the additional parameters supplied as data for some If no sense data is available, the library returns sense data with the Sense Key set to No Sense (0h), ASC set to Not Additional Sense information (00h), and the ASCQ set to 00h. Description. Once upon a time, the Small Computer Systems Interface defined both a parallel I/O Hi, I received scsi sense key 0x0B -> Aborted Command -> Device server aborted command and ASC/ASCQ as 4B/04 -> Nak Received. This sense key may also indicate that an invalid IDENTIFY message For additional information on SCSI device codes, see Understanding SCSI device/target NMP errors/conditions in ESX/ESXi 4. The Code values are assigned by the INCITS T10 Technical This guide describes some common SCSI sense key errors for several different types of disk error and gives the recommended actions that should be taken when the sense key errors are SCSI sense. The 0x5 sense key is a host/RAID controller interaction sense key. Sense data中最有意义的东西叫做sense key和sense code. SENSE DATA F000 0305 2BF4 3E18 0000 0000 1100 0080 003E 0000 1100 0000 4B81 怎么和我的scsi sense key/code/qualifier 联系起来呀? Issue. No Sense - Indicates there is no specific Sense Key information to be reported for the disc drive. ASC and ASCQ Summary for Sense Key 2 (Not Ready) ASC ASCQ Description; 04 00: Logical Unit Not Ready, Cause Not Reportable: 04 01: Logical Unit Is in Process of Becoming 上記のコマンドに対してターゲットは必ずscsi ステータスコードを返す。典型的にはgood(正常)、check condition(エラー)、busy(ビジー)となる。特にcheck condiitonとなった場合、より Receiving "sense key Data Protect" errors when trying to mount EXT3 filesystem from SAN device on Red Hat Enterprise Linux $ cat proc/scsi/scsi Attached devices: Host: scsi3 Channel: 00 예를 들어, Log에 H:0x0 D:0x2 P:0x0 Valid sense data: 0x3 0x11 0x0 와 같이 기록되어 있다면, H:0x0 D0x2 P:0x0은 SCSI Device/Status를 나타내고, 0x3은 SCSI Sense Should be there errors and scsi sense codes if your VM data gets corrupted, or is it possible that content of the block itself is corrupted (e. ASC and ASCQ Summary for Sense Key B (Aborted Command) ASC 原帖由 yjl0 于 2009-7-31 10:22 发表 . Eh. 在日志中出现看到 Medium Error sense key。 SCSI error: driverbyte=DRIVER_SENSE plus Medium Error sense key; SCSI error: return code 0x08070002 plus SCSI Disk Drive Sense Keys. Sense data is available when the previous SCSI_CMD: 2A WRITE(10) Status validity : 01 SCSI status field is valid SCSI status : 02 CHECK (SCSI sense is valid) SCSI Sense code : Response code: 70 Current errors --- Notes. Descriptions of the Table 1. Unexpected sense. SCSI sense data: Sense key: B Sense code: 4B Sense qualifier: 4: Where to build sense data. 5节Sense data,专门介绍Sense Data的. Illegal Request - Indicates an illegal parameter in the command descriptor block or in the additional parameters supplied as data for some Server_Administrator: 6211 2095 - Storage Service Unexpected sense. This post is more than 5 years old. Ultrium drives follow the ANSI definition of sense keys. Basically you Table of explanations of SCSI sense key data. ASC and ASCQ Summary for Sense Key 5 (Illegal Request) ASC ASCQ Description; 1A 00: Parameter List Length Error: 20 00: Invalid Command Operation Code: 21 01: Invalid 3 SCSI Commands. 这两个概念基本上确定了你这个错误究竟是什么错误. Introduction¶ Protocol vs bus¶. Illegal Request - Indicates an illegal parameter in the command descriptor block or in the additional parameters supplied as data for some SCSI sense key 0x1,0xb,0x96 and 97 - bad disk, cable, or backplane? Recently two of the disks started failing SMART short and long tests (about 1 week apart). This chapter describes SCSI command structures for a logical library. Learn about Sense Keys Additional Sense Data Information Op Codes - Command Operation Codes Information Vendor IDs - Vendor ID Strings. The target will respond to the Request Sense command with a set of SCSI sense data which 本文内容. These tables list all possible combinations of Sense Keys, Additional Sense Codes (ASC), and Sense key 3 ··· 6 Information 18 ··· n Additional sense bytes SCSI Sense Key. h> Interface Level. This sense key may also indicate that an invalid IDENTIFY message Sense Key 6 Code 29 entries in the PERC5/6 Controller Log . 而这里我们给 Thanks Eric, Here is a screenshot of the system screen, cant remember exactly what Ive got in there but I don't have ECC ram or anything special, Running Raid Z1 with 5 x 由于集群采用的磁盘都是SAS盘,所有RAID卡到磁盘的命令下发都是基于SCSI协议进行编码,因此本章节主要介绍如何解析VMkernel文件中的SCSI返回码,属于对VMkernel. Rob Landley. James Bottomley. scsi_status will have the value of SC_CHECK_CONDITION or Table of explanations of SCSI sense key data. Sense Key 代码: Sense Key符号 (Symbol) 具体含义描述: 0x00: NO_SENSE : 在特定逻辑单元上,没有特殊的Sense Key信息。发生这种情况情形包括: (1)成功完成一个命令;(2)命 IBM LTO Ultrium Tape Drive - SCSI Sense Keys and Additional Sense. 0T. Illegal Request - Indicates an illegal parameter in the command descriptor block or in the additional parameters supplied as data for some SCSI Sense Keys. Server was running fine until Friday night's backup started running. This sense key may also indicate that an invalid IDENTIFY message Sense key/ASC/ASCQ = 0x5/0x25/0x00です。 また、アクセス禁止以外にも、現在有効でないパスに対しても同様の振る舞いをします。 (例えばストレージ内部の処理で、 Python classes to access SG_IO scsi devices. 5 节, 名字 scsi_extended_sense(9S) Name scsi_extended_sense - SCSI extended sense structure Synopsis #include <sys/scsi/scsi. SCSI When the device driver receives the SCSI status of check condition or command terminated (the scsi_buf. When a SCSI target device returns a check condition in response to a command, the initiator usually then issues a SCSI Sense Keys appear in the Sense Data available when a command completes with a CHECK CONDITION status. and. u8 key. ASC and ASCQ Summary for Sense Key 6 (Unit Attention) ASC ASCQ Description; 28 00: Not Ready to Ready Transition, Medium Might Have Changed: 28 01: Import or Export 10. Another badblocks run confirms da4 has a smallish number of read errors near the top of its range. I use these references all the time in my On restart of the appliance, SCSI sense or hang errors similar to the following are displayed: Feb 3 04:59:20 smkong3 kernel: sd 1:0:0:0: SCSI error: return code = 0x08000002 Feb 3 04:59:20 SCSI Common Codes & Values The standardized collection of SCSI commands uses many specific codes and coded values to communicate requests and responses between the 通过AIX的errpt-a命令可以查看系统的一些报错信息。通常,使用errpt-a-j即可查看大致的错误信息,从而形成判断依据采取进一步的措施。以下是一个例 Table A-3 SCSI Additional Sense Code/Qualifier Code Pairs below lists the Additional sense codes and Qualifier codes and their meanings. SCSI sense data: Sense key: 3 Sense code: 11 Sense qualifier: 1: Physical Disk 0:0:1 Controller 0, Connector 0. SCSI sens Start a Conversation. KEY DESCRIPTION; 0: NO SENSE There is no specific sense key information to be reported for the designated logical unit. 04h. This article is for informational purposes only and no longer being updated by Seagate. Illegal Request - Indicates an illegal parameter in the command descriptor block or in the additional parameters supplied as data for some So the kernel issues a few SCSI commands to that device, for example to find out the capacity. 6 Sense keys and codes Sense keys—actions to take. u8 ascq. 6中的异常处理机 "Unexpected sense. SCSI sense data: Sense key: 3 Sense code: 11 Sense qualifier: 0: Physical Disk 0:0:0 Controller 0, Connector 0 2095 Sun ひとつ目は op-code。これは、送られた SCSI のコマンドだ。 SCSI のいい方では CDB (Command Descriptor Block) と呼んだりする。 ふたつ目は key。ここは Sense Key と呼ばれるものだが、通常 0x6 (Unit SCSI sense data Sense key: 3 Sense code: 11 Sense qualifier: 0: Physical Disk 0:0:2 Controller 1, Connector 0 SCSI sense data Sense key: 3 Sense code: 11 Sense qualifier: 'Unexpected sense. Your USB-to-NVM bridge chip answers with "unit not ready", for whatever reason If no sense data is available, the library returns sense data with the Sense Key set to No Sense (0h), ASC set to Not Additional Sense information (00h), and the ASCQ set to 00h. Nodes notify the hosts of events on SCSI commands. Remember that you must use the combined Sense Key 6 Code 29 entries in the PERC5/6 Controller Log . SCSI sense data: Sense key: 5 Sense code: 24 Sense qualifier: 0: Physical Disk 0:0:1 Controller 0, Connector 0: 2095: Fri Jun 13 20:44:24 2014: 前面对SCSI设备的扫描过程做了介绍,本节对SCSI设备所对应的磁盘的识别做介绍。前面描述了SCSI device的扫描,在扫描到SCSI device后,与已加载的SCSI driver匹配,执 Oh, you talk about the data drives, sorry. Dh. SCSI sense data: Sense key: 6 Sense code: 29 Sense qualifier: 0: Physical Disk 0:2 Controller 0, Connector 0" - Event ID 2095. 3397. u8 asc. 構文 typedef struct _SENSE_DATA { UCHAR ErrorCode :7; 主机与阵列交互过程主要有:扫盘过程、读写过程和任务管理。 详述如下: 一、扫盘过程 相关的SCSI命令序列为:Report Luns(下发两次) --》Inquiry --》 Read Capicity -- Sense Key 提供了发生错误或异常情况并导致当前命令成功完成的一般类别。 附加检测代码字段 (ASC) 中提供了更多和更精细的错误详细信息。 Additional Sense Code The SCSI return code in Linux is a 32bit number, which is made up of the following components: driver_byte <<24 | host_byte <<16 | msg_byte <<8 Depending on the version The SCSI reference manual defines two types of sense data formats - fixed and variable descriptor-based ones (chapter 2. 13. Implementation Requirements. As Product Manual SCSI Commands Reference Manual 100293068 Rev. ASC and ASCQ Summary for Sense Key 6 (Unit Attention) ASC ASCQ Description; 28 00: Not Ready to Ready Transition, Medium Might Have Changed: 28 01: Import or Export Using EMC's Symmetrix Remote Data Facility (SRDF) method for replication, the messages file is showing repeated SCSI messages "Sense Key: Write Protected" . Yes, you can see the pool status by using the command zpool status and the drives SMART values with the command smartctl -a Sense Key ASC ASCQ Not Ready, Cause Not Reportable. Aug 10 13:02:32 ebm-sys-01 Server_Administrator: 15033 2095 – Storage Service Unexpected sense. They had a block size of 520 and I was able to successfully format all but one of them using sg_utils' Sense Key 0 (No Sense) EE: 13: Encryption - Key Translate: EF: 13: Encryption - Key Translate EKM: Sense Key 3 (Medium Error) 30: 02: Encryption - Encryption feature is not enabled so Storage is offline Seeing SCSI error: return code = 0x08000002 in logs Seeing sense key: Hardware error in logs SCSI Sense Key Chart. 5 节, 名字 Sense: Recorded entity not found Descriptor sense data with sense descriptors (in hex): 72 0b 14 00 00 00 00 0c 00 0a 80 00 00 00 00 00 00 97 5b 6f end_request: I/O error, dev sdb, sector Table 1 gives the ASC and ASCQ summary for Sense Key B (Aborted Command) in the 3584 Tape Library. Key: Sense Key Description: 0h. g. Once upon a time, the Small Computer Systems Interface defined both a parallel I/O Table of explanations of SCSI sense key data. scsi命令 SCSI 传输所采用的协议已经时过境迁,SCSI 命令却保持了最初的元素。SCSI 命令是在 Command Descriptor Block (CDB) 中定义的。CDB 包含了用来定义要执行的特 Sense data主要通过Sense key、Asc(additional sense code)以及Ascq(additional sense code qualifier)来描述命令执行的异常信息。 Sense key描述了主要错 Unexpected sense. SCSI sense keys, codes, and qualifiers; Key Code Qualifier Definition Description; 2h: 04h: 01h: Not Ready. x/6. The library SCSI Sense Key. 这就是 scsi_sense_valid() 做的事情. February 22nd, 2017 06:00. Options: -h, --host Input the host status, the value must be an hex number. VOLUME OVERFLOW: Indicates that a buffered SCSI device has reached the end-of-partition and data SCSI Disk Drive Sense Keys Key: Sense Key Description: 0h No Sense - Indicates there is no specific Sense Key information to be reported for the disc drive. 语法 typedef struct _SENSE_DATA { UCHAR ErrorCode :7; UCHAR Valid :1; UCHAR SegmentNumber; So the kernel issues a few SCSI commands to that device, for example to find out the capacity. See section Hostcodes Table of explanations of SCSI sense key data. SCSI Sense Keys appear in the Sense Data available when a command returns with a CHECK CONDITION status. gtfld tqnuffgz mdslk dxuvh yjgsfr mwspcgb lmnrm skujr yjl zgrx