Fault injection tool based on scsi driver layer

A technology of fault injection and driver layer, applied in the direction of software testing/debugging, etc., can solve problems such as ignoring usability, and achieve the effect of real fault performance and low cost

Inactive Publication Date: 2011-12-07
HARBIN INST OF TECH
View PDF2 Cites 34 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The evaluation of various parts of the mass storage system is particularly important. However, traditional testing procedures ignore areas such as usability, and fault injection te

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
  • Fault injection tool based on scsi driver layer
  • Fault injection tool based on scsi driver layer
  • Fault injection tool based on scsi driver layer

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment approach 1

[0034] The specific embodiment one, the fault injection tool based on the SCSI driver layer described in the present embodiment is a fault injection tool based on the SCSI driver layer, and is realized based on the Linux environment, and the kernel version of the Linux is 2.6.28, and the present embodiment The described fault injection tool based on the SCSI driver layer includes a fault injection command incoming interface, a multipath device matching viewing interface and a kernel module, wherein,

[0035] Fault injection command incoming interface: used to provide an external fault configuration file input interface, and generate a fault injection command Scsi_Fault_Cmnd according to the input fault configuration file, and send the fault injection command Scsi_Fault_Cmnd into the kernel;

[0036] Kernel module: run in the kernel state, used to intercept and rewrite the queuecommand function of the SCSI command according to the received fault injection command to realize faul...

specific Embodiment approach 2

[0067] Specific embodiment two, this embodiment is a further description of the kernel module function of the fault injection tool based on the SCSI driver layer in the specific embodiment one, in the present embodiment, the described kernel module is in the mode of dynamic load module, as kernel Part of it simulates the permanent failure and transient failure of the injected disk. The specific process is as follows:

[0068] The user will pass the fault information (Fault_Info) into the kernel through the / proc file system of the Linux system. After receiving the data, the tool will write the fault type, fault interval time, fault start and end sectors and other information into the fault information structure of the corresponding device (Dev_Fault_Info); the newly rewritten queuecommand() function will compare the fault information of the execution device before each SCSI Command is executed, to determine whether the command matches the fault injection information, that is, w...

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

A fault injection tool based on the SCSI driver layer, involving fault injection technology. The invention provides a fault injection tool for mass storage for detecting quality of mass storage. The fault injection command input interface in the fault injection tool is used to provide an external fault configuration file input interface, generate and send a fault injection command to the kernel; the kernel module runs in the kernel state, and is used to intercept and rewrite according to the received fault injection command The queuecommand function of the SCSI command is used to implement fault injection; and the device registration information is printed to the kernel log during the fault loading process, and the fault information is printed to the kernel log after the fault is injected; the multipath device number matching viewing interface is used to view the Compare the device with the kernel log and multipath configuration information, and obtain the registration number ID corresponding to each path of the multipath device in the tool. This tool enables more fault simulations.

Description

technical field [0001] The present invention relates to fault injection technology. Background technique [0002] With the continuous increase of storage system capacity requirements, mass storage systems have become a trend. The evaluation of various parts of the mass storage system is particularly important. However, traditional testing procedures ignore areas such as usability, and fault injection technology is the most typical method of usability evaluation. Therefore, it is necessary to study it to improve the quality of evaluation and ensure mass storage. The quality is extremely necessary. [0003] Under the Linux operating system, basically all storage devices will appear in the / dev directory in the form of block devices for use, and the block device will be a SCSI device registered under the SCSI protocol at the driver layer, so whether the storage device is Whatever protocol is used, when registering the driver under Linux, the original protocol (such as optical...

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/36
Inventor 左德承钱军张展薛利兴罗丹彦苗百利周海鹰刘宏伟董剑祁鑫温东新杨孝宗
Owner HARBIN INST OF TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products