Cluster storage system for expanding hard disk expansion units
By building a tree structure between hard disk expansion units and hiding the non-directly connected hard disk expansion units, the problem of host management complexity under the serial connection architecture of multiple hard disk expansion units is solved, and more efficient hard disk connection management is achieved.
Patent Information
- Application Number
- CN201910934232.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-29
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2039-09-29
AI Technical Summary
In an architecture in which multiple hard disk expansion units are connected in series, it is highly complex for the host to manage the hard disk expansion units and hard disks, and existing technology requires modifying the management structure to increase the number of hard disk connections.
By building a tree structure between hard disk expansion units, the host only exchanges type requests with directly connected hard disk expansion units, and hides the existence of non-directly connected hard disk expansion units by instructing them to be non-hard disk expansion interfaces, preventing the host from identifying the non-directly connected hard disk expansion units. Connected hard drive expansion unit.
It reduces the complexity of the host's management of hard disk expansion units and hard disks, avoids modifications to the original management structure, and increases the limit on the number of hard disk connections, which is only limited by the number of directly connected hard disk expansion units.
Smart Images

Figure CN112578994B
Abstract
Description
[Technical field]
[0001] The present invention relates to a cluster storage system, and in particular to a cluster storage system for expanding a hard disk expansion unit. [Background technology]
[0002] The existing cluster storage system includes a host and at least one storage device connected to the host. The host is installed with a Linux operating system to operate the host itself and the storage device. Each storage device is, for example, a just a bunch of disks (JBOD) server, and includes at least one hard disk expansion unit (expander), and a plurality of hard disks electrically connected to the at least one hard disk expansion unit and each having a unique address.
[0003] Existing simple disk binding disk servers all use hard disk expansion units to manage hard disks. The number of hard disks that can be connected to each hard disk expansion unit is limited by the number of physical connection ports (PHY) it has, which in turn limits the number of hard disks that can be installed in the simple disk binding disk server. In order to connect more hard disks to the simple disk binding disk server, the number of hard disks connected to the simple disk binding disk server can be increased by connecting multiple hard disk expansion units in series. However, in the architecture of connecting multiple hard disk expansion units in series, not only will the complexity of the host managing the hard disk expansion units and hard disks increase, but the original management architecture also needs to be modified, so it is necessary to propose a solution. [Summary of the invention]
[0004] The technical problem to be solved by the present invention is to provide a cluster storage system for expanding hard disk expansion units, which reduces the complexity of a host managing hard disk expansion units and hard disks under a structure in which multiple hard disk expansion units are connected in series.
[0005] To solve the above technical problem, a cluster storage system for expanding a hard disk expansion unit includes a host and a plurality of hard disk expansion units.
[0006] The hard disk expansion units are connected to the host in a tree structure with the host as a root node. For each hard disk expansion unit, after receiving a type request from a parent node and related to a device type, the hard disk expansion unit sends a device type reply indicating that it is a hard disk expansion interface to the parent node, and forwards the type request to at least one corresponding child node. After the hard disk expansion unit receives a type request from a grandparent node and related to its own device type, the hard disk expansion unit sends a device type reply indicating that it is not a hard disk expansion interface to the grandparent node, so that the host and each hard disk expansion unit can only identify the hard disk expansion unit directly connected to it, and hide the hard disk expansion unit that is not directly connected to it.
[0007] Another technical problem to be solved by the present invention is to provide a cluster storage system for expanding hard disk expansion units, which reduces the complexity of a host managing hard disk expansion units and hard disks under a structure where multiple hard disk expansion units are connected in series.
[0008] Therefore, the cluster storage system for expanding the hard disk expansion unit of the present invention includes a host and a plurality of hard disk expansion units.
[0009] The hard disk expansion units and the host form a tree structure connection with the host as a root node. For a master hard disk expansion unit directly connected to the host, the master hard disk expansion unit is used to, after receiving a type request related to a device type from the host, send a device type reply indicating that it is a hard disk expansion interface to the host, and forward the type request to at least one child node corresponding to it. For each other hard disk expansion unit not directly connected to the host, the other hard disk expansion unit is used to, after receiving a type request related to a device type, determine whether the type request originates from the root node. When the other hard disk expansion unit determines that the type of request is not originated from the root node, the other hard disk expansion unit transmits a type reply indicating that it is a device type of a hard disk expansion interface to the node that originated the type of request, and forwards the type of request to at least one corresponding child node. When the other hard disk expansion unit determines that the type of request is originated from the root node, the other hard disk expansion unit transmits a type reply indicating that it is not a device type of a hard disk expansion interface to the root node, so that the host can only identify the main hard disk expansion unit directly connected to it, and hide other hard disk expansion units that are not directly connected to it.
[0010] Compared to the prior art, the present invention is a cluster storage system for expanding hard disk expansion units. For hard disk expansion units that are not directly connected to the host, the present invention sends a device type response to the host indicating that it is not a hard disk expansion interface, so that the host can only identify the hard disk expansion units directly connected to it and hide the hard disk expansion units that are not directly connected to it, thereby reducing the complexity of the host managing the hard disk expansion units and hard disks without modifying the original management architecture.
Brief Description of the Drawings
[0011] Figure 1 FIG. 4 is a block diagram illustrating a first embodiment of a cluster storage system for expanding a hard disk expansion unit according to the present invention. [Specific implementation method]
[0012] See also Figure 1 A first embodiment of the cluster storage system for expanding hard disk expansion units of the present invention comprises a host 1, a plurality of hard disk expansion units 2a-2e and a plurality of hard disks 3a-3i. The hard disk expansion units 2a-2e and the host 1 form a tree structure connection with the host 1 as the root node (see Figure 1 As shown in the dotted lines, each hard disk 3a / 3b / 3c / 3d / 3e / 3f / 3g / 3h / 3i is electrically connected to one of the hard disk expansion units 2a-2e.
[0013] For each hard disk expansion unit 2a / 2b / 2c / 2d / 2e, the hard disk expansion unit 2a / 2b / 2c / 2d / 2e is used to send a device type reply indicating that it is a hard disk expansion interface to the parent node after receiving a type request related to the device type from a parent node directly connected to the hard disk expansion unit 2a / 2b / 2c / 2d / 2e, wherein the device type reply also includes a unique ID of the corresponding hard disk expansion unit. The hard disk expansion unit 2a / 2b / 2c / 2d / 2e receives a type request related to its own device type from a grandparent node indirectly connected to the hard disk expansion unit 2a / 2b / 2c / 2d / 2e, and the hard disk expansion unit 2a / 2b / 2c / 2d / 2e sends a device type reply indicating that it is not a hard disk expansion interface to the grandparent node of the hard disk expansion unit 2a / 2b / 2c / 2d / 2e. It is worth noting that each type request includes a unique address of the node that originates the type request, such as a SAS Address, so that each hard disk expansion unit 2a / 2b / 2c / 2d / 2e can identify the origin of the corresponding type request according to the unique address after receiving the type request. In the present embodiment, the hard disk expansion unit 2a / 2b / 2c / 2d / 2e indicates that it is not a hard disk expansion interface by sending a device type reply indicating that it has no device (no device), and the device type reply does not include the unique address of the corresponding hard disk expansion unit, but is not limited to this. In addition, each hard disk expansion unit 2a / 2b / 2c / 2d / 2e stores the unique address of the parent node directly connected to the hard disk expansion unit 2a / 2b / 2c / 2d / 2e, thereby determining whether the received type request comes from the parent node directly connected to it.
[0014] It is worth mentioning that when the host 1 and each hard disk expansion unit 2a / 2b / 2c / 2d / 2e are scanning the devices directly connected thereto (i.e., their child nodes), they will decide whether to continue to scan the devices indirectly connected thereto (i.e., their grandchild nodes) according to the device type of the devices directly connected thereto. When the host 1 and each hard disk expansion unit 2a / 2b / 2c / 2d / 2e identify the device type of their child nodes as hard disk expansion interfaces, the host 1 and each hard disk expansion unit 2a / 2b / 2c / 2d / 2e will continue to scan the host 1 / the hard disk expansion unit 2a / 2b / 2c / 2d / 2e (that is, continue to forward the type request to the grandchild node of the host 1 / the hard disk expansion unit 2a / 2b / 2c / 2d / 2e through the child node of the host 1 / the hard disk expansion unit 2a / 2b / 2c / 2d / 2e). When the host 1 and each hard disk expansion unit 2a / 2b / 2c / 2d / 2e determine that the device type of its child node is not a hard disk expansion interface, the host 1 and each hard disk expansion unit 2a / 2b / 2c / 2d / 2e will stop scanning the device type of its grandchild node (that is, stop forwarding the type request to its grandchild node through its child node). It is worth mentioning that the direct connection does not refer to the direct connection of the physical location or circuit, but indicates the direct connection relationship between the host 1 and each node of the hard disk expansion unit 2a, 2b, 2c, 2d, 2e. There may still be electronic components such as hard disks, backplanes, resistors, etc. that are not included in the node considerations between each directly connected node.
[0015] by Figure 1Taking the tree structure shown as an example, the host 1 sends a type request to its corresponding child node (ie, the hard disk expansion unit 2a), and the hard disk expansion unit 2a sends a device type response indicating that it is a hard disk expansion interface to the host 1. Since the host 1 receives a response from its child node that the device type is a hard disk expansion interface, the host 1 continues to forward the type request to its grandchild node (i.e., the hard disk expansion units 2b and 2c) through its child node. The hard disk expansion unit 2a forwards the type request originating from the host 1 to the two child nodes corresponding to the hard disk expansion unit 2a (i.e., the hard disk expansion units 2b and 2c). After the hard disk expansion unit 2b receives a type request originating from a grandparent node of the hard disk expansion unit 2b and related to the device type of the hard disk expansion unit 2b itself, the hard disk expansion unit 2b sends a device type reply indicating that it is not a hard disk expansion interface to the grandparent node of the hard disk expansion unit 2b. Similarly, after the hard disk expansion unit 2c receives a type request originating from the grandparent node and related to the device type of the hard disk expansion unit 2c itself, the hard disk expansion unit 2c sends a device type reply indicating that it is not a hard disk expansion interface to the grandparent node of the hard disk expansion unit 2c. Since the host 1 receives the reply of the hard disk expansion unit 2c and determines that the device type of its grandchild node is not a hard disk expansion interface, the host 1 stops forwarding the type request to the child nodes under its grandchild node (i.e., the hard disk expansion units 2d and 2e) through its child nodes and grandchild nodes. Therefore, for the host 1, it will only determine the device type of the hard disk expansion unit 2a as a hard disk expansion interface, thereby achieving the purpose of hiding the hard disk expansion units 2b, 2c, 2d, and 2e. The hard disk expansion unit 2a sends a type request to its corresponding child nodes (i.e., the hard disk expansion units 2b and 2c), and the hard disk expansion unit 2b sends a device type reply indicating that it is a hard disk expansion interface to its parent node, i.e., the hard disk expansion unit 2a. Similarly, the hard disk expansion unit 2c sends a device type reply indicating that it is a hard disk expansion interface to its parent node, i.e., the hard disk expansion unit 2a.Since the hard disk expansion unit 2a receives the response from its child node and determines that the device type of its child node (that is, the hard disk expansion unit 2b) is a hard disk expansion interface, the hard disk expansion unit 2a continues to forward the type request to its grandchild nodes (that is, the hard disk expansion units 2d and 2e) through its child node. That is, the hard disk expansion unit 2b forwards the type request from the hard disk expansion unit 2a to its corresponding two child nodes, and the hard disk expansion unit 2d receives a type request from the hard disk expansion unit 2d. After the hard disk expansion unit 2d receives a type request from the grandparent node of the hard disk expansion unit 2e and related to the device type of the hard disk expansion unit 2d itself, the hard disk expansion unit 2d sends a device type reply indicating that it is not a hard disk expansion interface to the grandparent node of the hard disk expansion unit 2d. Similarly, after the hard disk expansion unit 2e receives a type request from the grandparent node of the hard disk expansion unit 2e and related to its own device type, the hard disk expansion unit 2e sends a device type reply indicating that it is not a hard disk expansion interface to its grandparent node. Since the hard disk expansion unit 2a receives the reply from its grandchild node and determines that the device type of its grandchild node is not a hard disk expansion interface, the hard disk expansion unit 2a stops forwarding the type request to other child nodes under its grandchild node through its child nodes and their grandchild nodes (in. Figure 1In the example, the hard disk expansion units 2d and 2e just happen to have no other child nodes). Since the hard disk expansion unit 2a determines that the device type of its other child node (that is, the hard disk expansion unit 2c) is a hard disk expansion interface, the hard disk expansion unit 2a continues to forward the type request to the grandchild node of the hard disk expansion unit 2a through its other child node, but since the hard disk expansion unit 2c has no other child nodes and is a leaf node, the hard disk expansion unit 2c will no longer forward the type request from the hard disk expansion unit 2a. Therefore, for the hard disk expansion unit 2a, it will only determine the hard disk expansion units 2b and 2c as hard disk expansion interfaces, thereby achieving the purpose of hiding the hard disk expansion units 2d and 2e. The hard disk expansion unit 2b sends a type request to its corresponding child node (i.e., the hard disk expansion unit 2d, 2e), and the hard disk expansion unit 2d sends a device type reply indicating that it is a hard disk expansion interface to the hard disk expansion unit 2b. Similarly, the hard disk expansion unit 2e sends a device type reply indicating that it is a hard disk expansion interface to the hard disk expansion unit 2b. Since the hard disk expansion unit 2b receives the reply from its child node and determines that the device type of its child node is a hard disk expansion interface, the hard disk expansion unit 2b continues to forward the type request to the grandchild node through its child node (that is, the hard disk expansion unit 2d), but since the hard disk expansion unit 2d has no child nodes and is a leaf node, the hard disk expansion unit 2d will no longer forward the type request originated from the hard disk expansion unit 2b. Similarly, the hard disk expansion unit 2b continues to forward the type request to the grandchild node through its other child node (that is, the hard disk expansion unit 2e), but since the hard disk expansion unit 2e has no child nodes and is a leaf node, the hard disk expansion unit 2e will no longer forward the type request originated from the hard disk expansion unit 2b. Therefore, for the hard disk expansion unit 2b, it will only determine the hard disk expansion units 2d and 2e as hard disk expansion interfaces.
[0016] The hard disk expansion unit 2a / 2b / 2c / 2d / 2e only replies that its device type is a hard disk expansion interface to the host 1 or hard disk expansion unit directly connected thereto, and replies that its device type is not a hard disk expansion interface to the host 1 or hard disk expansion unit not directly connected thereto. As a result, the host 1 and each hard disk expansion unit 2a / 2b / 2c / 2d / 2e can only identify the hard disk expansion unit directly connected thereto through the received responses, and hide the hard disk expansion units not directly connected thereto. In this way, the host 1 regards the hard disk expansion units 2b, 2c, 2d, 2e that are not directly connected to the host 1 as not existing. It is worth mentioning that the host 1 only uses the hard disk expansion unit whose device type is the hard disk expansion interface as the node managed under its management architecture. Therefore, when the host 1 scans the nodes of the management architecture of the cluster storage system, for the components that do not belong to the hard disk expansion interface (that is, the nodes that reply to the host 1 and whose device type is not the hard disk expansion interface), the host 1 will regard the nodes that reply to the host 1 and whose device type is not the hard disk expansion interface as non-existent nodes in the management architecture.
[0017] For each hard disk expansion unit 2a / 2b / 2c / 2d / 2e, the hard disk expansion unit 2a / 2b / 2c / 2d / 2e is also used to determine whether there is at least one hard disk expansion unit directly connected to it other than its parent node after receiving a hard disk data request from its parent node and related to the hard disk belonging to it. It is worth mentioning that for each hard disk expansion unit 2a / 2b / 2c / 2d / 2e, the hard disk belonging to the hard disk expansion unit 2a / 2b / 2c / 2d / 2e refers to the hard disk connected to it in series, including direct connection and indirect connection, but not between it and the host, and does not include other hard disks connected to it in parallel. When the hard disk expansion unit 2a / 2b / 2c / 2d / 2e determines that there is at least one directly connected hard disk expansion unit, the hard disk expansion unit 2a / 2b / 2c / 2d / 2e transmits the data request to the at least one directly connected hard disk expansion unit. After the hard disk expansion unit 2a / 2b / 2c / 2d / 2e receives the data response from each directly connected hard disk expansion unit, each data response includes the unique address of the hard disk to which it belongs, such as SASAddress, and the hard disk expansion unit 2a / 2b / 2c / 2d / 2e receives the data response from each directly connected hard disk expansion unit. The unit 2a / 2b / 2c / 2d / 2e generates and transmits a data including a unique address of a hard disk to which each directly connected hard disk expansion unit belongs and a unique address of a hard disk directly connected to the hard disk expansion unit 2a / 2b / 2c / 2d / 2e to the parent node of the hard disk expansion unit 2a / 2b / 2c / 2d / 2e, and the hard disk expansion unit 2a / 2b / 2c / 2d / 2e also stores a correspondence between each directly connected hard disk expansion unit and the unique address of the hard disk to which it belongs. When the hard disk expansion unit 2a / 2b / 2c / 2d / 2e determines that the at least one directly connected hard disk expansion unit does not exist, the hard disk expansion unit 2a / 2b / 2c / 2d / 2e generates and transmits a data including a unique address of a hard disk directly connected to the hard disk expansion unit 2a / 2b / 2c / 2d / 2e to its parent node.
[0018] by Figure 1Taking the tree structure shown as an example, for the hard disk expansion unit 2d, when the hard disk expansion unit 2d receives a hard disk data request from the hard disk expansion unit 2b and related to the hard disk belonging to it, the hard disk expansion unit 2d determines that there is no at least one hard disk expansion unit directly connected to it except its parent node (that is, outside the hard disk expansion unit 2b), so the hard disk expansion unit 2d generates and transmits a data reply containing the unique addresses of the hard disks 3b and 3c directly connected to the hard disk expansion unit 2d to the hard disk expansion unit 2b. Similarly, for the hard disk expansion unit 2e, when the hard disk expansion unit 2e receives a hard disk data request from the hard disk expansion unit 2b and related to the hard disk belonging to it, the hard disk expansion unit 2e determines that there is no at least one hard disk expansion unit directly connected to it except its parent node (that is, outside the hard disk expansion unit 2b), so the hard disk expansion unit 2e generates and transmits a data reply to the hard disk expansion unit 2b containing the unique addresses of the hard disks 3d, 3e, and 3f directly connected to the hard disk expansion unit 2e. As for the hard disk expansion unit 2b, when the hard disk expansion unit 2b receives a hard disk data request from the hard disk expansion unit 2a and related to the hard disk belonging to it, the hard disk expansion unit 2b determines that in addition to its parent node (that is, outside the hard disk expansion unit 2a), there is at least one directly connected hard disk expansion unit 2d, 2e, so the hard disk expansion unit 2b transmits the data request to the at least one directly connected hard disk expansion unit 2d, 2e. After the hard disk expansion unit 2b receives the data reply from each directly connected hard disk expansion unit 2d, 2e, the hard disk expansion unit 2b generates and transmits a data reply to the hard disk expansion unit 2a including the unique address of the hard disk 3b, 3c, 3d, 3e, 3f belonging to each directly connected hard disk expansion unit 2d, 2e, and the unique address of the hard disk 3g directly connected to the hard disk expansion unit 2b.
[0019] It is worth mentioning that the host 1 also stores in the management structure of the cluster storage system the unique address corresponding to the hard disk expansion unit 2a whose device type is a hard disk expansion interface, which is replied to the host 1. Different from the prior art, in the management structure of the cluster storage system, all the hard disk expansion units 2a, 2b, 2c, 2d, 2e that receive the type request of the host 1 all reply to the host 1 that their device type is a hard disk expansion interface, so that the number of the hard disk expansion units that can be managed by the host 1 in the management structure of the cluster storage system is limited to the number of the physical connection ports (PHY) of the host 1. By adopting the technology proposed in this case, in the management architecture of the cluster storage system, the host 1 does not store and reply the unique addresses corresponding to the hard disk expansion units 2b, 2c, 2d, and 2e whose device type is not a hard disk expansion interface. Therefore, they do not occupy the physical connection port of the host 1 and are not directly managed by the host 1. As a result, the number of all hard disk expansion units 2a, 2b, 2c, 2d, and 2e in the management architecture of the cluster storage system is not limited by the number of physical connection ports (PHY) of the host 1, as long as the number of hard disk expansion units 2a directly connected to the host 1 does not exceed the number of physical connection ports of the host 1.
[0020] See also Figure 1 The hardware architecture of a second embodiment of the cluster storage system for expanding the hard disk expansion unit of the present invention is the same as that of the first embodiment, and the difference lies in the mechanism of hiding the hard disk expansion unit. The following will describe how the second embodiment hides the hard disk expansion unit.
[0021] For the master hard disk expansion unit 2a directly connected to the host 1, the master hard disk expansion unit 2a is used to, after receiving a type request related to the device type from the host 1, send a device type reply indicating that it is a hard disk expansion interface to the host 1, and forward the type request to at least one corresponding child node (that is, other hard disk expansion units 2b, 2c). For each other hard disk expansion unit 2b / 2c / 2d / 2e that is not directly connected to the host 1, the other hard disk expansion unit 2b / 2c / 2d / 2e is used to determine whether the type request originates from the root node (that is, the host 1) after receiving a type request related to the device type. When the other hard disk expansion unit 2b / 2c When the host 1 determines that the type request is not sent from the root node, the other hard disk expansion unit 2b / 2c / 2d / 2e sends a type reply indicating that it is a device type of a hard disk expansion interface to the node that originally sent the type request, and forwards the type request to at least one of its corresponding child nodes. When the other hard disk expansion unit 2b / 2c / 2d / 2e determines that the type request is sent from the root node, the other hard disk expansion unit 2b / 2c / 2d / 2e sends a type reply indicating that it is not a device type of a hard disk expansion interface to the root node, so that the host 1 can only identify the main hard disk expansion unit 2a directly connected to it, and hide the other hard disk expansion units 2b, 2c, 2d, 2e that are not directly connected to it. Each hard disk expansion unit 2a / 2b / 2c / 2d / 2e stores the unique address of the root node (that is, the host 1) to determine whether the received type request is from the root node. Each type request includes a unique address of the node that originates the type request, such as a SAS Address, so that each hard disk expansion unit 2a / 2b / 2c / 2d / 2e can identify the origin of the corresponding type request according to the unique address after receiving the type request. In this embodiment, the other hard disk expansion unit 2b / 2c / 2d / 2e indicates that it is not a hard disk expansion interface by sending a device type reply indicating that it has no device to the root node, but it is not limited to this.
[0022] It is worth mentioning that, similar to the first embodiment, when the host 1 and each hard disk expansion unit 2a / 2b / 2c / 2d / 2e are scanning the devices connected thereto (i.e., child nodes), they will decide whether to continue to scan the devices indirectly connected thereto (i.e., grandchild nodes) according to the device type of the devices connected thereto. When the host 1 and each hard disk expansion unit 2a / 2b / 2c / 2d / 2e determine that the device type of its child node is a hard disk expansion interface, the host 1 and each hard disk expansion unit 2a / 2b / 2c / 2d / 2e will continue to scan the device type of its grandchild node (i.e., continue to forward the type request to the grandchild node through the child node). When the host 1 and each hard disk expansion unit 2a / 2b / 2c / 2d / 2e determine that the device type of its child node is a hard disk expansion interface, the host 1 and each hard disk expansion unit 2a / 2b / 2c / 2d / 2e will continue to scan the device type of its grandchild node (i.e., continue to forward the type request to the grandchild node through the child node). When the device type of its child node is not a hard disk expansion interface, the host 1 and each hard disk expansion unit 2a / 2b / 2c / 2d / 2e will stop scanning the device type of its grandchild node (that is, stop forwarding the type request to the grandchild node through the child node). Therefore, for the host 1, the host 1 will send the type request to the main hard disk expansion unit 2a, and forward the type request to the other hard disk expansion units 2b and 2c through the main hard disk expansion unit 2a. However, since the other hard disk expansion units 2b and 2c both send a type reply to the host 1 indicating that they are not the device type of the hard disk expansion interface, the host 1 stops forwarding the type request to the child nodes under the grandchild node (that is, the other hard disk expansion units 2d and 2e) through the child nodes and grandchild nodes. As for the master hard disk expansion unit 2a, the master hard disk expansion unit 2a will send a type request related to the device type to at least one of its corresponding child nodes. For each other hard disk expansion unit 2b / 2c / 2d / 2e directly or indirectly connected to the master hard disk expansion unit 2a, the other hard disk expansion unit 2b / 2c / 2d / 2e is used to determine that the type request originates from the master hard disk expansion unit 2a. The other hard disk expansion unit 2b / 2c / 2d / 2e sends a type response indicating that it is a device type of a hard disk expansion interface to the master hard disk expansion unit 2a, and forwards the type request to at least one of its corresponding child nodes. Figure 1Taking the tree structure shown as an example, the master hard disk expansion unit 2a transmits the type request to its corresponding child node (i.e., the other hard disk expansion units 2b and 2c), and the other hard disk expansion unit 2b transmits a device type reply indicating that it is a hard disk expansion interface to the master hard disk expansion unit 2a. Similarly, the other hard disk expansion unit 2c transmits a device type reply indicating that it is a hard disk expansion interface to the master hard disk expansion unit 2a. Since the master hard disk expansion unit 2a identifies the device type of its child node (i.e., the other hard disk expansion unit 2b) as a hard disk expansion interface, the master hard disk expansion unit 2a continues to forward the type request to the grandchild node (i.e., the other hard disk expansion units 2d and 2e) through the child node. The other hard disk expansion unit 2b forwards the type request originating from the master hard disk expansion unit 2a to its corresponding two child nodes, and the other hard disk expansion unit 2d receives a type request originating from the master hard disk expansion unit 2a and related to its own device type. After the request, the other hard disk expansion unit 2d sends a device type reply indicating that it is a hard disk expansion interface to the main hard disk expansion unit 2a. Similarly, after the other hard disk expansion unit 2e receives a type request from the main hard disk expansion unit 2a and related to its own device type, the other hard disk expansion unit 2e sends a device type reply indicating that it is a hard disk expansion interface to the main hard disk expansion unit 2a. Therefore, the main hard disk expansion unit 2a continues to forward the type request to the child node under the grandchild node through the child node and the grandchild node (in Figure 1 In the example, the other hard disk expansion units 2d and 2e have no child nodes, so the other hard disk expansion units 2d and 2e will no longer forward the type request originated from the main hard disk expansion unit 2a. Since the main hard disk expansion unit 2a determines that the device type of its other child node (that is, the hard disk expansion unit 2c) is a hard disk expansion interface, the main hard disk expansion unit 2a continues to forward the type request to the grandchild node through another child node, but since the hard disk expansion unit 2c is a leaf node and has no child nodes, the hard disk expansion unit 2c will no longer forward the type request originated from the main hard disk expansion unit 2a.
[0023] When the master hard disk expansion unit 2a directly connected to the host 1 receives a hard disk data request from the host 1 and related to the hard disk belonging to it, the master hard disk expansion unit 2a sends another data request to all other hard disk expansion units 2b, 2c, 2d, 2e directly or indirectly connected to it. After the master hard disk expansion unit 2a receives the data response from each other hard disk expansion unit 2b / 2c / 2d / 2e, each data response contains the unique address of the hard disk belonging to it, such as SAS The master hard disk expansion unit 2a generates and transmits a unique address including the hard disk 3g / 3h, 3i / 3b, 3c / 3d, 3e, 3f to which each other hard disk expansion unit 2b / 2c / 2d / 2e belongs, and the unique address of the hard disk 3a directly connected to the master hard disk expansion unit 2a, and replies to its parent node. The master hard disk expansion unit 2a also stores the correspondence between the unique address of each other hard disk expansion unit 2b / 2c / 2d / 2e and the hard disk 3g / 3h, 3i / 3b, 3c / 3d, 3e, 3f to which it belongs in the management architecture of the cluster storage system.
[0024] In summary, the cluster storage system for expanding hard disk expansion units of the present invention, for hard disk expansion units that are not directly connected to the host 1, sends a device type reply indicating that it is not a hard disk expansion interface to the host 1, so that the host 1 can only identify the hard disk expansion units directly connected to it, and hide the hard disk expansion units that are not directly connected to it, thereby reducing the complexity of the host 1 managing the hard disk expansion interface and the hard disk, and there is no need to modify the original management architecture, so the purpose of the present invention can be achieved. It is worth mentioning that the node of the management architecture of the cluster storage system stored by the host 1 only includes the unique address of the master hard disk expansion unit 2a directly connected to the host 1 (in other embodiments of the present invention, the master hard disk expansion unit 2a is not limited to only one, as long as the hard disk expansion units directly connected to the host 1 are all master hard disk expansion units 2a, and the number of the master hard disk expansion units 2a must meet the limit of the number of physical connection ports (PHY) of the host 1, that is, the number of the master hard disk expansion units 2a cannot be greater than the number of physical connection ports of the host 1.
[0025] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A cluster storage system for expanding a hard disk expansion unit, characterized in that: Include: a host computer; and A plurality of hard disk expansion units are provided, wherein the hard disk expansion units and the host form a tree structure connection with the host as a root node. For each hard disk expansion unit, after receiving a type request originating from a parent node and related to a device type, the hard disk expansion unit transmits a device type reply indicating that it is a hard disk expansion interface to the parent node, and forwards the type request to at least one child node corresponding to the hard disk expansion unit. After the hard disk expansion unit receives a type request originating from a grandparent node and related to the device type of the hard disk expansion unit itself, the hard disk expansion unit transmits a device type reply indicating that it is not a hard disk expansion interface to the grandparent node, so that the host and each hard disk expansion unit can only identify the hard disk expansion unit directly connected to it, and hide the hard disk expansion unit not directly connected to it.
2. The cluster storage system for expanding a hard disk expansion unit according to claim 1, wherein: Also includes: A plurality of hard disks, each hard disk being electrically connected to one of the hard disk expansion units; Wherein, for each hard disk expansion unit, the hard disk expansion unit is also used to determine whether there is at least one hard disk expansion unit directly connected to it except its parent node after receiving a hard disk data request from its parent node and related to the hard disk belonging to the hard disk expansion unit. When the hard disk expansion unit determines that there is at least one hard disk expansion unit directly connected to it, the hard disk expansion unit transmits the data request to the at least one hard disk expansion unit directly connected to it. After the hard disk expansion unit receives the data response of each hard disk expansion unit directly connected to it, each data response includes the unique address of the hard disk belonging to it. The hard disk expansion unit generates and transmits a data response including the unique address of the hard disk belonging to each hard disk expansion unit directly connected to it and the unique address of the hard disk directly connected to the hard disk expansion unit to its parent node. When the hard disk expansion unit determines that there is no at least one hard disk expansion unit directly connected to it, the hard disk expansion unit generates and transmits a data response including the unique address of the hard disk directly connected to the hard disk expansion unit to its parent node.
3. The cluster storage system for expanding a hard disk expansion unit according to claim 2, wherein: For each hard disk expansion unit, when the hard disk expansion unit determines that there is at least one hard disk expansion unit directly connected to it, after the hard disk expansion unit receives the data response from each hard disk expansion unit directly connected to it, the hard disk expansion unit also stores the corresponding relationship between each hard disk expansion unit directly connected to it and the unique address of the hard disk to which the hard disk expansion unit belongs.
4. The cluster storage system for expanding a hard disk expansion unit according to claim 1, wherein: This type of request contains the unique address of the node that originated the request.
5. A cluster storage system for expanding a hard disk expansion unit, characterized in that: Include: a host computer; and A plurality of hard disk expansion units, wherein the hard disk expansion units and the host form a tree structure connection with the host as a root node. For a master hard disk expansion unit directly connected to the host, the master hard disk expansion unit is used to, after receiving a type request related to a device type from the host, send a device type reply indicating that it is a hard disk expansion interface to the host, and forward the type request to at least one child node corresponding to the master hard disk expansion unit. For each other hard disk expansion unit not directly connected to the host, the other hard disk expansion unit is used to, after receiving a type request related to a device type, determine whether the type request originates from the root node. When the other hard disk expansion unit determines that the type of request is not originated from the root node, the other hard disk expansion unit transmits a type reply indicating that it is a device type of a hard disk expansion interface to the node that originated the type of request, and forwards the type of request to at least one child node corresponding to itself. When the other hard disk expansion unit determines that the type of request is originated from the root node, the other hard disk expansion unit transmits a type reply indicating that it is not a device type of a hard disk expansion interface to the root node, so that the host can only identify the main hard disk expansion unit directly connected to it, and hide other hard disk expansion units that are not directly connected to it.
6. The cluster storage system for expanding a hard disk expansion unit according to claim 5, wherein: A master hard disk expansion unit directly connected to the host transmits a type request related to the device type to at least one child node corresponding to it. For each other hard disk expansion unit directly or indirectly connected to the master hard disk expansion unit, the other hard disk expansion unit is used to transmit a type response indicating that it is a device type of a hard disk expansion interface to the master hard disk expansion unit after determining that the type request originates from the master hard disk expansion unit, and forward the type request to at least one child node corresponding to the other hard disk expansion unit.
7. The cluster storage system for expanding a hard disk expansion unit according to claim 5, wherein: Also includes: A plurality of hard disks, each hard disk being electrically connected to one of the hard disk expansion units; Among them, when the master hard disk expansion unit directly connected to the host receives a hard disk data request from the host and related to the hard disk belonging to it, the master hard disk expansion unit sends another data request to all other hard disk expansion units directly or indirectly connected to it. After the master hard disk expansion unit receives the data response from each other hard disk expansion unit, each data response includes the unique address of the hard disk belonging to each other hard disk expansion unit. The master hard disk expansion unit generates and transmits a data response including the unique address of the hard disk belonging to each other hard disk expansion unit and the unique address of the hard disk directly connected to the master hard disk expansion unit to its parent node.
8. The cluster storage system for expanding a hard disk expansion unit according to claim 7, wherein: After the master hard disk expansion unit receives the data reply from each other hard disk expansion unit, the master hard disk expansion unit also stores the correspondence between each other hard disk expansion unit and the unique address of the hard disk to which each other hard disk expansion unit belongs.
9. The cluster storage system for expanding a hard disk expansion unit according to claim 5, wherein: This type of request contains the unique address of the node that originated the request.
