Method for storing data in a storage system, method for reading data, data storage device, data reading device, storage device, and system

By storing data at the granularity of hard disk modules within the storage system, the method addresses inefficiencies in existing distributed storage systems, fully utilizing storage resources and computing power while enhancing reliability.

JP7532524B2Active Publication Date: 2024-08-13HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2022536646
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-02-17
Filing Date
2020-12-29
Publication Date
2024-08-13
Estimated Expiration
2040-12-29

AI Technical Summary

Technical Problem

Existing distributed storage systems fail to fully utilize storage resources due to the use of storage nodes as the primary unit of storage granularity, leading to inefficiencies in hard disk capacity and computing resources.

Method used

Storing data at the granularity of hard disk modules within the storage system, where each module includes an interface module and a hard disk, allowing for the use of more hard disk modules than storage nodes, thereby fully utilizing storage resources and computing power.

Benefits of technology

This approach enables full utilization of storage and computing resources by increasing the number of hard disk modules beyond storage nodes, reducing waste and improving reliability through backup mechanisms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007532524000001
    Figure 0007532524000001
  • Figure 0007532524000002
    Figure 0007532524000002
  • Figure 0007532524000003
    Figure 0007532524000003
Patent Text Reader

Abstract

This application discloses a data storage method, a data reading method, an apparatus, and a system in a storage system, and this application belongs to the field of information technology. The method includes a step in which a first device generates N check units for M data units, where M and N are both positive integers, and M+N=K. The first device stores the K units in K hard disk modules in the storage system, where the K units include M data units and N check units. Each of the K hard disk modules stores one of the K units. Each hard disk module includes an interface module and a hard disk, and the interface module communicates with the hard disk. This application can fully utilize storage resources in the storage system.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application claims priority to Chinese Patent Application No. 202010018706.6, entitled "DATA STORAGE METHOD IN STORAGE SYSTEM AND STORAGE SYSTEM," filed on January 8, 2020, and also claims priority to Chinese Patent Application No. 202010096222.3, entitled "DATA STORAGE METHOD, DATA READING METHOD, AND APPARATUS IN STORAGE SYSTEM, AND SYSTEM," filed on February 17, 2020. Both of these Chinese patent applications are incorporated herein by reference in their entireties.

[0002] The present application relates to the field of information technology, and in particular to a method and apparatus for storing and retrieving data in a storage system, and a system. [Background technology]

[0003] A distributed storage system may include multiple storage nodes, which are storage servers, each of which includes storage resources, such as multiple hard disks. The distributed storage system organizes the storage resources on the storage nodes to provide storage services.

[0004] When storing data in a distributed storage system, a client typically divides data into M data units and obtains N check units of these data units according to an erasure coding (EC) algorithm. The client stores the M data units and N check units in [M+N] storage nodes, i.e., one of the [M+N] storage nodes stores one corresponding unit (data unit or check unit).

[0005] Although the capacity of hard disks has increased and storage nodes can be equipped with more hard disks, clients still use storage nodes as EC algorithm-based storage granularity when storing data, resulting in insufficient utilization of the storage resources of hard disks. Summary of the Invention

[0006] The present application provides a method for storing data in a storage system, a method and apparatus for reading data, and the system, to fully utilize the storage resources in the storage system. The technical solutions thereof are as follows:

[0007] According to a first aspect, an embodiment of the present application provides a method for storing data in a storage system. The method includes: a first device generating N check units for M data units, where M and N are both positive integers, and M+N=K. The first device stores the K units in K hard disk modules in the storage system, where the K units include the M data units and the N check units. Each of the K hard disk modules stores one of the K units. Each hard disk module includes an interface module and a hard disk, where the interface module communicates with the hard disk.

[0008] In this way, storage is performed at the granularity of the hard disk module in the storage system, i.e., K hard disk modules are used to store K corresponding units, so that compared with the conventional technology where storage is performed at the granularity of the storage node, the amount of hard disk modules is greater than the amount of storage nodes, and therefore the storage resources in the storage system can be fully utilized.

[0009] In one possible implementation, the storage system includes a plurality of storage nodes, and each storage node communicates with the interface modules of K hard disk modules. Since each storage node communicates with the interface modules of multiple hard disk modules, the computing resources of the storage node can be fully utilized, and the computing power of the CPU of the storage node is fully utilized. This reduces the waste of computing resources.

[0010] In another possible implementation, the first device is a client of the storage system. The client sends K units to a target storage node of the plurality of storage nodes, and the target storage node stores the K units in K hard disk modules in the storage system. In this way, storage is performed at the granularity of the hard disk modules in the storage system, thereby making it possible to fully utilize the storage resources in the storage system.

[0011] In another possible implementation, the first device is one of a plurality of storage nodes.

[0012] In other possible implementations, the interface module is a host bus adapter, a redundant independent disk array, an expander card, or a network interface card.

[0013] In another possible implementation, the storage system includes a second device, and the second device and the first device have a mutual backup relationship or a primary / secondary relationship. In this way, when the first device is broken, the second device can replace the hard disk module corresponding to the first device. In this way, the data stored in the hard disk module corresponding to the first device does not need to be restored, and the reliability of the storage system is improved.

[0014] According to a second aspect, an embodiment of the present application provides a data reading method in a storage system. In the method, a first device receives a read request, and the read request includes a data identifier of data to be read. The first device determines a hard disk module that stores the data to be read based on the data identifier from K hard disk modules in the storage system. The first device reads the data to be read from the hard disk module that stores the data to be read, and the data to be read belongs to data in M ​​data units. The storage system further includes N check units of the M data units. M and N are both positive integers, and M+N=K. Each of the K hard disk modules stores one of the K units. The K units include M data units and N check units. Each hard disk module includes an interface module and a hard disk, and the interface module communicates with the hard disk. Since each of the K hard disk modules stores one of the K units, storage is performed at the granularity of the hard disk module in the storage system. This makes it possible to fully utilize the storage resources in the storage system, since the amount of hard disk modules is greater than the amount of storage nodes, compared with the conventional technology in which storage is performed at the granularity of the storage node.

[0015] In one possible implementation, the storage system includes a plurality of storage nodes, each of which communicates with the interface modules of K hard disk modules. Since each storage node communicates with a plurality of hard disk modules, the computing resources of the storage node can be fully utilized, and the computing power of the CPU of the storage node is fully utilized. This reduces the waste of computing resources.

[0016] In another possible implementation example, the first device is a client of the storage system. The client sends a data read request to a target storage node among the multiple storage nodes, and the data read request carries a data identifier. The target storage node reads the read target data from the hard disk module storing the read target data based on the data identifier. Since the target storage node can read the read target data from the hard disk module storing the read target data based on the data identifier, the data may be stored at the granularity of the hard disk module in the storage system.

[0017] In another possible implementation, the first device is one of a plurality of storage nodes.

[0018] In other possible implementations, the interface module is a host bus adapter, a redundant independent disk array, an expander card, or a network interface card.

[0019] In another possible implementation, the storage system includes a second device, and the second device and the first device have a mutual backup relationship or a primary / secondary relationship. In this way, when the first device is broken, the second device can replace the hard disk module corresponding to the first device. In this way, the data stored in the hard disk module corresponding to the first device does not need to be restored, and the reliability of the storage system is improved.

[0020] According to a third aspect, the present application provides a data storage device in a storage system configured to perform the method of the first aspect or any one of the possible implementations of the first aspect. Specifically, the device includes a plurality of units configured to perform the method of the first aspect or any one of the possible implementations of the first aspect.

[0021] According to a fourth aspect, the present application provides a data reading device in a storage system configured to perform the method of the second aspect or any one of the possible implementations of the second aspect. Specifically, the device includes a plurality of units configured to perform the method of the second aspect or any one of the possible implementations of the second aspect.

[0022] According to a fifth aspect, the present application provides a data storage device in a storage system, the device including a processor and a communication interface. The processor communicates with the communication interface. The processor and the communication interface are configured to perform corresponding steps in the method of the first aspect or any one of the possible implementations of the first aspect.

[0023] According to a sixth aspect, the present application provides a data reading device in a storage system. The device includes a processor and a communication interface. The processor communicates with the communication interface. The processor and the communication interface are configured to perform corresponding steps in the method of the second aspect or any one of the possible implementations of the second aspect.

[0024] According to a seventh aspect, the present application provides a computer-readable storage medium. The computer-readable storage medium stores a program code. When the program code is executed by a computer, the computer performs the method of any one of the first aspect, the second aspect, possible implementations of the first aspect, or possible implementations of the second aspect.

[0025] According to an eighth aspect, the present application provides a computer program product comprising program code, which when run on a computer causes the computer to perform the method of any one of the first aspect, the second aspect, possible implementations of the first aspect, or possible implementations of the second aspect.

[0026] According to a ninth aspect, the present application provides a storage system, the storage system including a storage device and K hard disk modules, the storage device being configured to perform the method of any one of the first aspect, possible implementations of the first aspect, the second aspect, or possible implementations of the second aspect. [Brief description of the drawings]

[0027] [Figure 1] FIG. 1 is a schematic structural diagram of a storage system according to an embodiment of the present application.

[0028] [Diagram 2] FIG. 2 is a schematic structural diagram of another storage system according to an embodiment of the present application;

[0029] [Diagram 3] FIG. 2 is a schematic structural diagram of another storage system according to an embodiment of the present application;

[0030] [Figure 4] FIG. 2 is a schematic structural diagram of another storage system according to an embodiment of the present application;

[0031] [Diagram 5] FIG. 2 is a schematic structural diagram of another storage system according to an embodiment of the present application;

[0032] [Figure 6] 1 is a flowchart of a method for storing data in a storage system according to an embodiment of the present application.

[0033] [Figure 7] 1 is a flowchart of another method for storing data in a storage system according to an embodiment of the present application.

[0034] [Figure 8] FIG. 1 is a schematic structural diagram of a data storage device in a storage system according to an embodiment of the present application.

[0035] [Figure 9] FIG. 2 is a schematic structural diagram of a data reading device in a storage system according to an embodiment of the present application;

[0036] [Figure 10] 2 is a schematic structural diagram of another data storage device in a storage system according to an embodiment of the present application;

[0037] [Figure 11] FIG. 2 is a schematic structural diagram of another data reading device in a storage system according to an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0038] The following further describes in detail the embodiments of the present application with reference to the accompanying drawings.

[0039] Please refer to FIG. 1. An embodiment of the present application provides a storage system. The storage system includes a plurality of storage nodes, each of which corresponds to a plurality of hard disk modules, and the storage nodes access the hard disks in the plurality of hard disk modules. The hard disk module includes an interface module and a plurality of hard disks. The hard disks may be mechanical disks, solid state drives (SSDs), etc. The interface module may be a host bus adapter (HBA), a redundant array of independent disks (RAID), an expander card, a network interface controller (NIC), etc. This is not limited in the present embodiment of the present invention. The interface module in the hard disk module communicates with the hard disks. The storage nodes communicate with the interface module of the hard disk module to access the hard disks in the hard disk module.

[0040] The interface module may be implemented as a card, ie, the interface module may be an interface card.

[0041] The hard disk interface may be a Serial Attached Small Computer System Interface (SAS), a Serial Advanced Technology Attachment (SATA), a high-speed serial computer expansion bus standard (Peripheral Component Interconnect express: PCIe), or the like.

[0042] The storage node may communicate with the hard disk module through a bus, such as a PCIe bus. Alternatively, the storage node may communicate with the hard disk module through a network, such as an Ethernet, which is not a limitation of the present embodiment of the present invention.

[0043] In this embodiment of the present invention, storage nodes communicate with each other. In the storage system, there is a mutual backup relationship between one storage node and one or more other storage nodes. The mutual backup relationship means that one storage node can access multiple hard disk modules corresponding to other storage nodes. In other words, one storage node communicates with the hard disk module of another storage node that has a mutual backup relationship with this one storage node, that is, one storage node communicates with the interface module of the hard disk module of another storage node that has a mutual backup relationship with this one storage node.

[0044] It should be noted that when all the storage nodes in the mutual backup relationship are in a normal state, each storage node establishes a communication connection only with the multiple hard disk modules corresponding to the respective storage node. That is, each storage node directly performs read access and write access only with the multiple hard disk modules corresponding to the respective storage node. If one of the storage nodes in the mutual backup relationship is broken, another storage node of the storage node replaces the broken storage node and accesses the multiple hard disk modules of the broken storage node.

[0045] Optionally, the storage system alternatively has a primary / secondary relationship between one storage node and one or more other storage nodes. In other words, one storage node is a primary storage node and one or more other storage nodes are one or more secondary storage nodes, where the secondary storage node backs up the primary storage node. In this way, if the primary storage node fails, the secondary storage node can take over for the primary storage node.

[0046] For example, see FIG. 2. Assume that the first storage node and the second storage node are any two storage nodes having a mutual backup relationship or a primary / secondary relationship in a storage system. An example in which the storage nodes communicate with the hard disk modules through a bus is used for explanation. The first storage node corresponds to a plurality of first hard disk modules. The second storage node corresponds to a plurality of second hard disk modules. The first storage node is connected to the plurality of first hard disk modules and the plurality of second hard disk modules through a first bus. The second storage node is connected to the plurality of first hard disk modules and the plurality of second hard disk modules through a second bus.

[0047] In one implementation example, the first storage node and the second storage node are in a mutual backup relationship. When both the first storage node and the second storage node are in a normal state, the first storage node establishes a communication connection to the multiple first hard disk modules through the first bus, and the first storage node directly reads and writes only to the multiple first hard disk modules, and the second storage node establishes a communication connection to the multiple second hard disk modules through the second bus, and the second storage node directly reads and writes only to the multiple second hard disk modules. Assuming that the second storage node is faulty, the first storage node takes the place of the second storage node and accesses the multiple second hard disk modules of the second storage node. In this case, the first storage node directly reads and writes to the multiple first hard disk modules corresponding to the first storage node and the multiple second hard disk modules corresponding to the second storage node.

[0048] Please refer to Figure 3. A first storage node includes a first communication interface, a processing unit, and a second communication interface. The processing unit is connected to the first communication interface and the second communication interface. The first storage node establishes a communication connection to another storage node in the storage system through the first communication interface. The second communication interface of the first storage node is connected to a plurality of first hard disk modules corresponding to the first storage node and a plurality of second hard disk modules corresponding to the second storage node through a first bus.

[0049] When the first storage node is in a normal state, the second communication interface of the first storage node establishes a communication connection to the multiple first hard disk modules through the first bus. In this case, the processing unit of the first storage node may transmit data to another storage node in the storage system or receive data or an access request transmitted by another storage node through the first communication interface of the first storage node. Alternatively, the processing unit of the first storage node may transmit data to a client or receive an access request transmitted by a client through the first communication interface of the first storage node. The processing unit of the first storage node performs read and write access to the multiple first hard disk modules through the second communication interface of the first storage node. In other words, the unit of the first storage node communicates with the interface modules of the multiple first hard disk modules through the second communication interface. When the second storage node is faulty, the second communication interface of the first storage node establishes a communication connection to the multiple second hard disk modules through the first bus. In this case, the processing node of the first storage node may further perform read and write access to the multiple second hard disk modules through the second communication interface.

[0050] Optionally, the first communication interface and the processing unit in the first storage node are two separate modules. The first communication interface and the processing unit may be connected through a high-speed bus. The high-speed bus may be PCIe, Intel QuickPath Interconnect (QPI), etc. Alternatively, the first communication interface and the processing unit in the first storage node may be integrated together.

[0051] Optionally, the second communication interface and the processing unit in the first storage node are two separate modules. Alternatively, the second communication interface and the processing unit may be connected through a high-speed bus. Alternatively, the second communication interface and the processing unit in the first storage node may be integrated together.

[0052] Optionally, the first communication interface in the first storage node may be a network interface card, etc. See, for example, FIG. 4. The first communication interface may be a 10G network interface card. The processing unit in the first storage node may be a central processing unit (CPU) or a processing unit including one or more chips. For example, the processing unit may be a data compression card, an artificial intelligence (AI) inference card, an image processing card, a video capture card, etc. The second communication interface in the first storage node may be a PCIe switch chip, a SAS switch chip, etc.

[0053] Optionally, the storage nodes and the hard disk modules may be connected to each other through a shared link board, which includes a bus made up of one or more physical lines.

[0054] Optionally, see Fig. 3. The second communication interface of the first storage node is connected to the first hard disk modules and the second hard disk modules through a first bus. The second communication interface of the second storage node is connected to the first hard disk modules and the second hard disk modules through a second bus.

[0055] Optionally, see FIG. 5. One first hard disk module is communicatively connected to one second hard disk module. For example, the first hard disk module and the second hard disk module are connected to each other through a bus. The specific communication connection manner is not limited in this embodiment of the present invention. In this way, one first hard disk module and one second hard disk module form a cascade relationship. In this way, it is not necessary to connect the second communication interface of the first storage node to each second hard disk module, and it is not necessary to connect the second communication interface of the second storage node to each first hard disk module. Therefore, the amount of connections to the second communication interface of the storage node can be reduced. In the second hard disk module cascaded to the first hard disk module, when the second storage node is faulty, the first storage node can access the second hard disk module based on the cascade relationship of the second communication interface of the first storage node, the first hard disk module, and the first hard disk module, that is, the first storage node communicates with the interface module of the second hard disk module. For example, the first storage node and the second storage node are storage nodes in a mutual backup relationship. The first storage node and the second storage node can mutually determine whether a failure occurs. For example, the first storage node and the second storage node determine whether a failure occurs based on a heartbeat.

[0056] Optionally, a storage node may scan a plurality of hard disk modules corresponding to another storage node to obtain a hard disk module corresponding to the other storage node that is in a normal state, and establish a communication connection to the hard disk module that is in a normal state.

[0057] Optionally, a storage node in the storage system may store a correspondence between a node identifier of the storage node and a module identifier of a hard disk module.

[0058] Optionally, the node identifier of the storage node may be the address of the storage node. For example, the node identifier of the storage node may be an Internet Protocol (IP) address or a Media Access Control (MAC) address. The module identifier of the hard disk module may be the number of hard disk modules in the storage system, an identifier of an interface module, an address of an interface module, etc. This is not limited in this embodiment of the present invention.

[0059] When a storage node replaces multiple hard disk modules corresponding to another storage node, the storage node updates a node identifier corresponding to each module identifier of the multiple hard disk modules in the node identifier-module identifier correspondence relationship to a node identifier of the storage node, and sends an update request to other storage nodes in the storage system. The update request includes the node identifier of the storage node and the module identifiers of the multiple hard disk modules.

[0060] Any one of the other storage nodes in the storage system receives the update request and updates the node identifier corresponding to each module identifier of the multiple hard disk modules in the correspondence relationship between the node identifier and the module identifier to the node identifier of any one of the other storage nodes.

[0061] For example, in a first storage node and a second storage node that are in a mutual backup relationship, the first storage node can determine whether the second storage node has failed, and the second storage node can also determine whether the first storage node has failed. The first storage node and the second storage node can determine whether a failure has occurred between them by the following two methods. The two methods are as follows:

[0062] In a first method, a first storage node periodically transmits heartbeat information to a second storage node, and the second storage node also periodically transmits heartbeat information to the first storage node. If, after receiving the heartbeat information transmitted by the second storage node, the first storage node does not again receive the heartbeat information transmitted by the second storage node within a first length of time, the first storage node determines that the second storage node has failed. Similarly, if, after receiving the heartbeat information transmitted by the first storage node, the second storage node does not again receive the heartbeat information transmitted by the first storage node within a first length of time, the second storage node determines that the first storage node has failed.

[0063] In the second scheme, when the first storage node detects that it has failed, the first storage node may send interrupt information to the second storage node, and the second storage node receives the interrupt information and determines that the first storage node has failed. Similarly, when the second storage node detects that it has failed, the second storage node may send interrupt information to the first storage node, and the first storage node receives the interrupt information and determines that the second storage node has failed.

[0064] Optionally, the storage system may further include a client, and the client may communicate with a storage node in the storage system. The client may store data to be stored in the storage system, or read data to be read from the storage system. For a detailed implementation process of storing data to be stored in the storage system, please refer to the embodiment shown in FIG. 6 or FIG. 7. For a detailed implementation process of reading data to be read from the storage system, please refer to the embodiment shown in FIG. 9. Details will not be described here.

[0065] Please refer to Fig. 6. An embodiment of the present application provides a data storage method in a storage system. The storage system may be the storage system shown in Figs. 1 to 5. In the method, a storage node in the storage system receives data to be stored sent by a client, divides the data to be stored into M data units, generates N check units for the M data units, and stores the K units in K hard disk modules. The K units include M data units and N check units, where M and N are both positive integers. The method includes the following steps:

[0066] Step 101: A client sends a storage request to a first storage node, where the storage request includes data to be stored.

[0067] In this embodiment of the present invention, the first storage node may determine K hard disk modules to store the K units based on the correspondence between the partitions to which the K units belong and the hard disk modules. Furthermore, the hard disk module recorded in a partition further includes the storage node to which the hard disk module belongs. The partition records that one storage node is used as a primary storage node. In this embodiment of the present invention, an example is used in which the first storage node is the primary storage node. The client determines the corresponding partition based on the data identifier of the data to be stored, and determines to send a storage request to the first storage node based on the information about the primary storage node in the partition.

[0068] Optionally, the storage system in this embodiment of the present invention includes multiple partitions, and each hard disk module belongs to one or more partitions. The length of a stripe in a partition is determined according to an EC algorithm, and the length of the stripe is the sum of the lengths of M data units and N check units, that is, [M+N]. According to the EC algorithm, generally, one unit in a stripe is stored in one hard disk module, and [M+N] units require [M+N] hard disk modules. Therefore, one partition includes [M+N] hard disk modules. The storage node stores the correspondence between the partition and the hard disk module. Specifically, the correspondence between the partition and the hard disk module may include a partition identifier and a module identifier of the hard disk module of the storage node, and the module identifier of the hard disk module of the storage node includes a module identifier and an identifier of the storage node to which the hard disk module belongs. This is not limited in this embodiment of the present invention. The storage node divides the data to be stored into multiple data units, calculates the check unit of the data unit, and determines the hard disk module to store the data unit and the check unit based on the partition to which the data unit belongs. Generally, a storage system performs partition division using a hash ring method, but the present invention does not limit a specific implementation example.

[0069] Step 102: The first storage node divides data to be stored into M data units, and generates N check units for the M data units, where M and N are both positive integers.

[0070] The first storage node may generate N check units based on the M data units, and the N check units may be used to reconstruct at least one of the M data units.

[0071] Step 103: The first storage node stores the K units in K hard disk modules, where the K units include M data units and N check units, and each of the K hard disk modules stores one of the K units.

[0072] Each hard disk module includes an interface module and a hard disk, where the interface module communicates with the hard disk.

[0073] In this embodiment of the present invention, the first storage node may determine K hard disk modules to store the K units based on the corresponding relationship between the partitions to which the K units belong and the hard disk modules. Furthermore, each storage node stores the relationship between the hard disk modules and the storage nodes to which the hard disk modules belong. Therefore, after determining the K hard disk modules to store the K units, the first storage node sends a corresponding storage request to the storage node to which the hard disk modules other than the local hard disk module in the K hard disk modules belong. Specifically, the first storage node sends a first storage command to the second storage node, where the first storage command includes K2 units. The third storage node corresponds to the K3 third hard disk modules. The first storage node sends a second storage command to the third storage node.

[0074] In one implementation example, the K hard disk modules include K1 first hard disk modules corresponding to the first storage node, K2 second hard disk modules corresponding to the second storage node, and K3 third hard disk modules corresponding to the third storage node, where K1, K2, and K3 are all positive integers, and K1+K2+K3=K.

[0075] At this stage, the first storage node stores K1 units in K1 first hard disk modules and sends a first storage command to the second storage node. The first storage command includes K2 units. The first storage node sends a second storage command to the third storage node. The second storage command includes K3 units.

[0076] The second storage node receives the first storage command and stores the K2 units included in the first storage command on hard disks in the K2 second hard disk modules. The third storage node receives the second storage command and stores the K3 units included in the second storage command on hard disks in the K3 hard disk modules.

[0077] Optionally, the first storage command includes a data identifier of the data to be stored, and the second storage command includes a data identifier of the data to be stored.

[0078] Optionally, the first storage node sends a storage response to the client after storing the K1 units and sending the first storage command and the second storage command.

[0079] Optionally, when the second storage node fails, the first storage node stores the K1 units in the K1 first hard disk modules and stores the K2 units in the K2 second hard disk modules.

[0080] Optionally, when a storage node stores a unit in a hard disk module, the storage node transmits the unit to an interface module included in the hard disk module, which receives the unit and stores the unit on a hard disk included in the hard disk module.

[0081] Optionally, before storing the units in the hard disk module, the storage node may further compress the units and store the compressed units in the hard disk module.

[0082] Optionally, after storing the K1 units in the hard disks of the K1 first hard disk modules, the first storage node further obtains location information of the K1 units. For any one of the K1 units, the location information of the unit includes the data type of the unit, the module identifier of the hard disk module storing the unit, and the address information of the unit in the hard disk module. The address information may include a hard disk identifier, a starting storage address, a data length, etc. If the unit is a data unit, the data type of the unit is a data unit. If the unit is a check unit, the data type of the unit is a check unit. If the unit is a data unit, the location information of the unit may further include a unit identifier of a check unit corresponding to the data unit, and / or if the unit is a check unit, the location information of the unit further includes a unit identifier of at least one data unit corresponding to the check unit. The first storage node accordingly stores the data identifier of the data to be stored and the location information of the K1 units in a correspondence relationship between the data identifier and the location information.

[0083] Similarly, the second storage node stores K2 units in K2 second hard disk modules, and then acquires location information of the K2 units, and stores the data identifier of the data to be stored and the location information of the K2 units in the correspondence relationship between the data identifier and the location information. The third storage node stores K3 units in K3 third hard disk modules, and then acquires location information of the K3 units, and stores the data identifier of the data to be stored and the location information of the K3 units in the correspondence relationship between the data identifier and the location information.

[0084] The correspondence between the data identifiers and the location information is further synchronized among the storage nodes in the storage system, such that these storage nodes store the same correspondence between the data identifiers and the location information.

[0085] In this embodiment of the present invention, the storage nodes to which K hard disk modules belonging to the same partition belong are storage nodes in a mutual backup relationship or primary / secondary relationship.

[0086] Optionally, before performing step 102, the first storage node receives a storage request, obtains a first amount, and obtains M and N based on the first amount. The first amount is an amount of hard disk modules in a normal state included in the storage system.

[0087] The operation of the first storage node to obtain the first amount may be as follows: The first storage node obtains the amount of hard disk modules in a normal state corresponding to the first storage node, and sends a query command to other storage nodes in a normal state in the storage system; Any other storage node in the storage system receives the query command, obtains the amount of hard disk modules in a normal state corresponding to any other storage node, and sends the amount of hard disk modules in a normal state to the first storage node; The first storage node receives the amount of hard disk modules sent by the other storage node, and accumulates the obtained amount of hard disk modules and the received amount of hard disk modules to obtain the first amount.

[0088] A communication connection is established between the first storage node and at least one hard disk module. If any one of the at least one hard disk modules is faulty, the communication connection between the first storage node and any one of the at least one hard disk modules is cut off. Thus, the first storage node obtains the amount of hard disk modules in a normal state corresponding to the first storage node may be as follows: The first storage node determines the hard disk modules having a communication connection to the first storage node, and calculates the amount of the determined hard disk modules to obtain the amount of hard disk modules in a normal state corresponding to the first storage node.

[0089] Similarly, the manner in which any other storage node obtains the amount of hard disk modules in a normal state corresponding to any other storage node is the same as the manner in which the first storage node obtains the amount of hard disk modules in a normal state corresponding to the first storage node.

[0090] Optionally, the operation of the first storage node to obtain M and N may be as follows: the first storage node obtains the stored M and N, and if [M+N] is less than the first amount, obtains N based on the first amount, subtracts N from the first amount to obtain M, and if [M+N] is greater than or equal to the first amount, performs step 102 based on the stored M and N. Alternatively, the first storage node compares the first amount with a second amount. The second amount is the last obtained amount of hard disk modules in a normal state included in the storage system. If the first amount is different from the second amount, the first storage node obtains N based on the first amount, and subtracts N from the first amount to obtain M. If the first amount is equal to the second amount, the first storage node obtains the last obtained stored M and N.

[0091] Optionally, if the first amount is different from the second amount, the first storage node may update the stored second amount to the first amount and update the stored values ​​of M and N to the values ​​of M and N obtained at this stage, respectively.

[0092] Optionally, the first storage node obtaining N based on the first amount may be as follows:

[0093] If the first amount is less than the limit amount and N is greater than X, the first storage node sets N=NX, where X is an integer greater than 0. If the first amount is greater than or equal to the limit amount and N is less than the initial value, the first storage node sets N equal to the initial value. If the first amount is greater than or equal to the limit amount and N is equal to the initial value, the first storage node retrieves the stored N.

[0094] The initial value may be a preset value, for example, the initial value may be a value such as 2, 3, 4, or 5.

[0095] In this embodiment of the present application, storage is performed at the granularity of the hard disk module in the storage system. Specifically, data is divided into M data units, these data units are calculated to obtain the corresponding N check units, and [M+N] hard disk modules are selected to store the corresponding data units and the corresponding check units. This makes it possible to fully utilize the storage resources in the storage system, as the amount of hard disk modules is greater than the amount of storage nodes, compared with the conventional technology in which storage is performed at the granularity of the storage node. In addition, each storage node corresponds to multiple hard disk modules, so that the computing resources of the storage node can be fully utilized, and the computing power of the CPU of the storage node is fully utilized. This reduces the waste of computing resources.

[0096] In this embodiment of the present invention, storage resources are managed at the granularity of hard disk modules instead of the granularity of storage nodes. In one implementation example, an interface module of a hard disk module creates a storage resource process, and a storage node identifies the storage resource granularity that can be used based on the storage resource process. The storage resource process includes a module identifier of a hard disk module.

[0097] Please refer to FIG. 7. An embodiment of the present application provides a data storage method in a storage system. The storage system may be the storage system shown in FIG. 1 to FIG. 5. In the method, a client divides data to be stored into M data units, generates N check units for the M data units, sends the K units (the K units include M data units and N check units) to K hard disk modules in the storage system, and stores the K units in the K hard disk modules, i.e., each of the K hard disk modules stores one of the K units, where M and N are both positive integers. The method includes the following steps:

[0098] Step 201: A client divides data to be stored into M data units, and generates N check units for the M data units.

[0099] Step 202: A client sends K units to K hard disk modules in a storage system, where the K units include M data units and N check units.

[0100] In this embodiment of the present invention, the client may determine K hard disk modules to store the K units based on the correspondence between the partitions to which the K units belong and the hard disk modules. In one implementation example, the correspondence between the partitions and the hard disk modules includes information about the primary storage node. The first storage node is also used here as an example. For the correspondence between the partitions and the hard disk modules, please refer to the above description. Details will not be described again here. The client sending the K units to the K hard disk modules in the storage system specifically includes the client sending the K units to the first storage node. After determining the K hard disk modules to store the K units, the first storage node sends a corresponding storage request to a storage node to which a hard disk module other than the local hard disk module in the K hard disk modules belongs. Specifically, the first storage node sends a first storage command to the second storage node, and the first storage command includes K2 units. A third storage node corresponds to K3 third hard disk modules. The first storage node sends a second storage command to the third storage node. K1, K2, and K3 are all positive integers, and K1+K2+K3=K.

[0101] In this embodiment of the present invention, the client may determine K hard disk modules to store the K units based on a correspondence between the partitions to which the K units belong and the hard disk modules. In one implementation example, the correspondence between the partitions to which the K units belong and the hard disk modules further includes information about the storage nodes to which the hard disk modules belong. For example, the K hard disk modules include K1 hard disk modules of a first storage node, K2 hard disk modules of a second storage node, and K3 hard disk modules of a third storage node. The client sends the K1 units stored in the K1 hard disk modules to the first storage node, sends the K2 units stored in the K2 hard disk modules to the second storage node, and sends the K3 units stored in the K3 hard disk modules to the third storage node.

[0102] In this embodiment of the present invention, the storage nodes to which K hard disk modules belonging to the same partition belong are storage nodes in a mutual backup relationship or primary / secondary relationship.

[0103] In this embodiment of the present invention, storage resources are managed at the granularity of hard disk modules instead of the granularity of storage nodes. In one implementation example, an interface module of a hard disk module creates a storage resource process, and a client identifies the storage resource granularity that can be used based on the storage resource process. The storage resource process includes a module identifier of the hard disk module. Moreover, the storage resource process further includes an identifier of the storage node to which the hard disk module belongs.

[0104] An embodiment of the present application provides a data reading method in a storage system. The storage system may be the storage system shown in Fig. 1 to Fig. 5. In this method, a storage node in the storage system receives a read request sent by a client, where the read request includes a data identifier of data to be read. The storage node obtains the data to be read based on the data identifier, and sends the data to be read to the client.

[0105] In one implementation example, the first storage node may determine K hard disk modules storing the K units based on the correspondence between the partition to which the K units belong and the hard disk module. Furthermore, the hard disk module recorded in a certain partition further includes the storage node to which the hard disk module belongs. The partition records that one storage node is used as a primary storage node. In this embodiment of the present invention, an example is used in which the first storage node is the primary storage node. The client determines the corresponding partition based on the data identifier of the data to be read, and determines to send a read request to the first storage node based on information about the primary storage node in the partition. The read request includes the data identifier of the data to be read. The first storage node determines the hard disk module in which the data to be read is located based on the correspondence between the partition to which the K units belong, the hard disk module, and the data identifier of the data to be read, and reads the data to be read from the determined hard disk module. Referring to the embodiment shown in Figure 6, when the first storage node fails, the second storage node or the third storage node is configured to replace the first storage node and execute the above-mentioned read request, since the second storage node and the third storage node have a mutual backup relationship or a primary / secondary relationship with the first storage node. Moreover, the storage node that replaces the first storage node can directly access the K1 hard disk modules.In addition, when the hard disk module storing the data to be read is broken, or when the hard disk in the hard disk module where the data to be read is located is broken, or when an error occurs in the data to be read stored in the hard disk module and the data to be read is lost, and the data to be read cannot be restored locally in the hard disk module, in this embodiment of the present invention, the data unit where the data to be read is located can be restored using a unit stored in another hard disk module among the K hard disk modules, that is, a function is used that can restore N data units among the M data units using the check protection relationship formed between the M data units and the N check units.

[0106] In another implementation example, the client determines a corresponding partition based on the data identifier of the data to be read, and determines a hard disk module in the partition that corresponds to the data identifier based on the partition. Based on the correspondence between the hard disk module and the storage node in the partition, i.e., based on the storage node to which the hard disk module belongs, the client determines the storage node to which the hard disk module in which the data to be read is located belongs, and sends a read request to the storage node. After receiving the read request, the storage node reads the data to be read from the hard disk module based on the data identifier of the data to be read carried in the read request. That is, the storage node communicates with the interface module of the hard disk module. For data restoration based on M data units and N check units, please refer to the description in the above embodiment. Details will not be described again here.

[0107] In another storage architecture of the present invention, a client can communicate with an interface module of a hard disk module, that is, the client can directly access a hard disk module without going through a storage node. Specifically, the client directly sends K units to or reads data from the corresponding K hard disk modules according to the correspondence between partitions and hard disk modules.

[0108] Please refer to Fig. 8. An embodiment of the present application provides a data storage device 300 in a storage system. The device 300 may be used in the storage node or client in any one of the above-mentioned embodiments, and includes: a generating unit 301 configured to generate N check units for M data units, where M and N are both positive integers, and M+N=K; and a storage unit 302 configured to store the K units in K hard disk modules in the storage system, where the K units include M data units and N check units, and each of the K hard disk modules stores one of the K units, and each hard disk module includes an interface module and a hard disk, and the interface module communicates with the hard disk.

[0109] Optionally, for detailed operations of the storage unit 302 storing K units in K hard disk modules, please refer to the relevant content of step 103 in the embodiment shown in FIG. 6 or step 202 in the embodiment shown in FIG. 7.

[0110] Optionally, the storage system includes a plurality of storage nodes, each of which communicates with an interface module of the K hard disk modules.

[0111] Optionally, the apparatus 300 is a client of the storage system. The apparatus 300 includes a sending unit 303.

[0112] The sending unit 303 is configured to send the K units to a target storage node among the multiple storage nodes, so that the target storage node stores the K units in the K hard disk modules in the storage system.

[0113] Optionally, for detailed operations of the target storage node storing the K units in the K hard disk modules in the storage system, please refer to the relevant content of step 202 in the embodiment shown in FIG.

[0114] Optionally, the device 300 is one of a plurality of storage nodes.

[0115] Optionally, the interface module is a host bus adapter, a redundant independent disk array, an expander card, or a network interface card.

[0116] Optionally, the storage system includes a second device, and there is a mutual backup or primary / secondary relationship between the second device and the apparatus.

[0117] In this embodiment of the present application, the generating unit generates N check units for M data units. The storage unit stores the K units in K hard disk modules in the storage system. In this way, the storage unit performs storage at the granularity of the hard disk modules in the storage system, i.e., uses K hard disk modules to store the corresponding K units. This makes it possible to fully utilize the storage resources in the storage system, since the amount of hard disk modules is greater than the amount of storage nodes, compared with the conventional technology in which storage is performed at the granularity of the storage nodes.

[0118] Please refer to Fig. 9. An embodiment of the present application provides a data reading device 400 in a storage system. The device 400 may be used in the storage node or the client in any one of the above-mentioned embodiments, and the device includes: a receiving unit 401 configured to receive a read request, the read request including a data identifier of data to be read; and a processing unit 402 configured to determine, according to the data identifier, a hard disk module that stores the data to be read from K hard disk modules in the storage system.

[0119] The processing unit 402 is further configured to read the data to be read from the hard disk module storing the data to be read, where the data to be read belongs to data in the M data units. The storage system further includes N check units of the M data units, where M and N are both positive integers, and M+N=K. Each of the K hard disk modules stores one of the K units. The K units include the M data units and the N check units. Each hard disk module includes an interface module and a hard disk, where the interface module communicates with the hard disk.

[0120] Optionally, the storage system includes a plurality of storage nodes, each of which communicates with an interface module of the K hard disk modules.

[0121] Optionally, the apparatus 400 is a client of the storage system. The apparatus 400 further includes a sending unit 403.

[0122] The sending unit 403 is configured to send a data read request to a target storage node among the multiple storage nodes, where the data read request carries a data identifier.

[0123] The processing unit 402 is configured to read the target data from the hard disk module storing the target data based on the data identifier.

[0124] Optionally, the device 400 is one of a plurality of storage nodes.

[0125] Optionally, the interface module is a host bus adapter, a redundant independent disk array, an expander card, or a network interface card.

[0126] Optionally, the storage system includes a second device, and there is a mutual backup or primary / secondary relationship between the second device and the apparatus 400 .

[0127] In this embodiment of the present application, the receiving unit receives a read request, and the read request includes a data identifier of the data to be read. The processing unit reads the data to be read from a hard disk module storing the data to be read, and the data to be read belongs to data in the M data units. The storage system further includes N check units of the M data units, where M+N=K. Each of the K hard disk modules in the storage system stores one of the K units. Since each of the K hard disk modules stores one of the K units, storage is performed at the granularity of the hard disk module in the storage system. This makes it possible to fully utilize the storage resources in the storage system, since the amount of hard disk modules is greater than the amount of storage nodes, compared with the conventional technology in which storage is performed at the granularity of the storage node.

[0128] Please refer to Fig. 10. An embodiment of the present application provides a data storage device 500 in a storage system. The device 500 may be a client or a storage node in any one of the above-mentioned embodiments. The device 500 includes at least one processor 501, a bus system 502, and at least one communication interface 503.

[0129] Optionally, the storage system includes multiple hard disk modules, and the at least one processor 501 further communicates with the multiple hard disk modules in the storage system through at least one communication interface 503 .

[0130] In a particular implementation, the processor 501 may be a central processing unit (CPU), a Field Programmable Gate Array (FPGA), an Application-specific integrated circuit (ASIC), or other hardware, or the FPGA or other hardware and the CPU together function as the processor 501.

[0131] The device 500 is a device of a hardware structure, and may be configured to implement the functional modules in the device 300 shown in FIG.

[0132] Optionally, when the processor 501 is implemented by one or more CPUs, the generating unit 301 and the storage unit 302 in the apparatus 300 shown in Fig. 8 may be realized by invoking codes in a memory by the one or more CPUs. The sending unit 303 in the apparatus 300 shown in Fig. 8 may be realized by a communication interface 503.

[0133] The communication interface 503 is configured to interact with another device or a communication network.

[0134] The memory may be a read-only memory (ROM) or another type of static storage device capable of storing static information and instructions, a random access memory (RAM) or another type of dynamic storage device capable of storing information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or another compact disc storage device, an optical disc storage device (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a disc storage medium or another disc storage device, or any other medium that can be used to carry or store the expected program code in the form of instructions or data structures and that can be accessed by a computer. However, the memory is not limited thereto. The memory may exist independently and be connected to the processor through a bus. Alternatively, the memory may be integrated with the processor.

[0135] The memory is configured to store application program code for executing the solution of the present application, and the processor 501 controls the execution. The processor 501 is configured to execute the application program code stored in the memory to realize each function of the method in the present patent.

[0136] Please refer to Fig. 11. An embodiment of the present application provides a data reading device 600 in a storage system. The device 600 can be a storage node or a client in any one of the above-mentioned embodiments. The device 600 includes at least one processor 601, a bus system 602 and at least one communication interface 603.

[0137] In a particular implementation, the processor 601 may be a central processing unit (CPU), a Field Programmable Gate Array (FPGA), an Application-specific integrated circuit (ASIC), or other hardware, or the FPGA or other hardware and the CPU together function as the processor 601.

[0138] The apparatus 600 is a hardware structure apparatus and may be configured to implement the functional modules in the apparatus 400 shown in Fig. 9. Optionally, when the processor 601 is implemented by one or more CPUs, the processing unit 402 in the apparatus 400 shown in Fig. 9 may be realized by the one or more CPUs calling codes in a memory. The receiving unit 401 and the transmitting unit 403 in the apparatus 400 shown in Fig. 9 may be realized by a communication interface 603.

[0139] The bus system 602 may include a path for transmitting information between the aforementioned components.

[0140] The communication interface 603 is configured to interact with another device or a communication network.

[0141] The memory may be a read-only memory (ROM) or another type of static storage device capable of storing static information and instructions, a random access memory (RAM) or another type of dynamic storage device capable of storing information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or another compact disc storage device, an optical disc storage device (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a disc storage medium or another disc storage device, or any other medium that can be used to carry or store the expected program code in the form of instructions or data structures and that can be accessed by a computer. However, the memory is not limited thereto. The memory may exist independently and be connected to the processor through a bus. Alternatively, the memory may be integrated with the processor.

[0142] The memory is configured to store application program code for executing the solution of the present application, and the processor 601 controls the execution. The processor 601 is configured to execute the application program code stored in the memory to realize each function of the method in the present patent.

[0143] In this embodiment of the present invention, M in M ​​data units is 1, and N check units are copies of data units. In other words, data units are protected based on multiple copies, and data units are restored based on multiple copies. For specific implementation examples, please refer to the description in the above embodiment. Details will not be described again here.

[0144] In another embodiment of the present invention, the storage system is a storage array and the storage node is an array controller for the storage array.

[0145] Those skilled in the art will understand that all or part of the steps of the embodiment may be realized by hardware or by a program instructing related hardware. The program may be stored in a computer-readable storage medium. The storage medium may include a read-only memory, a magnetic disk, or an optical disk. [Other possible items] (Item 1) 1. A method for storing data in a storage system, the method comprising: a first device generating N check units for the M data units, where M and N are both positive integers and M+N=K; storing the K units in K hard disk modules in the storage system by the first device, the K units having the M data units and the N check units, each of the K hard disk modules storing one of the K units, each hard disk module having an interface module and a hard disk, the interface module communicating with the hard disk; A method for providing the above. (Item 2) 2. The method according to item 1, wherein the storage system comprises a plurality of storage nodes, each of which communicates with an interface module of the K hard disk modules. (Item 3) The first device is a client of the storage system, and the step of storing the K units in K hard disk modules in the storage system by the first device is specifically, the client transmitting the K units to a target storage node of the plurality of storage nodes; the target storage node storing the K units in the K hard disk modules in the storage system; 3. The method according to item 2, comprising the steps of: (Item 4) 3. The method of claim 2, wherein the first device is one of the plurality of storage nodes. (Item 5) 5. The method of any one of items 1 to 4, wherein the interface module is a host bus adapter, a redundant independent disk array, an expander card, or a network interface card. (Item 6) 2. The method according to item 1, wherein the storage system comprises a second device, and there is a mutual backup relationship or a primary / secondary relationship between the second device and the first device. (Item 7) A data reading method in a storage system, the method comprising: receiving a read request at a first device, the read request including a data identifier for data to be read; The first device determines, from among K hard disk modules in the storage system, a hard disk module that stores the data to be read based on the data identifier; a step of reading the data to be read from the hard disk module storing the data to be read by the first device, the data to be read belonging to data in M ​​data units, the storage system further including N check units of the M data units, M and N are both positive integers, M+N=K, each of the K hard disk modules stores one of the K units, the K units include the M data units and the N check units, each hard disk module has an interface module and a hard disk, and the interface module communicates with the hard disk; A method for providing the above. (Item 8) 8. The method according to item 7, wherein the storage system comprises a plurality of storage nodes, each of which communicates with an interface module of the K hard disk modules. (Item 9) The first device is a client of the storage system, and the step of the first device reading the read target data from the hard disk module storing the read target data specifically includes: sending, by the client, the data read request to a target storage node within the plurality of storage nodes, the data read request carrying the data identifier; the target storage node reading the read target data from the hard disk module storing the read target data based on the data identifier; 8. The method according to item 7, comprising the steps of: (Item 10) 9. The method of claim 8, wherein the first device is one of the plurality of storage nodes. (Item 11) 11. The method of any one of items 7 to 10, wherein the interface module is a host bus adapter, a redundant independent disk array, an expander card, or a network interface card. (Item 12) 8. The method of claim 7, wherein the storage system includes a second device, and the second device and the first device have a mutual backup relationship or a primary / secondary relationship. (Item 13) A data storage device in a storage system, the device comprising: a generating unit configured to generate N check units for M data units, where M and N are both positive integers and M+N=K; a storage unit configured to store the K units in K hard disk modules in the storage system, the K units including M data units and N check units, each of the K hard disk modules storing one of the K units, each hard disk module having an interface module and a hard disk, the interface module communicating with the hard disk; An apparatus comprising: (Item 14) Item 14. The apparatus of item 13, wherein the storage system comprises a plurality of storage nodes, each of which communicates with an interface module of one of the K hard disk modules. (Item 15) The device is a client of the storage system, the device comprising a sending unit; 15. The apparatus of claim 14, wherein the sending unit is configured to send the K units to a target storage node within the plurality of storage nodes, whereby the target storage node stores the K units in the K hard disk modules within the storage system. (Item 16) Item 15. The apparatus of item 14, wherein the apparatus is one of the plurality of storage nodes. (Item 17) 17. The apparatus of any one of items 13 to 16, wherein the interface module is a host bus adapter, a redundant independent disk array, an expander card, or a network interface card. (Item 18) Item 14. The apparatus of item 13, wherein the storage system includes a second device, and there is a mutual backup relationship or a primary / secondary relationship between the second device and the apparatus. (Item 19) A data reading device in a storage system, comprising: a receiving unit configured to receive a read request, the read request including a data identifier of data to be read; a processing unit configured to determine a hard disk module for storing the read target data based on the data identifier from among K hard disk modules in the storage system; Equipped with The apparatus, wherein the processing unit is further configured to read the data to be read from the hard disk module storing the data to be read, the data to be read belonging to data within M data units, the storage system further including N check units of the M data units, M and N are both positive integers, and M+N=K, each of the K hard disk modules stores one of the K units, the K units including the M data units and the N check units, each hard disk module having an interface module and a hard disk, and the interface module interacts with the hard disk. (Item 20) 20. The apparatus of item 19, wherein the storage system comprises a plurality of storage nodes, each of which communicates with an interface module of one of the K hard disk modules. (Item 21) The device is a client of the storage system, and the device further comprises a sending unit; The sending unit is configured to send the data read request to a target storage node within the plurality of storage nodes, the data read request carrying the data identifier; 20. The apparatus according to claim 19, wherein the processing unit is configured to read the data to be read from the hard disk module storing the data to be read based on the data identifier. (Item 22) 21. The apparatus of claim 20, wherein the apparatus is one of the plurality of storage nodes. (Item 23) 23. The apparatus of any one of items 19 to 22, wherein the interface module is a host bus adapter, a redundant independent disk array, an expander card, or a network interface card. (Item 24) 20. The apparatus of claim 19, wherein the storage system includes a second device, and there is a mutual backup relationship or a primary / secondary relationship between the second device and the apparatus. (Item 25) A storage device in a storage system, the storage device comprising a processor and a communication interface, the processor interacting with the communication interface, the processor: generating N check units for M data units, where M and N are both positive integers and M+N=K; storing the K units in K hard disk modules within the storage system, the K units including M data units and N check units, each of the K hard disk modules storing one of the K units, each hard disk module having an interface module and a hard disk, the interface module communicating with the hard disk; 4. A storage device configured to: (Item 26) 26. The storage device of item 25, wherein the storage system comprises a plurality of storage nodes, each of which communicates with an interface module of the K hard disk modules. (Item 27) 27. The storage device of item 26, wherein the storage device is a client of the storage system and the communication interface is configured to send the K units to a target storage node within the plurality of storage nodes, whereby the target storage node stores the K units in the K hard disk modules within the storage system. (Item 28) A storage device in a storage system, the storage device comprising a processor and a communication interface, the processor interacting with the communication interface; The communication interface is configured to receive a read request, the read request including a data identifier for data to be read; The processor, determining a hard disk module for storing the read target data from among K hard disk modules in the storage system based on the data identifier; reading the data to be read from the hard disk module storing the data to be read, the data to be read belonging to data in M ​​data units, the storage system further including N check units of the M data units, M and N are both positive integers, M+N=K, each of the K hard disk modules stores one of the K units, the K units including the M data units and the N check units, each hard disk module having an interface module and a hard disk, the interface module interacting with the hard disk; 4. A storage device configured to: (Item 29) 30. The storage device of item 28, wherein the storage system comprises a plurality of storage nodes, each of which communicates with an interface module of the K hard disk modules. (Item 30) the storage device is a client of the storage system, the communication interface is further configured to send the data read request to a target storage node within the plurality of storage nodes, the data read request carrying the data identifier; 30. The storage device of item 29, wherein the processor is further configured to read the data to be read from the hard disk module storing the data to be read based on the data identifier. (Item 31) A storage system comprising a storage device and K hard disk modules, The storage device comprises: generating N check units for M data units, where M and N are both positive integers and M+N=K; storing the K units in K hard disk modules, the K units including M data units and N check units, each of the K hard disk modules storing one of the K units, each hard disk module having an interface module and a hard disk, the interface module communicating with the hard disk; A storage system configured to: (Item 32) Item 32. The storage system of item 31, wherein the storage system further comprises a plurality of storage nodes, each of which communicates with an interface module of the K hard disk modules. (Item 33) Specifically, the first device is a client of the storage system, and the storage device is configured to store the K units on K hard disk modules in the storage system. the client is configured to send the K units to a target storage node within the plurality of storage nodes; the target storage node is configured to store the K units on the K hard disk modules in the storage system; Item 33. The storage system of item 32, comprising: (Item 34) A storage system comprising a storage device and K hard disk modules, The storage device comprises: receiving a read request, the read request including a data identifier of data to be read; determining a hard disk module for storing the data to be read from the K hard disk modules based on the data identifier; reading the data to be read from the hard disk module storing the data to be read, the data to be read belonging to data in M ​​data units, the storage system further comprising: N check units of the M data units, M and N are both positive integers, M+N=K, each of the K hard disk modules stores one of the K units, the K units include the M data units and the N check units, each hard disk module has an interface module and a hard disk, the interface module communicates with the hard disk; A storage system configured to: (Item 35) 7. A computer program product comprising program code, the computer program product enabling the computer to perform the method according to any one of items 1 to 6 when the computer executes the program code. (Item 36) 13. A computer program product, the computer program product comprising program code, the computer program product being capable of carrying out the method according to any one of claims 7 to 12 when the computer executes the program code.

Claims

1. A method for storing data in a storage system, comprising: a first device generating N check units for M data units, where M and N are both positive integers and M+N=K; storing the K units in K hard disk modules in the storage system by the first device, the K units having the M data units and the N check units, each of the K hard disk modules storing one of the K units, each hard disk module having an interface module and a hard disk, the interface module communicating with the hard disk; Equipped with The K hard disk modules communicate with a plurality of storage nodes, at least two of the K hard disk modules communicate with the same one of the plurality of storage nodes, and the amount of the hard disk modules is greater than the amount of the storage nodes; The plurality of storage nodes includes a first storage node and a second storage node, and the K hard disk modules include K1 first hard disk modules corresponding to the first storage node and K2 second hard disk modules corresponding to the second storage node, where K1 and K2 are positive integers; (i) the first device is the first storage node, and the step of the first device generating N check units for M data units includes a step of the first storage node dividing data to be stored received from a client of the storage system into the M data units, and a step of generating the N check units for the M data units; or (ii) the first device is a client of the storage system, and the step of the first device storing the K units in K hard disk modules in the storage system includes a step of the client transmitting the K units to the first storage node, The step of storing the K units in K hard disk modules in the storage system by the first device comprises: the first storage node storing K1 units of the K units in the K1 first hard disk modules; the first storage node sending a first storage command including K2 of the K units to the second storage node; the second storage node receiving the first storage command; the second storage node storing the K2 units in the K2 second hard disk modules; A method comprising:

2. 2. The method of claim 1, wherein said storage system comprises a plurality of storage nodes, each storage node communicating with an interface module of said K hard disk modules.

3. 3. The method of claim 1, wherein the storage system comprises a second device, and there is a mutual backup relationship or a primary / secondary relationship between the second device and the first device.

4. K1 is equal to or greater than 2, K2 is equal to or greater than 1, The first storage node is connected to the K1 first hard disk modules and the K2 second hard disk modules through a first bus; 4. The method according to claim 1, wherein the second storage node is connected to the K1 first hard disk modules and the K2 second hard disk modules through a second bus different from the first bus.

5. A data storage device in a storage system, comprising: a generating unit configured to generate N check units for M data units, where M and N are both positive integers and M+N=K; a storage unit configured to store the K units in K hard disk modules in the storage system, the K units including M data units and N check units, each of the K hard disk modules storing one of the K units, each hard disk module having an interface module and a hard disk, the interface module communicating with the hard disk; Equipped with The K hard disk modules communicate with a plurality of storage nodes, at least two of the K hard disk modules communicate with the same one of the plurality of storage nodes, and the amount of the hard disk modules is greater than the amount of the storage nodes; The plurality of storage nodes includes a first storage node and a second storage node, and the K hard disk modules include K1 first hard disk modules corresponding to the first storage node and K2 second hard disk modules corresponding to the second storage node, where K1 and K2 are positive integers; The data storage device is the first storage node, and the generating unit is configured to divide data to be stored received from a client of the storage system into the M data units and generate the N check units for the M data units; the storage unit stores K1 units of the K units in the K1 first hard disk modules, and sends a first storage command including K2 units of the K units to the second storage node so that the second storage node stores the K2 units in the K2 second hard disk modules; Data storage device.

6. 6. The data storage device according to claim 5, wherein said storage system comprises a plurality of said storage nodes, each of said storage nodes communicating with at least one interface module of said K hard disk modules.

7. 7. The data storage device according to claim 5, wherein the interface module is a host bus adapter, a redundant independent disk array, an expander card, or a network interface card.

8. The data storage device according to claim 5 , wherein the storage system includes a second device, and there is a mutual backup relationship or a primary / secondary relationship between the second device and the data storage device.

9. K1 is equal to or greater than 2, K2 is equal to or greater than 1, The first storage node is connected to the K1 first hard disk modules and the K2 second hard disk modules through a first bus; 9. The data storage device of claim 5, 6, or 8, wherein the second storage node is connected to the K1 first hard disk modules and the K2 second hard disk modules through a second bus different from the first bus.

10. A storage system comprising a storage device and K hard disk modules, The storage device comprises: generating N check units for M data units, where M and N are both positive integers and M+N=K; storing the K units on K hard disk modules, the K units including M data units and N check units, each of the K hard disk modules storing one of the K units, each hard disk module having an interface module and a hard disk, the interface module communicating with the hard disk; The device is configured to: The K hard disk modules communicate with a plurality of storage nodes, at least two of the K hard disk modules communicate with the same one of the plurality of storage nodes, and the amount of the hard disk modules is greater than the amount of the storage nodes; The plurality of storage nodes includes a first storage node and a second storage node, and the K hard disk modules include K1 first hard disk modules corresponding to the first storage node and K2 second hard disk modules corresponding to the second storage node, where K1 and K2 are positive integers; (i) the storage device is the first storage node, and the storage device is configured to divide data to be stored received from a client of the storage system into the M data units and generate the N check units for the M data units; or (ii) the storage device is a client of the storage system, and storing the K units in the K hard disk modules includes the client transmitting the K units to the first storage node; Storing the K units in K hard disk modules The first storage node stores K1 units of the K units in the K1 first hard disk modules; the first storage node sending a first storage command including K2 of the K units to the second storage node; the second storage node receiving the first storage command; the second storage node stores the K2 units in the K2 second hard disk modules; A storage system comprising:

11. 11. The storage system according to claim 10, further comprising the plurality of storage nodes, each of the storage nodes communicating with an interface module of the K hard disk modules.

12. K1 is 2 or more, K2 is 1 or more, The first storage node is connected to the K1 first hard disk modules and the K2 second hard disk modules through a first bus; 12. The storage system according to claim 10, wherein the second storage node is connected to the K1 first hard disk modules and the K2 second hard disk modules via a second bus different from the first bus.

13. A computer program product for causing a computer to carry out the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Storage device, storage controller, and storage control program

    JP2017228078A

  • Data path monitoring in distributed storage network

    JP2018181325A

  • Storage device, connection controller and connection control program

    JP2019036136A

  • Data storage method and apparatus

    US20190129649A1