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

Method, system and device for identifying SCSI device under Linux system and storage medium

A device and target device technology, applied in the computer field, can solve problems such as process blocking, and achieve the effect of reducing the waiting time of the process and reducing the I/O busy problem.

Active Publication Date: 2022-03-15
平安壹账通云科技(深圳)有限公司
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] Multiple scans of the same device or the same logical unit are likely to cause process blockage in the case of the same time stamp; the purpose of multi-logical unit scanning is to establish the corresponding relationship between the upper and lower layers, and for the shared logical unit, the acquired A unique logical unit ID is enough. In the prior art, initiating the same scan task on multiple hosts in a short period of time will also cause process blockage

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, system and device for identifying SCSI device under Linux system and storage medium
  • Method, system and device for identifying SCSI device under Linux system and storage medium
  • Method, system and device for identifying SCSI device under Linux system and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0051] figure 1 A schematic diagram of scenarios of a method for identifying SCSI devices under a Linux system provided by an embodiment of the present invention, such as figure 1 As shown, the user writes a recognition instruction in the client, and sends the recognition instruction to the server. After receiving the identification instruction, the server executes the method for identifying the SCSI device under the Linux system, so as to realize the return visit to the user.

[0052] It should be noted that the server can be implemented by an independent server or a server cluster composed of multiple servers. Clients can be smartphones, tablets, laptops, desktop computers, etc., but are not limited thereto. The client and the server may be connected through Bluetooth, USB (Universal Serial Bus, Universal Serial ...

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, a system and equipment for identifying SCSI (small computer system interface) equipment under a Linux system and a storage medium, and the method comprises the following steps: identifying a host adapter connected with a host, and obtaining configuration information of the host adapter; obtaining target device resource binding information according to the configuration information of the host adapter; according to the number of the hosts and the information of the hosts connected with the host adapters, judging whether a condition that a plurality of hosts share a plurality of host adapters exists or not; and if the number of the shared hosts is not greater than the number of the shared host adapters, allocating one shared host adapter to each shared host, and allocating the shared host adapters which are not allocated to other non-shared hosts. According to the embodiment of the invention, multiple threads in the same timestamp are prevented from accessing the same host adapter, and thread blockage is avoided.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method, system, device and storage medium for identifying SCSI devices under a Linux system. Background technique [0002] Among various storage technologies in the current industry, Small Computer System Interface (SCSI) is one of the commonly used and important data transmission protocols. It supports the I / O operations of the operating system on external devices. In practical application scenarios , Adding a new SCSI disk on the Linux system does not require restarting, and generally the ready device can be identified through the operation found by scanning. [0003] The following are the two scanning methods commonly used today: [0004] 1) Perform SCSI scan through attribute settings under / sys: [0005] #echo '---'> / sys / class / scsi_host / host[n] / scan. [0006] In this method, what / sys mounts is not a real file system, but an interface for calling kernel data struct...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/46G06F9/54
CPCG06F9/466G06F9/546G06F9/541G06F2209/548Y02D10/00
Inventor 曾梓健
Owner 平安壹账通云科技(深圳)有限公司
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