A method and system for allocating storage space

The storage topology controller manages storage modules, allowing multi-node servers to flexibly allocate storage space in different application scenarios, solving the problem of insufficient flexibility caused by fixed storage space in traditional systems and achieving more efficient resource utilization.

CN113918092BActive Publication Date: 2024-10-18CHINA GREATWALL TECH GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111101879.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-18
Publication Date
2024-10-18
Estimated Expiration
2041-09-18

AI Technical Summary

Technical Problem

The storage space of traditional multi-node servers is fixed, which may cause waste or insufficient storage space in different application scenarios, reducing the flexibility of the server.

Method used

Through storage topology controller management, any node server is allowed to apply for and allocate storage units in the storage module, open or release the corresponding storage space, and realize flexible allocation of storage space.

Benefits of technology

It realizes the free allocation of storage space of multi-node servers in different application scenarios, enhances the flexibility of the server, and avoids waste or shortage of storage resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113918092B_ABST
    Figure CN113918092B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of computer technology, and provides a method and system for allocating storage space, which is applied to a multi-node server system, wherein the node server system includes: multiple node servers, a storage topology controller, a storage module controller, and a storage module. The method includes: the node server makes a request for storage space, the storage topology controller determines one or more storage units from the storage module according to the request made by the node server, and the storage module controller opens the communication channel between one or more storage units in the storage module and the node server, and finally reports one or more storage units to the node server to complete the allocation of storage space, so as to achieve the technical effect that the node server in the multi-node server system can freely allocate the storage space of the node server in different application scenarios, thereby making the flexibility of the multi-node server stronger.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology, and more particularly to a method and system for allocating storage space. Background Art

[0002] With the development of new information technology, centralized data centers are gradually moving towards distributed architectures. This development has led to an increase in the number of servers in data centers. Multi-node servers are designed with shared chassis, fans and other equipment. Compared with traditional servers, they can provide higher computing density in the same cabinet space, and therefore have been widely used.

[0003] In the related art, the storage space corresponding to each node server of the traditional multi-node server is fixed. However, the same node server requires different storage spaces in different application scenarios. The fixed storage space allocation method will cause the same multi-node server to waste storage space or have insufficient storage space in different usage scenarios, making the multi-node server less flexible. Summary of the invention

[0004] The embodiments of the present application provide a method and system for allocating storage space, which can achieve the effect that the storage space of any node server in a multi-node server can be freely allocated.

[0005] In a first aspect, an embodiment of the present application provides a method for allocating storage space, which is applied to a multi-node server system, and the method includes: a first node server sends a first request to the first storage topology controller, the first request is used to apply to the storage topology controller for storage space in the storage module, and the first node server is any node server in the multi-node server system; the storage topology controller determines one or more storage units from the storage module based on the first request; the storage topology controller controls the storage module controller to open a communication channel between the first node server and the one or more storage units based on the one or more storage units; and the storage module controller reports the one or more storage units to the first node server.

[0006] In a possible implementation of the first aspect, the storage topology controller determines a storage unit in the storage module that does not establish a communication channel with other node servers in the multi-node server system except the first node server; and determines the one or more storage units from the storage units in the storage module that do not establish a communication channel with other node servers in the multi-node server system except the first node server.

[0007] In a possible implementation of the first aspect, the storage topology controller sends a second request to the storage module controller, and the second request requests the storage module controller to report the storage units in the storage module that have not established communication channels with other node servers in the multi-node server system except the first node server; the storage topology controller determines the storage units in the storage module that have not established communication channels with other node servers in the multi-node server system except the first node server based on the report of the storage module controller.

[0008] In a possible implementation of the first aspect, before the storage topology controller controls the storage module controller to open a communication channel between the first node server and the one or more storage units, the storage topology controller sends a third request to the storage module controller, and the third request requests the storage module controller to release the storage space corresponding to the one or more storage units; the storage module controller releases the storage space corresponding to the one or more storage units according to the third request.

[0009] In a possible implementation manner of the first aspect, the storage topology controller sends a control signal to the storage module controller, where the control signal is used to control the storage module controller to open a communication channel between the first node server and the one or more storage units.

[0010] In a possible implementation manner of the first aspect, the storage module controller sends first information to the first node server, where the first information includes identification information of the one or more storage units.

[0011] In a possible implementation manner of the first aspect, the storage module controller is deployed in the storage module.

[0012] The embodiment of the present application overcomes the technical problem of fixed storage space of node servers in a multi-node server system by enabling the storage topology controller to control the storage module controller to open a communication channel between the first node server and one or more storage units in the storage module according to a request for storage space from the first node server, and the storage module controller to report one or more storage units to the first node server, thereby achieving the technical effect that the storage space of the node servers in the multi-node server system can be freely allocated in different application scenarios, thereby enhancing the flexibility of the multi-node servers.

[0013] In a second aspect, an embodiment of the present application provides a multi-node server system, including: multiple node servers, a storage topology controller, a storage module controller and a storage module.

[0014] A first node server among the multiple node servers is used to: send a first request to the first storage topology controller, wherein the first request is used to apply to the storage topology controller for storage space in the storage module, and the first node server is any node server in the multi-node server system;

[0015] The storage topology controller is used to: determine one or more storage units from the storage module according to the first request; and control the storage module controller to open a communication channel between the node server and the one or more storage units according to the one or more storage units;

[0016] The storage module controller is used to report the one or more storage units to the first node server.

[0017] In a possible implementation of the second aspect, the storage topology controller is specifically used to: determine a storage unit in the storage module that has not established a communication channel with other node servers in the multi-node server system except the first node server; and determine the one or more storage units from the storage units in the storage module that have not established a communication channel with other node servers in the multi-node server system except the first node server.

[0018] In a possible implementation manner of the second aspect, the storage topology controller is specifically used to: send a second request to the storage module controller, the second request requesting the storage module controller to report the storage unit in the storage module that has not established a communication channel with other node servers in the multi-node server system except the first node server; the storage topology controller determines the storage unit in the storage module that has not established a communication channel with other node servers in the multi-node server system except the first node server based on the report of the storage module controller.

[0019] In a possible implementation of the second aspect, the storage topology controller is also used to: before the storage topology controller controls the storage module controller to open a communication channel between the first node server and the one or more storage units, send a third request to the storage module controller, and the third request requests the storage module controller to release the storage space corresponding to the one or more storage units.

[0020] In a possible implementation manner of the second aspect, the storage module controller is further used to: release storage space corresponding to the one or more storage units according to the third request.

[0021] In a possible implementation manner of the second aspect, the storage topology controller is specifically used to: send a control signal to the storage module controller, wherein the control signal is used to control the storage module controller to open a communication channel between the first node server and the one or more storage units.

[0022] In a possible implementation manner of the second aspect, the storage module controller is specifically configured to: send first information to the first node server, where the first information includes identification information of the one or more storage units.

[0023] In a third aspect, an embodiment of the present application provides a schematic diagram of a structure of a storage space allocation device, the device comprising:

[0024] The sending module is used for the first node server to send a first request to the first storage topology controller, the first request is used to apply for storage space in the storage module from the storage topology controller, the first node server is any node server in the multi-node server system; and the storage module controller reports the one or more storage units to the first node server;

[0025] a determination module, configured for the storage topology controller to determine one or more storage units from the storage module according to the first request;

[0026] An opening module is used for the storage topology controller to control the storage module controller to open a communication channel between the node server and the one or more storage units according to the one or more storage units.

[0027] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, including computer instructions. When the computer instructions are executed on a multi-node server system, the multi-node server system executes any possible method of allocating storage space in any of the above aspects.

[0028] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a multi-node server system, enables the multi-node server system to execute any possible method of allocating storage space in any of the above aspects.

[0029] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0031] Figure 1 It is a structural diagram of a multi-node server system provided in an embodiment of the present application;

[0032] Figure 2 It is a flowchart of a method for allocating storage space provided in an embodiment of the present application;

[0033] Figure 3 It is a structural diagram of a device for allocating storage space provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0035] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0036] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0037] In the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0038] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0039] A multi-node server is a server cluster composed of multiple node servers. Multi-node servers are mainly used in fields based on File Transfer Protocol (FTP) communication and the Internet (World Wide Web, WEB). Centralizing multiple node servers can achieve faster processing speed and reduce the load of each node server in the multi-node server.

[0040] Normally, each node server is allocated a fixed storage space when it leaves the factory. Taking the storage space consisting of multiple disks as an example, a multi-node server system with 4 node servers includes a total of 24 disks. These 24 disks will be allocated to each node server when it leaves the factory, and the disks allocated to the node servers at the factory cannot be changed subsequently.

[0041] However, the node server may have different requirements for storage space size for different application scenarios. For example, for the scenario of performing computing tasks, the node server performing computing tasks only needs 4 disks to complete the computing tasks. In this case, there will be a waste of storage resources; for the scenario of performing storage tasks, the node server performing storage tasks needs 8 disks to complete the storage tasks. In this case, there will be insufficient storage resources.

[0042] In view of this, an embodiment of the present application provides a method for allocating storage space, and a user can freely allocate the storage space of a node server according to different application scenarios.

[0043] Figure 1 This is a schematic diagram of the structure of the multi-node server system 100 proposed in an embodiment of the present application. It can be seen that the multi-node server system 100 includes: multiple node servers 101, a storage topology controller 102, a storage module controller 103, and a storage module 104, wherein:

[0044] The node server 101 is used to provide computing and storage functions.

[0045] The storage topology controller 102 is used to determine one or more storage units from the storage module 104 .

[0046] The storage module controller 103 is used to open a communication channel between the one or more storage units and the node server.

[0047] It should be understood that Figure 1 This is only an example and does not constitute a limitation on the embodiments of the present application. The embodiments of the present application do not limit the number of node servers included in the multi-node server system.

[0048] In some embodiments, Figure 1 Each node server in the Figure 1 Alternatively, it may be independent of the node server and deployed between the node server and the storage topology controller. The role of the storage controller in the embodiment of the present application is described below.

[0049] In some embodiments, the storage module controller may be deployed in the storage module, or may be independent of the storage module and deployed between the storage topology controller and the storage module.

[0050] In some embodiments, the multi-node server system further includes: a power module and a heat dissipation module. Figure 1 The power module is used to meet the power supply requirements of the multi-node server, and the heat dissipation module is used to meet the heat dissipation requirements of the multi-node server.

[0051] The following takes any node server (i.e., the first node server) in the multi-node server system as an example, and combines Figure 2 The method for allocating storage space provided in an embodiment of the present application is introduced in detail, wherein the first node server can be used to execute computing tasks, and the first node server can also be used to execute storage tasks.

[0052] Step S201: A first node server sends a first request to a storage topology controller.

[0053] Exemplarily, after the user determines the storage space required to execute the task according to the task to be executed by the first node server, the user can send a first request to the storage topology controller through the first node server to request storage space of corresponding size in the storage module.

[0054] Taking the storage module including several disks as an example, the first request can carry the number of disks of the same specification or carry the identification information of a specific disk. For example, the specification of the disks in the storage module are all 600G, in this case, the original request can carry the number of disks, or the specifications of the disks in the storage module are not exactly the same, in this case, the first request can carry the specifications of the disks and the number of disks of the same specification.

[0055] Exemplarily, the first node server may send the first request to the storage topology controller in the following manner:

[0056] The first node server first generates an original request. Usually, the format of the original request is not a format that can be recognized by the machine. Therefore, in order to make the original request recognizable by the machine, the first node server can send the original request to the storage controller. The storage controller converts the format of the original request, generates a first request that can be recognized by the machine, and then sends the first request to the storage topology controller.

[0057] Exemplarily, when the first node server sends an original request to the storage controller, the first node server can use a high-speed serial computer expansion bus (peripheral component interconnect express, PICe) interface to communicate with the storage controller through the PICe protocol, or connect the node server and the storage controller together in a switch for communication.

[0058] The storage medium constituting the storage module is a disk as an example. In the specific implementation, the type of the storage medium constituting the storage module is not limited. For example, the storage medium constituting the storage module may be a flash memory, or the storage medium constituting the storage module may also be an optical disk or other memory with storage function. It is worth mentioning that when the storage medium constituting the storage module is a disk, each disk constituting the storage module is equivalent to the storage unit in the embodiment of the present application.

[0059] Step S202: The storage topology controller determines one or more storage units from the storage module according to the first request.

[0060] Exemplarily, the storage topology controller may determine, based on the first request, from the storage module a storage unit that has not established a communication channel with other node servers except the first node server in the multi-node server system, and determine one or more storage units from the storage units that have not established a communication channel with other node servers except the first node server in the multi-node server system.

[0061] Exemplarily, when the storage topology controller determines a storage unit that has not established a communication channel with other node servers except the first node server in the multi-node server system, the determination may be made in the following two ways.

[0062] Method 1

[0063] The storage topology controller may actively determine a storage unit in the storage module that has not established a communication channel with other node servers except the first node server in the multi-node server system.

[0064] For example, the storage topology controller can actively obtain the communication status information and identification information of the storage unit in the storage module through the serial small computer system (Serial Attached Small Computer System Interface, SAS) interface of the storage topology controller. The communication status information of the storage unit can be used to indicate the opening of the communication channel between the node server and the storage unit. After the communication channel between the node server and the storage unit is opened, the node server can use the storage unit whose communication channel with the node server is opened. If the communication channel between the node server and the storage unit is not opened, the node server cannot use the storage unit whose communication channel with the node server is opened. The identification information of the storage unit can be used to uniquely determine the storage unit in the storage module. For example, the identification information can be the serial number information of the storage unit, or the name information of the storage unit, or the address information of the storage unit.

[0065] The storage topology controller can determine the storage units in the storage module that have not established communication channels with other node servers except the first node server in the multi-node server system through the communication status information of the storage units and the identification information of the corresponding storage units.

[0066] Exemplarily, the storage module controller may store the communication status information and identification information of the storage unit in the storage module, and the storage topology controller may actively read the information stored by the storage module controller to obtain the communication status information and identification information of the storage unit.

[0067] For example, if the communication channel between a storage unit and any node server in the multi-node server system is not enabled, the storage module controller may mark the communication status information of the storage unit as 00; if the communication channel between a storage unit and the first node server is enabled, the storage module controller will mark the communication status information of the storage unit as 01; if the communication channel between the storage unit and other node servers in the multi-node server system except the first node server is not enabled, the storage module controller will mark the communication status information of the storage unit as 10.

[0068] For another example, the storage module controller marks the storage unit whose communication channel between other node servers except the first node server in the multi-node server system and the storage unit is not enabled as 00, and marks the storage unit whose communication channel between other node servers except the first node server in the multi-node server system and the storage unit is enabled as 01.

[0069] Method 2

[0070] The storage topology controller may send a second request to the storage module controller, and the storage module controller determines the storage units in the storage module that have not established communication channels with other node servers in the multi-node server system except the first node server based on the second request, and reports to the storage topology controller the storage units in the storage module that have not established communication channels with other node servers in the multi-node server system except the first node server. The storage topology controller determines the storage units in the storage module that have not established communication channels with other node servers in the multi-node server system except the first node server based on the report of the storage module controller.

[0071] The storage module controller marks the communication status information of the storage unit and the identification information of the corresponding storage unit according to the opening status of the communication channel between the storage unit and the node server, and determines the storage unit in the storage module that has not established a communication channel with other node servers except the first node server in the multi-node server system according to the communication status information of the storage unit in the storage module and the corresponding storage unit identification information.

[0072] Regarding the manner in which the storage module controller determines the identification information of the storage unit in the storage module and the manner in which the storage module controller determines the communication status information in the storage module, please refer to the relevant description of method 1, which will not be repeated here for the sake of brevity.

[0073] The following is a detailed description of the method for determining one or more storage units:

[0074] When determining one or more storage units, in one implementation, one or more storage units can be determined based on storage addresses in the storage module of storage units that do not establish communication channels with other node servers except the first node server in the multi-node server system.

[0075] For example, the first node server applies for three storage units from the storage topology controller, and the storage units in the storage module that have not established communication channels with other node servers in the multi-node server system except the first node server are, in order from small to large, the following in order of storage addresses: storage unit 1, storage unit 2, storage unit 3, storage unit 4, storage unit 5, storage unit 6, where the channel between storage unit 1 and the first node service is opened, and the communication channels between storage unit 2, storage unit 3, storage unit 4, storage unit 5, storage unit 6 and any node server in the multi-node server system are not opened. In this case, the storage topology controller can determine to open the communication channels between storage unit 1, storage unit 2, storage unit 3 and the first node server according to the determination method of the storage addresses of the storage units in the storage module from small to large.

[0076] In another implementation manner, one or more storage units may also be randomly determined from storage units that have not established communication channels with other node servers except the first node server in the multi-node server system.

[0077] For example, the first node server applies for two storage units from the storage topology controller, and the storage units in the storage module that have not established communication channels with other node servers in the multi-node server system except the first node server are in the order of storage addresses from small to large: storage unit 1, storage unit 2, storage unit 3, storage unit 4, storage unit 5, storage unit 6, among which the channel between storage unit 1 and the first node service is opened, and the communication channels between storage unit 2, storage unit 3, storage unit 4, storage unit 5, storage unit 6 and any node server in the multi-node server system are not opened. In this case, the storage topology controller can randomly select two storage units from storage unit 1, storage unit 2, storage unit 3, storage unit 4, storage unit 5, storage unit 6 to determine to open the communication channel between the storage unit and the first node server.

[0078] Step S204: The storage topology controller controls the storage module controller to open a communication channel between the first node server and the one or more storage units according to the one or more storage units.

[0079] After the storage topology controller determines one or more storage units, the storage topology controller may send a control signal to the storage module controller according to the one or more storage units, and the storage module controller opens a communication channel between the first node server and the one or more storage units according to the control signal.

[0080] Exemplarily, the storage topology controller can generate a control signal based on the determined one or more storage units, and send the control signal to the storage module controller. The storage module controller receives the control signal from the storage topology controller and opens a communication channel between the first node server and the one or more storage units based on the control signal, that is, the first node server obtains the permission to read and write data in the storage unit.

[0081] For example, the first node server applies for two storage units from the storage topology controller, and the storage module includes storage unit 1, storage unit 2, storage unit 3, storage unit 4, storage unit 5, and storage unit 6. The storage units in the storage module that have not established communication channels with other node servers in the multi-node server system except the first node server are: storage unit 1, storage unit 2, storage unit 3, and storage unit 4, among which the channel between storage unit 2 and the first node service is opened, and the communication channels between storage unit 1, storage unit 3, storage unit 4 and any node server in the multi-node server system are not opened.

[0082] The storage topology controller determines to open the communication channel between storage unit 1, storage unit 2 and the first node server, and sends a control signal 110000 to the storage module controller. The control signal acts on all storage units in the storage module, wherein a control signal of 0 represents that the communication channel between the storage unit and the first node server is not opened, and a control signal of 1 represents that the communication channel between the storage unit and the first node server is opened. Then, the storage module controller opens the communication channel between storage unit 1, storage unit 2 and the first node server according to the control signal 110000, and does not open the communication channel between storage unit 3, storage unit 4, storage unit 5, storage unit 6 and the first node server.

[0083] Exemplarily, when the storage topology controller sends a control signal to the storage module controller, the storage topology controller may communicate with the storage module controller through a SAS protocol via a SAS port of the storage topology controller.

[0084] It should be understood that there is not only one way for the storage module controller to control the opening or closing of the communication channel between the storage unit and the first node server. The above control method is only an example and does not constitute a limitation on the embodiments of the present application.

[0085] Before opening the communication channel between the storage unit and the node server, the storage module controller may release the storage space in one or more determined storage units. In this case, the embodiment of the present application also includes step S203: the storage topology controller sends a third request to the storage module controller through the SAS protocol, requesting the storage module controller to release the data stored in the one or more storage units, and the storage module controller releases the storage space corresponding to the one or more storage units according to the third request.

[0086] Step S205: The storage module controller reports one or more storage units to the first node server.

[0087] Exemplarily, when the storage controller reports one or more storage units to the first node server, the storage module may send first information to the first node server, where the first information includes identification information of the one or more storage units.

[0088] Exemplarily, the storage controller may send the first information to the first node server in the following manner:

[0089] The storage controller first generates original information. Usually, the format of the original information is a format that can be recognized by the machine. However, the node server cannot recognize the format of the original information. Therefore, in order to enable the node server to recognize the original information, the storage controller sends the original information to the storage controller, and the storage controller converts the format of the original information to generate the first information that can be recognized by the node server, and then sends the first information to the first node server.

[0090] Regarding the communication method between the storage module controller and the first node server, please refer to the relevant description in step S201, which will not be repeated here for the sake of brevity.

[0091] Optionally, after the above step S205, the first node server may request the storage controller to perform redundancy protection on the data in the storage unit during the period when the node server writes data to the storage unit. The redundancy protection is described in detail below.

[0092] In one implementation, the first node server sends a request for redundant protection to the storage controller, requesting the storage controller to back up and store the data in the storage unit, or the data in the storage unit and the check bit information of the data in the storage unit, during the period when the node server writes data to the storage unit. When the data is damaged, the storage controller can be used to restore the data, thereby achieving the purpose of protection.

[0093] When the storage controller performs redundant protection on the data in the storage unit, the redundant protection can be implemented in the following two ways.

[0094] Implementation method 1: Redundancy protection can be implemented through software. The reading and writing of disk data is completed by the CPU, and the system can identify all storage units in the storage controller.

[0095] Implementation method 2: Redundant protection can be implemented through hardware, by deploying a hardware disk array (Redundant Arrays of Independent Disks, RAID) card on the node server to complete data processing.

[0096] When the storage controller performs redundant protection on the data in the storage unit, the type of redundant protection may be any one of RAID1, RAID5, RAID6, RAID10, and RAID50.

[0097] For example, when the redundant protection is implemented by hardware and the protection type of the redundant protection is RAID5, the RAID card in the storage controller uses three storage units for storage. The storage controller slices the data written by the node server into the storage unit, and reads and writes the data of the storage unit to different storage units in the storage controller. After the storage unit of each storage controller slices the data written by the node server and the data written by the node server, the parity information corresponding to each slice of data is stored. When any storage unit is damaged, the data in the damaged hard disk can be restored by performing an XOR operation on the data of the remaining storage units.

[0098] The method for allocating storage space, computer-readable storage medium, and computer program product provided in the embodiments of the present application can achieve the technical effect that the storage space of the node servers in the multi-node server system can be freely allocated in different application scenarios, thereby enhancing the flexibility of the multi-node servers.

[0099] Above Figure 2 The method for allocating storage space in the embodiment of the present application is described in detail. Figure 3 The device provided by the embodiment of the present application is described in detail.

[0100] Figure 3 3 is a schematic diagram of a storage space allocation device 300 provided in an embodiment of the present application, the device comprising:

[0101] The sending module 301 is used to send a first request to the first storage topology controller, the first request is used to apply for storage space in the storage module from the storage topology controller, the first node server is any node server in the multi-node server system; and the storage module controller reports the one or more storage units to the first node server;

[0102] A determination module 302, configured to determine one or more storage units from a storage module according to a first request;

[0103] The opening module 303 is used to control the storage module controller to open the communication channel between the node server and the one or more storage units according to the one or more storage units.

[0104] Optionally, the determination module 302 is also used to: determine the storage unit in the storage module that has not established a communication channel with other node servers in the multi-node server system except the first node server; determine one or more storage units from the storage units in the storage module that have not established a communication channel with other node servers in the multi-node server system except the first node server.

[0105] Optionally, the sending module 301 is further used to: send a second request to the storage module controller, the second request requesting the storage module controller to report the storage unit in the storage module that has not established a communication channel with other node servers except the first node server in the multi-node server system;

[0106] The determination module 302 is further configured to: determine, based on a report from the storage module controller, a storage unit in the storage module that has not established a communication channel with other node servers except the first node server in the multi-node server system.

[0107] Optionally, the sending module 301 is further used to: send a third request to the storage module controller, the third request requesting the storage module controller to release storage space corresponding to one or more storage units;

[0108] The device also includes a releasing module, which is used to release storage space corresponding to one or more storage units.

[0109] Optionally, the sending module 301 is further used to: send a control signal to the storage module controller, where the control signal is used to control the storage module controller to open a communication channel between the first node server and the one or more storage units.

[0110] Optionally, the sending module 301 is further used to: send first information to the first node server, where the first information includes identification information of one or more storage units.

[0111] It should be understood that the device 300 of the embodiment of the present application can be implemented by an application-specific integrated circuit (ASIC) or a programmable logic device (PLD), and the PLD can be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof. It can also be implemented by software. Figure 2 The method of allocating storage space shown in the figure is implemented by software. Figure 2 When the method for allocating storage space is shown, the device 300 and its various modules may also be software modules.

[0112] The device 300 according to the embodiment of the present application may correspond to executing the method described in the embodiment of the present application, and the above and other operations and / or functions of each unit in the device 300 are to achieve Figure 2 For the sake of brevity, the corresponding processes executed by the first node server, the storage topology controller, and the storage module controller in the method shown are not repeated here.

[0113] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0114] An embodiment of the present application provides a computer program product. When the computer program product runs on a multi-node server system, the multi-node server system can implement the steps in the above-mentioned various method embodiments when executed.

[0115] The computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above and will not be repeated here.

[0116] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0117] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed among different functional units as needed, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0118] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying the computer program code to the node server, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0119] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0120] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0121] In the embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0122] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for allocating storage space, applied to a multi-node server system, characterized in that: The multi-node server system includes multiple node servers, a storage topology controller, a storage module controller, and a storage module. The method includes: The first node server sends a first request to the first storage topology controller, the first request is used to apply for storage space in the storage module from the storage topology controller, and the first node server is any node server in the multi-node server system; the first node server sends the original request to the storage controller, the storage controller converts the format of the original request, generates a first request that can be recognized by the machine, and then sends the first request to the storage topology controller; The storage topology controller determines one or more storage units from the storage module according to the first request, including: the storage topology controller determines, according to the first request, from the storage module a storage unit that has not established a communication channel with other node servers except the first node server in the multi-node server system, and determines one or more storage units from storage units that have not established a communication channel with other node servers except the first node server in the multi-node server system; the storage topology controller actively obtains communication status information and identification information of the storage unit in the storage module through the serial small computer system interface of the storage topology controller, and the communication status information of the storage unit is used to represent The opening status of the communication channel between the node server and the storage unit is shown. After the communication channel between the node server and the storage unit is opened, the node server uses the storage unit whose communication channel with the node server is opened. If the communication channel between the node server and the storage unit is not opened, the node server cannot use the storage unit whose communication channel with the node server is opened; the identification information of the storage unit is used to uniquely identify the storage unit in the storage module; the storage topology controller determines the storage unit in the storage module that has not established a communication channel with other node servers except the first node server in the multi-node server system through the communication status information of the storage unit and the identification information of the corresponding storage unit; The storage topology controller controls the storage module controller to open a communication channel between the node server and the one or more storage units according to the one or more storage units; The storage module controller reports the one or more storage units to the first node server; The first node server sends a request for redundancy protection to the storage controller, requesting the storage controller to back up and store the data in the storage unit, or the data in the storage unit and the check bit information of the data in the storage unit, during the period when the node server writes data to the storage unit; Before the storage topology controller controls the storage module controller to open a communication channel between the first node server and the one or more storage units, the method further includes: The storage topology controller sends a third request to the storage module controller through the SAS protocol, wherein the third request requests the storage module controller to release storage space corresponding to the one or more storage units; The storage module controller releases storage space corresponding to the one or more storage units according to the third request; The storage module controller reports the one or more storage units to the first node server, including: The storage module controller sends first information to the first node server, and the first information includes identification information of the one or more storage units; if the communication channel between a storage unit and any node server in the multi-node server system is not enabled, the storage module controller may mark the communication status information of the storage unit as 00; if the communication channel between a storage unit and the first node server is enabled, the storage module controller marks the communication status information of the storage unit as 01; if the communication channel between the storage unit and other node servers in the multi-node server system except the first node server is not enabled, the storage module controller marks the communication status information of the storage unit as 10.

2. The method according to claim 1, characterized in that The storage topology controller determines that a storage unit in the storage module has no communication channel established with other node servers in the multi-node server system except the first node server, including: The storage topology controller sends a second request to the storage module controller, wherein the second request requests the storage module controller to report storage units in the storage module that have not established communication channels with other node servers in the multi-node server system except the first node server; The storage topology controller determines, based on the report from the storage module controller, a storage unit in the storage module that has no communication channel established with other node servers in the multi-node server system except the first node server.

3. The method according to any one of claims 1 to 2, characterized in that The controlling the storage module controller to open a communication channel between the first node server and the one or more storage units includes: The storage topology controller sends a control signal to the storage module controller, where the control signal is used to control the storage module controller to open a communication channel between the first node server and the one or more storage units.

4. The method according to any one of claims 1 to 2, characterized in that The storage module controller is disposed in the storage module.

5. A multi-node server system, characterized in that: include: A plurality of node servers, a storage topology controller, a storage module controller and a storage module, wherein a first node server among the plurality of node servers is used to execute the method described in any one of claims 1 to 4, the storage topology controller is used to execute the method described in any one of claims 1 to 4, and the storage module controller is used to execute the method described in any one of claims 1 to 4.

6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.

7. A computer program product, when the computer program product is run on a multi-node server system, causes the multi-node server system to execute the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Server

    CN104657316A

  • A mechanism for disaggregated storage class memory over fabric

    CN109565523A