Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for processing SCSI sensing data

A technology for sensing data and processing methods, applied in the field of computer communication, it can solve the problems of time-out storage systems, inability to solve abnormal hard disk devices, storage system crashes, etc., and achieve the effect of improving fault tolerance.

Active Publication Date: 2012-05-09
NEW H3C TECH CO LTD
View PDF6 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] However, in the above-mentioned existing processing methods, the first method does not adopt any fault-tolerant mechanism, and the second method simply adopts the method of resending I / O commands, which seems simple and efficient, but if the abnormality of the hard disk device is persistent Or if additional intervention is required, then continuously resending I / O commands cannot solve the abnormality of the hard disk device, and it is easy to cause the I / O command to time out and hang or block the entire storage system, and even cause the storage system to crash in severe cases.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for processing SCSI sensing data
  • Method and device for processing SCSI sensing data
  • Method and device for processing SCSI sensing data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] Embodiment one, as figure 2 As shown, the method may specifically include the following steps:

[0026] Step 201: The SCSI driver program receives a command response containing sensing data sent by the hard disk device.

[0027] Step 202: Determine whether the hard disk device is in the topology of the storage system, and if so, execute step 203; otherwise, end the fault-tolerant processing flow of the sensed data.

[0028] In the storage system, a logical view will be generated for the topology of the storage system. After the hard disk device is successfully added to the storage system, it will exist in the logical view. Therefore, in this step, by querying whether the hard disk device exists in the storage system In the logical view of the storage system, you can know whether it is in the topology of the storage system.

[0029] Step 203: Determine whether the hard disk device is undergoing abnormal recovery processing, if yes, end the fault-tolerant processing fl...

Embodiment 2

[0045]Embodiment two, such as image 3 As shown, when the SCSI driver receives the sensing data sent by the hard disk device, and the sensing data indicates that an unrecoverable abnormality occurs in the hard disk device, perform the following steps:

[0046] Step 301: Determine whether the hard disk device is in the topology of the storage system, if yes, execute step 302; otherwise, end the fault-tolerant processing flow of the sensed data.

[0047] Step 302: Determine whether the hard disk device is being permanently powered off, if yes, end the fault-tolerant processing flow of the sensing data; otherwise, execute step 303.

[0048] Step 303: Send a power-off command for the hard disk device to the hard disk control unit, and cut off the power supply to the hard disk device.

[0049] So far, the process shown in the second embodiment ends.

[0050] In any scenario, the sensing data can be fault-tolerantly processed according to the procedures shown in Embodiment 1 and E...

Embodiment 3

[0056] Embodiment 3: After the SCSI driver receives the command response containing the sensing data, the parsed scene information is: the I / O command is a management control command and the state of the hard disk device is a static access state, that is, in Table 1 Scenario A, then as Figure 4 shown, perform the following steps:

[0057] Step 401: Determine whether the management control command affects the normal access of the hard disk device. If yes, it can be executed according to the fault-tolerant processing method in Embodiment 1, even if the hard disk device is first powered off and then delayed in the recovery mode of power-on; if not, Execute step 402.

[0058] If the management control command is a management command to obtain the serial number, identification and other information of the hard disk device, it will not affect the normal access of the hard disk device; if the management control command is to open or close the cache control command, it will affect t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method and a device for processing SCSI (small computer system interface) sensing data, and is applicable to a storage system consisting of an SCSI drive unit and a hard disk device. The method comprises the following steps: the SCSI drive unit confirms that the hard disk device is in an abnormal state after receiving a command response including sensing data sent from the hard disk device, and carries out the following abnormity recovery process: cutting off the power supply to the hard disc device through sending a power-off instruction, and starting up a timer; and a power-on instruction is sent to recover the power supply to the hard disk after the timer returns the zero. The invention can effectively improve the fault-tolerance of the system.

Description

technical field [0001] The invention relates to computer communication technology, in particular to a method and device for processing sensing data of a small computer system interface (SCSI). Background technique [0002] Small Computer System Interface (SCSI, Small Computer System Interface), as a high-speed and high-efficiency storage bus protocol for enterprise-level applications, provides a detailed error status indication mechanism. The error information code is used to indicate the reason for the command failure or the abnormal state of the hard disk. The error information code is SCSI sensing data, which defines nearly 200 specific error or abnormal state information. For example, when a hard disk device receives an I / O command such as a management control class or an access class, if the I / O command is normally processed by the hard disk device, the hard disk device will return a command response containing success information; If the command cannot be processed no...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/07
Inventor 徐磊郑劭馨张日新汪文敏金堂
Owner NEW H3C TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products