Method for realizing large-capacity SAS hard disk

文档序号:134884 发布日期:2021-10-22 浏览:33次 中文

阅读说明:本技术 一种大容量sas硬盘的实现方法 (Method for realizing large-capacity SAS hard disk ) 是由 陶航 刘海銮 鲁腾 陈洪强 于 2021-06-22 设计创作,主要内容包括:本发明公开了一种大容量SAS硬盘的实现方法,该方法对应的SAS硬盘包括若干个SATA硬盘、硬盘管理模块、地址映射模块、T10PI模块、双控双活模块、第一SAS协议模块和第二SAS协议模块,其中,所述若干个SATA硬盘均与硬盘管理模块连接,硬盘管理模块、地址映射模块、T10PI模块和双控双活模块依次连接,双控双活模块与第一SAS协议模块和第二SAS协议模块分别连接,第一SAS协议模块和第二SAS协议模块均与主机连接。本发明较其它大容量硬盘的实现方法的创新点在于用单端口的硬盘通过双控双活模块实现双端口的全双工传输;另外在数据块中加入保护信息,支持ANSI T10PI标准。(The invention discloses a method for realizing a high-capacity SAS hard disk, wherein the SAS hard disk corresponding to the method comprises a plurality of SATA hard disks, a hard disk management module, an address mapping module, a T10PI module, a double-control double-active module, a first SAS protocol module and a second SAS protocol module, wherein the SATA hard disks are all connected with the hard disk management module, the address mapping module, the T10PI module and the double-control double-active module are sequentially connected, the double-control double-active module is respectively connected with the first SAS protocol module and the second SAS protocol module, and the first SAS protocol module and the second SAS protocol module are both connected with a host. Compared with other methods for realizing a large-capacity hard disk, the method has the innovation points that the single-port hard disk realizes double-port full duplex transmission through the double-control double-active module; protection information is added into the data block to support the ANSI T10PI standard.)

1. A method for realizing a high-capacity SAS hard disk is characterized in that the SAS hard disk corresponding to the method comprises a plurality of SATA hard disks, a hard disk management module, an address mapping module, a T10PI module, a double-control double-active module, a first SAS protocol module and a second SAS protocol module, wherein the SATA hard disks are all connected with the hard disk management module, the address mapping module, the T10PI module and the double-control double-active module are sequentially connected, the double-control double-active module is respectively connected with the first SAS protocol module and the second SAS protocol module, and the first SAS protocol module and the second SAS protocol module are both connected with a host;

the realization method comprises reporting SAS hard disk information and state when power is on, the host computer performing read-write access to the SAS hard disk,

the method for reporting the SAS hard disk information and state during power-on comprises the following steps:

s11, the hard disk management module checks the number of the connected SATA hard disks;

s12, the hard disk management module checks whether the number of the SATA hard disks is consistent with the factory configuration number; if not, S16, the hard disk management module initiates the process, and reports SAS hard disk error information to two different hosts through the first SAS protocol module and the second SAS protocol module;

s13, if the hard disk quantity detection is consistent with the factory configuration, the hard disk management module acquires the states of the connected SATA hard disks one by one;

s14, the hard disk management module judges whether the state of the SATA hard disk is correct, if so, the hard disk management module executes S16;

s15, if the states of all SATA hard disks are correct, respectively reporting SAS hard disk information to two different hosts through the first SAS protocol module and the second SAS protocol module;

the method for the SAS hard disk read-write access of the host comprises the following steps:

s101, a host A initiates read-write access operation to an SAS hard disk through a first SAS protocol module;

s201, a host B initiates read-write access operation to an SAS hard disk through a second SAS protocol module;

s102, a first SAS protocol module processes an SAS command of a host A and extracts a corresponding access command;

s202, the second SAS protocol module processes the SAS command of the host B and extracts a corresponding access command;

s301, the double-control double-active module processes operation requests sent by different hosts, if address conflict exists in operations initiated by different hosts, the same physical address is accessed, the double-control double-active module arbitrates according to a time sequence, and after arbitration, a priority command is not obtained, and operation is started after the priority command is processed; if no conflict exists, the operations initiated by different hosts can be simultaneously carried out;

s302, the T10PI module checks the data integrity, and if the data of the check result is complete, the operation of S303 is continued; if the data of the checking result is not complete, informing the host that the data has transmission errors;

s303, the address mapping module determines the actual SATA hard disk and the physical address which need to be accessed according to the received SAS access operation command;

s304, the hard disk management module performs corresponding read and/or write access operation on the connected SATA hard disk.

2. The method for implementing the large-capacity SAS hard disk of claim 1, wherein the error information in S16 is error information of the entire SAS hard disk, and includes that the hard disk capacity of the current SAS hard disk is unknown and/or the current SAS hard disk is inaccessible.

3. The method for implementing the large-capacity SAS hard disk of claim 1 wherein the SAS hard disk information in S15 is whole information including volume, interface, rate, device name and serial number.

Technical Field

The invention belongs to the technical field of computer data processing, and relates to a method for realizing a high-capacity SAS hard disk.

Background

In the big data era, a large amount of data is stored on a hard disk, the requirements of higher data reliability and large capacity are put forward on the hard disk, and the large-capacity SAS hard disk is a very suitable choice.

Sas (Serial Attached SCSI), a Serial Attached SCSI, is a new generation of SCSI technology, similar to the current popular Serial ATA (SATA) hard disk. The SAS interface extends functions such as command ordering on the SCSI hard disk, and the command queue depth is far larger than that of the SATA interface, so the performance of the SAS interface is much better than that of SATA. SCSI is an abbreviation for Small Computer System Interface, using a 50 pin Interface.

In addition, SAS is a fully bidirectional system, while SATA inherits the characteristics of IDE and is a semi-bidirectional communication system. Therefore, the data throughput of the SAS can be twice that of the SATA system for the same channel rate. IDE interfaces (Integrated Drive Electronics) are electronic Integrated drives.

And the slave connection also has a larger advantage of SAS. According to the SATA related specification, the data link length of SATA should not exceed one meter, otherwise signal degradation may occur and usage may be compromised. However, the SAS interface completely overcomes the problem, and the longest length of the connection line can be six meters, which is quite advantageous for users who have multiple hard disks or are accustomed to externally connecting the hard disks.

In the prior art, the capacity of a single disk is increased by directly adopting the SATA hard disk or increasing the density of a hard disk storage medium, but the increase is difficult due to the limitation of a manufacturing process, and the higher the density is, the higher the cost is.

Disclosure of Invention

In order to solve the above problems, the technical solution of the present invention is a method for implementing a high capacity SAS hard disk, where the SAS hard disk corresponding to the method includes a plurality of SATA hard disks, a hard disk management module, an address mapping module, a T10PI module, a dual-control dual-active module, a first SAS protocol module and a second SAS protocol module, where the plurality of SATA hard disks are all connected to the hard disk management module, the address mapping module, the T10PI module and the dual-control dual-active module are sequentially connected, the dual-control dual-active module is respectively connected to the first SAS protocol module and the second SAS protocol module, and the first SAS protocol module and the second SAS protocol module are both connected to a host;

the realization method comprises reporting SAS hard disk information and state when power is on, the host computer performing read-write access to the SAS hard disk,

the method for reporting the SAS hard disk information and state during power-on comprises the following steps:

s11, the hard disk management module checks the number of the connected SATA hard disks;

s12, the hard disk management module checks whether the number of the SATA hard disks is consistent with the factory configuration number; if not, S16, the hard disk management module initiates the process, and reports SAS hard disk error information to two different hosts through the first SAS protocol module and the second SAS protocol module;

s13, if the hard disk quantity detection is consistent with the factory configuration, the hard disk management module acquires the states of the connected SATA hard disks one by one;

s14, the hard disk management module judges whether the state of the SATA hard disk is correct, if so, the hard disk management module executes S16;

s15, if the states of all SATA hard disks are correct, respectively reporting SAS hard disk information to two different hosts through the first SAS protocol module and the second SAS protocol module;

the method for the SAS hard disk read-write access of the host comprises the following steps:

s101, a host A initiates read-write access operation to an SAS hard disk through a first SAS protocol module;

s201, a host B initiates read-write access operation to an SAS hard disk through a second SAS protocol module;

s102, a first SAS protocol module processes an SAS command of a host A and extracts a corresponding access command;

s202, the second SAS protocol module processes the SAS command of the host B and extracts a corresponding access command;

s301, the double-control double-active module processes operation requests sent by different hosts, and if address conflicts exist in operations initiated by different hosts, the same physical address is accessed, and the double-control double-active module arbitrates according to a time sequence; after arbitration, the command without priority can start to execute operation only after the command with priority is processed; if no conflict exists, the operations initiated by different hosts can be simultaneously carried out;

s302, the T10PI module checks the data integrity; if the data of the checking result is complete, continuing the operation of S303; and if the data of the checking result is not complete, informing the host that the data has transmission errors.

S303, the address mapping module determines the actual SATA hard disk and the physical address which need to be accessed according to the received SAS access operation command;

s304, the hard disk management module performs corresponding read and/or write access operation on the connected SATA hard disk.

Preferably, the error information in S16 is error information of the entire SAS hard disk, including that the hard disk capacity of the current SAS hard disk is unknown and/or the current SAS hard disk is inaccessible.

Preferably, the SAS hard disk information in S15 is whole information, including volume, interface, rate, device name, and serial number.

The beneficial effects of the invention at least comprise:

1) other interface hard disks are converted into SAS hard disks, so that the cost of the SAS hard disks is reduced;

2) the capacity of the hard disk is increased, and the capacity of a single hard disk can be increased by multiple times by adopting the invention, so that the storage capacity of the whole system is increased;

3) the data module is added with the contained information (PI) to improve the integrity and reliability of the hard disk data.

Drawings

Fig. 1 is a structural block diagram of a high-capacity SAS hard disk corresponding to the method for implementing the high-capacity SAS hard disk according to the embodiment of the present invention;

fig. 2 is a flowchart of a method for implementing a large-capacity SAS hard disk according to an embodiment of the present invention after power-on;

fig. 3 is a flow chart of read-write access of the method for implementing a large capacity SAS hard disk according to the embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

On the contrary, the invention is intended to cover alternatives, modifications, equivalents and alternatives which may be included within the spirit and scope of the invention as defined by the appended claims. Furthermore, in the following detailed description of the present invention, certain specific details are set forth in order to provide a better understanding of the present invention. It will be apparent to one skilled in the art that the present invention may be practiced without these specific details.

Referring to fig. 1 to 3, a hard disk structure diagram and a method flowchart of a method for implementing a high capacity SAS hard disk according to the technical solution of the present invention are shown, where the SAS hard disk corresponding to the method includes a plurality of SATA hard disks 10, a hard disk management module 21, an address mapping module 22, a T10PI module 23, a dual-control dual-active module 24, a first SAS protocol module 25, and a second SAS protocol module 26, where the plurality of SATA hard disks 10 are all connected to the hard disk management module 21, the address mapping module 22, the T10PI module 23, and the dual-control dual-active module 24 are sequentially connected, the dual-control dual-active module 24 is connected to the first SAS protocol module 25 and the second SAS protocol module 26, respectively, and the first SAS protocol module 25 and the second SAS protocol module 26 are both connected to a host;

the T10PI (information protection) technology was proposed by the T10 committee in 2003 as a data integrity extension technology, which attaches 8-byte data to each 512-byte data block for storing integrity information of the data block, and can implement integrity check by comparing the data blocks later to ensure that the data in the data block is unchanged.

The realization method comprises reporting SAS hard disk information and state when power is on, the host computer performing read-write access to the SAS hard disk,

the method for reporting the SAS hard disk information and state during power-on comprises the following steps:

s11, the hard disk management module 21 checks the number of the SATA hard disks 10 connected;

s12, the hard disk management module 21 checks whether the number of the SATA hard disks 10 connected is consistent with the factory configuration number; if not, S16, initiated by the hard disk management module 21, reports SAS hard disk error information to two different hosts through the first SAS protocol module 25 and the second SAS protocol module 26, respectively;

s13, if the hard disk quantity detection is consistent with the factory configuration, the hard disk management module 21 acquires the states of the connected SATA hard disks 10 one by one;

s14, the hard disk management module 21 judges whether the state of the SATA hard disk 10 is correct, if so, the hard disk management module executes S16;

s15, if the states of all SATA hard disks 10 are correct, respectively reporting SAS hard disk information to two different hosts through the first SAS protocol module 25 and the second SAS protocol module 26;

the method for the SAS hard disk read-write access of the host comprises the following steps:

s101, a host A initiates read-write access operation to an SAS hard disk through a first SAS protocol module 25;

s201, a host B initiates read-write access operation to the SAS hard disk through a second SAS protocol module 26;

s102, the first SAS protocol module 25 processes the SAS command of the host A and extracts a corresponding access command;

s202, the second SAS protocol module 26 processes the SAS command of the host B and extracts a corresponding access command;

s301, the dual-control dual-active module 24 processes operation requests sent by different hosts, and since operations initiated by different hosts may have a certain conflict, for example, the operations initiated by different hosts may write the same address of the same SATA hard disk 10 at the same time, the dual-control dual-active module 24 needs to arbitrate according to a time sequence. After arbitration, the command without priority can start to execute operation only after the command with priority is processed; if there is no conflict, operations initiated by different hosts may proceed simultaneously.

S302, the T10PI module 23 checks the integrity of the data, and if the data of the check result is complete, the operation of S303 is continued; and if the data of the checking result is not complete, informing the host that the data has transmission errors.

S303, the address mapping module 22 determines the actual SATA hard disk 10 and the physical address to be accessed according to the received SAS access operation command;

s304, the hard disk management module 21 performs corresponding read and/or write access operations on the connected SATA hard disk 10.

In a specific embodiment, the error message in S16 does not directly report that the number of SATA hard disks 10 is inconsistent or that a status of a certain SATA hard disk 10 is incorrect. But reports the error information of the whole SAS hard disk. For example, the capacity of the current SAS hard disk is unknown, the current SAS hard disk is inaccessible, and the like.

The SAS hard disk information in S15 is overall information including volume, interface, rate, device name, and serial number.

The invention provides a new technical architecture and a method, which can combine a plurality of SATA hard disks 10 into a SAS hard disk, thereby solving the requirement of large capacity of the SAS hard disk.

Compared with other high-capacity hard disk realization methods, the invention has the innovation point that the double-port full duplex transmission is realized by the double-control double-active module 24 by using the hard disk with a single port (a plurality of SATA hard disks 10 are connected with the hardware management module by single-port SATA interfaces).

The invention also provides a new point that protection information is added into the data block, and a T10PI module 23 is set to support ANSI T10PI standard, so that the SATA hard disk 10 which does not support the data protection function originally is changed into an SAS hard disk which supports the data protection function, and the data reliability of the hard disk is greatly improved.

The method provided by the invention directly improves the capacity of a single hard disk. In specific application, if the maximum capacity of a single SATA hard disk on the market is 20T, the invention can realize a SAS hard disk with 40T, 80T or even larger.

Meanwhile, the transmission reliability of the SAS interface is higher than that of a general hard disk interface, so the price of the SAS interface hard disk is generally higher than that of other interface hard disks, for example, the price of the SAS interface hard disk is higher than that of an SATA hard disk. The invention provides an implementation mode of a high-capacity SAS hard disk, which can convert hard disks of other interfaces into SAS interfaces, thereby greatly reducing the cost of the SAS hard disk.

The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

9页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:产品标识的传输方法、终端设备、系统及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类