A method, device, equipment and readable medium for storage node resource management

By reading memory specifications in the storage node and applying for small specifications as the benchmark application volume, the resource application problem in the memory resource management of the storage node is solved, ensuring that the resource application does not exceed the minimum specification, and the stability and rationality of resource management are achieved.

CN114816265BActive Publication Date: 2024-11-05INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210605714.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-30
Publication Date
2024-11-05
Estimated Expiration
2042-05-30

AI Technical Summary

Technical Problem

In the storage four-control topology, if the memory specifications of the two storage dual-control nodes or nodes are different, it will lead to memory resource management problems, especially when the minimum memory specification exceeds the minimum memory specification when applying for memory resources, it is difficult to effectively manage resources.

Method used

By reading the memory specifications of each node when the storage node is initialized and applying for volumes in the storage node based on nodes with small memory specifications, we can establish dual-controlled or four-controlled storage to ensure that the resource application does not exceed the minimum memory specification. Resource management issues.

Benefits of technology

It effectively solves the problem that storage nodes with different memory specifications exceed the minimum memory specification of storage nodes when applying for resources in multiple control topology, ensuring the stability and rationality of resource applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114816265B_ABST
    Figure CN114816265B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, equipment and readable medium for resource management of storage nodes with different memory specifications, the method comprising: in response to storage node initialization, reading the memory specification of each storage node; uploading the memory specification of each storage node to a management center with the node index of each storage node as an index; in response to receiving an instruction to establish dual-control storage, selecting two storage nodes and comparing the memory specifications of the two storage nodes; applying for a volume in the storage node based on the memory size of the smaller memory specification to establish dual-control storage. By using the solution of the present invention, it is possible to solve the resource application problem caused by exceeding the minimum memory specification of the storage node when applying for resources for a multi-control topology composed of storages with different memory specifications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and more specifically to a method, device, equipment and readable medium for managing storage node resources with different memory specifications. Background Art

[0002] Take the storage four-controller topology as an example. The four-controller topology contains four storage nodes. Two storage nodes form a storage dual-controller, and two storage dual-controllers form a storage four-controller. If the memory specifications of the two storage dual-controllers are different or the memory specifications of the two nodes of the storage dual-controller are different, if the memory specification of one of the storage dual-controllers or one of the nodes is exceeded when applying for memory resources, memory resource management problems will occur. Summary of the invention

[0003] In view of this, the purpose of an embodiment of the present invention is to propose a method, device, equipment and readable medium for resource management of storage nodes with different memory specifications. By using the technical solution of the present invention, it is possible to solve the resource application problem caused by exceeding the minimum memory specification of the storage node when different memory specifications storage components apply for resources in a multi-control topology.

[0004] Based on the above purpose, according to one aspect of the present invention, a method for managing storage node resources with different memory specifications is provided, comprising the following steps:

[0005] In response to the storage node initialization, reading a memory specification of each storage node;

[0006] Upload the memory specifications of each storage node to the management center using the node index of each storage node as the index;

[0007] In response to receiving an instruction to establish dual-control storage, two storage nodes are selected and memory specifications of the two storage nodes are compared;

[0008] Apply for a volume in the storage node based on the memory size of the smaller memory specification to establish dual-controller storage.

[0009] According to one embodiment of the present invention, it also includes:

[0010] Upload the memory specifications of each dual-controller storage to the management center using the iogroup index of the dual-controller storage.

[0011] According to one embodiment of the present invention, it also includes:

[0012] In response to receiving an instruction to establish a four-controller storage, two dual-controller storages are selected and memory specifications of the two dual-controller storages are compared;

[0013] Apply for volumes in dual-controller storage based on the memory size of the smaller memory specification to create quad-controller storage.

[0014] According to an embodiment of the present invention, applying for a volume in dual-controller storage to establish quad-controller storage based on the memory size of a smaller memory specification includes:

[0015] The four storage nodes of the two dual-control storages are mirrored to each other through optical fiber lines and interactive machines;

[0016] Create a volume of the same size on all four storage nodes, using the memory size of the smaller memory specification of the two dual-controller storages as the benchmark.

[0017] According to another aspect of the present invention, there is also provided a device for managing storage node resources with different memory specifications, the device comprising:

[0018] A reading module, the reading module is configured to read the memory specification of each storage node in response to the storage node initialization;

[0019] The storage module is configured to upload the memory specification of each storage node to the management center using the node index of each storage node as an index;

[0020] A comparison module, the comparison module is configured to select two storage nodes and compare memory specifications of the two storage nodes in response to receiving an instruction to establish dual-control storage;

[0021] Create a module. The module is configured to apply for a volume in a storage node based on the memory size of the smaller memory specification to establish dual-control storage.

[0022] According to one embodiment of the present invention, the storage module is further configured as:

[0023] Upload the memory specifications of each dual-controller storage to the management center using the iogroup index of the dual-controller storage.

[0024] According to one embodiment of the present invention, the creation module is further configured to:

[0025] In response to receiving an instruction to establish a four-controller storage, two dual-controller storages are selected and memory specifications of the two dual-controller storages are compared;

[0026] Apply for volumes in dual-controller storage based on the memory size of the smaller memory specification to create quad-controller storage.

[0027] According to one embodiment of the present invention, the creation module is further configured to:

[0028] The four storage nodes of the two dual-control storages are mirrored to each other through optical fiber lines and interactive machines;

[0029] Create a volume of the same size on all four storage nodes, using the memory size of the smaller memory specification of the two dual-controller storages as the benchmark.

[0030] Another aspect of the embodiments of the present invention further provides a computer device, the computer device comprising:

[0031] at least one processor; and

[0032] The memory stores computer instructions executable on the processor, and the instructions implement the steps of any one of the above methods when executed by the processor.

[0033] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any one of the above methods are implemented.

[0034] The present invention has the following beneficial technical effects: the method for resource management of storage nodes with different memory specifications provided by the embodiment of the present invention reads the memory specification of each storage node in response to the initialization of the storage node; uploads the memory specification of each storage node to the management center with the node index of each storage node as the index; in response to receiving an instruction to establish dual-control storage, selects two storage nodes and compares the memory specifications of the two storage nodes; and applies for a volume in the storage node based on the memory size of the smaller memory specification to establish dual-control storage. The technical solution can solve the resource application problem caused by exceeding the minimum memory specification of the storage node when applying for resources for a multi-control topology composed of storage with different memory specifications. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0036] Figure 1 A schematic flow chart of a method for managing storage node resources with different memory specifications according to an embodiment of the present invention;

[0037] Figure 2 A schematic diagram of a device for managing storage node resources with different memory specifications according to an embodiment of the present invention;

[0038] Figure 3 is a schematic diagram of a computer device according to an embodiment of the present invention;

[0039] Figure 4FIG. 1 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present invention. DETAILED DESCRIPTION

[0040] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0041] Based on the above purpose, a first aspect of an embodiment of the present invention provides an embodiment of a method for managing storage node resources with different memory specifications. Figure 1 Shown is a schematic flow chart of the method.

[0042] like Figure 1 As shown in , the method may include the following steps:

[0043] S1 reads the memory specification of each storage node in response to the storage node initialization. When each storage node is initialized, the memory specification of each storage node, that is, the size of the memory, is read.

[0044] S2 uploads the memory specifications of each storage node to the management center using the node index of each storage node as the index. Using the node index of each storage node as the index, the memory specifications of each storage node are saved to the resource management module. Taking four controllers as an example, the resource management module now saves the memory specifications of the four nodes using the node index as the index.

[0045] In response to receiving the instruction to establish dual-control storage, S3 selects two storage nodes and compares the memory specifications of the two storage nodes. The memory specifications of the two storage nodes are found using node index as the index. Because the two storage nodes of the dual-control storage are mirror images of each other, that is, a volume of the same size is created on each of the two storage nodes, when calculating the memory specifications of the dual-control storage, the minimum memory of the storage node shall prevail, that is, the memory size applied cannot exceed the minimum memory specification limit in the dual-control storage, so as to ensure that the dual-control storage does not exceed the memory specification limit when applying for memory.

[0046] S4 applies for volumes in the storage node based on the memory size of the smaller memory specification to establish dual-control storage.

[0047] The technical solution of the present invention can solve the resource application problem caused by exceeding the minimum memory specification of the storage node when applying for resources for a multi-control topology composed of storages with different memory specifications.

[0048] In a preferred embodiment of the present invention, it also includes:

[0049] Upload the memory specifications of each dual-controller storage to the management center using the iogroup index of the dual-controller storage as the index. Two storage nodes form a dual-controller storage, which also has its own index (iogroup index). The indexes of the two dual-controller storages of the four-controller storage are iogroup1 and iogroup2 respectively, so the memory specifications of each dual-controller storage need to be uploaded to the management center.

[0050] In a preferred embodiment of the present invention, it also includes:

[0051] In response to receiving an instruction to establish a four-controller storage, two dual-controller storages are selected and memory specifications of the two dual-controller storages are compared;

[0052] Apply for volumes in dual-controller storage based on the memory size of the smaller memory specification to create quad-controller storage.

[0053] In a preferred embodiment of the present invention, applying for a volume in a dual-controller storage to establish a quad-controller storage based on the memory size of a smaller memory specification includes:

[0054] The four storage nodes of the two dual-control storages are mirrored to each other through optical fiber lines and interactive machines;

[0055] A volume of the same size is created on each of the four storage nodes based on the memory size of the smaller memory specification of the two dual-controller storages. Since the memory specification of the dual-controller storage is the smallest memory value of the two storage nodes in the dual-controller storage, the memory specifications of the two dual-controller storages are compared, and the memory value with the smaller memory specification is the smallest memory value of the four storage nodes. When using the four-controller storage to create a volume of a certain capacity, the optimal io read-write node of the volume can also be specified. When the resource management module receives a request to create a volume, it first finds the iogroup index of the dual-controller storage based on the node index of the storage node, and then finds the memory specification of the storage node based on the node index. Because the two nodes of the dual-controller storage are mirror images of each other, that is, a volume of the same size is created on each of the two storage nodes, when calculating the memory specification of the dual-controller storage, the minimum memory of the storage node shall prevail, that is, the memory size applied for cannot exceed the smaller memory specification limit in the dual-controller storage, so as to ensure that the dual-controller storage node does not exceed the memory specification limit when applying for memory. The four storage nodes of the four-controller storage are mirrored to each other through optical fiber lines and interactive machines. When creating a volume, a volume of the same size is created on the four storage nodes. The resource management module receives the request to create a volume, finds the iogroup index of the dual-controller storage according to the node index, selects the minimum memory specification of the storage node, finds the peer iogroup index according to the iogroup index, selects the minimum memory specification of the peer dual-controller storage, compares the two and takes the minimum memory value, which is the memory specification of the four-controller storage. When creating a volume, the memory specification limit cannot be exceeded.

[0056] The technical solution of the present invention can solve the resource application problem caused by exceeding the minimum memory specification of the storage node when applying for resources for a multi-control topology composed of storages with different memory specifications.

[0057] It should be noted that a person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be implemented by instructing the relevant hardware through a computer program, and the above-mentioned program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc. The above-mentioned computer program embodiment can achieve the same or similar effect as any of the above-mentioned method embodiments corresponding thereto.

[0058] In addition, the method disclosed in the embodiment of the present invention can also be implemented as a computer program executed by a CPU, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the CPU, the above functions defined in the method disclosed in the embodiment of the present invention are performed.

[0059] Based on the above purpose, a second aspect of an embodiment of the present invention provides a device for managing storage node resources with different memory specifications, such as Figure 2 As shown, the device 200 includes:

[0060] A reading module, the reading module is configured to read the memory specification of each storage node in response to the storage node initialization;

[0061] The storage module is configured to upload the memory specification of each storage node to the management center using the node index of each storage node as an index;

[0062] A comparison module, the comparison module is configured to select two storage nodes and compare memory specifications of the two storage nodes in response to receiving an instruction to establish dual-control storage;

[0063] Create a module. The module is configured to apply for a volume in a storage node based on the memory size of the smaller memory specification to establish dual-control storage.

[0064] In a preferred embodiment of the present invention, the storage module is further configured as:

[0065] Upload the memory specifications of each dual-controller storage to the management center using the iogroup index of the dual-controller storage.

[0066] In a preferred embodiment of the present invention, the creation module is further configured to:

[0067] In response to receiving an instruction to establish a four-controller storage, two dual-controller storages are selected and memory specifications of the two dual-controller storages are compared;

[0068] Apply for volumes in dual-controller storage based on the memory size of the smaller memory specification to create quad-controller storage.

[0069] In a preferred embodiment of the present invention, the creation module is further configured to:

[0070] The four storage nodes of the two dual-control storages are mirrored to each other through optical fiber lines and interactive machines;

[0071] Create a volume of the same size on all four storage nodes, using the memory size of the smaller memory specification of the two dual-controller storages as the benchmark.

[0072] Based on the above purpose, a third aspect of an embodiment of the present invention provides a computer device. Figure 3 FIG. 2 is a schematic diagram of an embodiment of a computer device provided by the present invention. Figure 3 As shown, the embodiment of the present invention includes the following apparatus: at least one processor S21; and a memory S22, the memory S22 stores computer instructions S23 that can be run on the processor, and when the instructions are executed by the processor, the following method is implemented:

[0073] In response to the storage node initialization, reading the memory specification of each storage node;

[0074] Upload the memory specifications of each storage node to the management center using the node index of each storage node as the index;

[0075] In response to receiving an instruction to establish dual-control storage, two storage nodes are selected and memory specifications of the two storage nodes are compared;

[0076] Apply for a volume in the storage node based on the memory size of the smaller memory specification to establish dual-controller storage.

[0077] In a preferred embodiment of the present invention, it also includes:

[0078] Upload the memory specifications of each dual-controller storage to the management center using the iogroup index of the dual-controller storage.

[0079] In a preferred embodiment of the present invention, it also includes:

[0080] In response to receiving an instruction to establish a four-controller storage, two dual-controller storages are selected and memory specifications of the two dual-controller storages are compared;

[0081] Apply for volumes in dual-controller storage based on the memory size of the smaller memory specification to create quad-controller storage.

[0082] In a preferred embodiment of the present invention, applying for a volume in a dual-controller storage to establish a quad-controller storage based on the memory size of a smaller memory specification includes:

[0083] The four storage nodes of the two dual-control storages are mirrored to each other through optical fiber lines and interactive machines;

[0084] Create a volume of the same size on each of the four storage nodes, using the memory size of the smaller memory specification of the two dual-controller storages as the benchmark.

[0085] Based on the above purpose, a fourth aspect of an embodiment of the present invention provides a computer-readable storage medium. Figure 4 FIG. 2 is a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. Figure 4As shown, the computer readable storage medium S31 stores a computer program S32 that performs the following method when executed by the processor:

[0086] In response to the storage node initialization, reading a memory specification of each storage node;

[0087] Upload the memory specifications of each storage node to the management center using the node index of each storage node as the index;

[0088] In response to receiving an instruction to establish dual-control storage, two storage nodes are selected and memory specifications of the two storage nodes are compared;

[0089] Apply for a volume in the storage node based on the memory size of the smaller memory specification to establish dual-controller storage.

[0090] In a preferred embodiment of the present invention, it also includes:

[0091] Upload the memory specifications of each dual-controller storage to the management center using the iogroup index of the dual-controller storage.

[0092] In a preferred embodiment of the present invention, it also includes:

[0093] In response to receiving an instruction to establish a four-controller storage, two dual-controller storages are selected and memory specifications of the two dual-controller storages are compared;

[0094] Apply for volumes in dual-controller storage based on the memory size of the smaller memory specification to create quad-controller storage.

[0095] In a preferred embodiment of the present invention, applying for a volume in a dual-controller storage to establish a quad-controller storage based on the memory size of a smaller memory specification includes:

[0096] The four storage nodes of the two dual-control storages are mirrored to each other through optical fiber lines and interactive machines;

[0097] Create a volume of the same size on all four storage nodes, using the memory size of the smaller memory specification of the two dual-controller storages as the benchmark.

[0098] In addition, the method disclosed in the embodiment of the present invention can also be implemented as a computer program executed by a processor, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the above functions defined in the method disclosed in the embodiment of the present invention are performed.

[0099] In addition, the above method steps and system units may also be implemented using a controller and a computer-readable storage medium for storing a computer program that enables the controller to implement the above steps or unit functions.

[0100] It will also be appreciated by those skilled in the art that various exemplary logic blocks, modules, circuits and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given to the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.

[0101] In one or more exemplary designs, the function can be implemented in hardware, software, firmware or any combination thereof. If implemented in software, the function can be stored on a computer-readable medium or transmitted by a computer-readable medium as one or more instructions or codes. Computer-readable media include computer storage media and communication media, and the communication media include any media that helps to transfer a computer program from one location to another. The storage medium can be any available medium that can be accessed by a general or special computer. As an example and not limiting, the computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, disk storage devices or other magnetic storage devices, or any other medium that can be used to carry or store the required program code in the form of an instruction or data structure and can be accessed by a general or special computer or a general or special processor. In addition, any connection can be appropriately referred to as a computer-readable medium. For example, if a coaxial cable, optical fiber cable, twisted pair, digital subscriber line (DSL) or wireless technologies such as infrared, radio and microwaves are used to send software from a website, server or other remote source, the above-mentioned coaxial cable, optical fiber cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwaves are all included in the definition of the medium. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, Blu-ray disc, wherein disks usually reproduce data magnetically, while optical discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.

[0102] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope disclosed in the embodiments of the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.

[0103] It should be understood that, as used herein, the singular forms "a", "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations including one or more of the associated listed items.

[0104] The serial numbers of the embodiments disclosed in the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0105] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0106] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the embodiments of the present invention as above, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.

Claims

1. A method for managing storage node resources with different memory specifications, characterized in that: The following steps are involved: In response to the storage node initialization, reading a memory specification of each storage node; Upload the memory specifications of each storage node to the management center using the node index of each storage node as the index; In response to receiving an instruction to establish dual-control storage, two storage nodes are selected and memory specifications of the two storage nodes are compared; Apply for a volume in the storage node based on the memory size of the smaller memory specification to establish dual-controller storage; In response to receiving an instruction to establish a four-controller storage, two dual-controller storages are selected and memory specifications of the two dual-controller storages are compared; Apply for volumes in dual-controller storage based on the memory size of the smaller memory specification to create quad-controller storage; Applying for volumes in dual-controller storage to establish quad-controller storage based on the memory size of the smaller memory specification includes: The four storage nodes of the two dual-control storages are mirrored to each other through optical fiber lines and interactive machines; Create a volume of the same size on all four storage nodes, using the memory size of the smaller memory specification of the two dual-controller storages as the benchmark.

2. The method according to claim 1, characterized in that Also includes: Upload the memory specifications of each dual-controller storage to the management center using the iogroup index of the dual-controller storage.

3. A device for managing storage node resources with different memory specifications, characterized in that: The device comprises: A reading module, wherein the reading module is configured to read the memory specification of each storage node in response to the storage node initialization; A storage module, wherein the storage module is configured to upload the memory specification of each storage node to the management center using the node index of each storage node as an index; A comparison module, wherein the comparison module is configured to select two storage nodes and compare memory specifications of the two storage nodes in response to receiving an instruction to establish dual-control storage; A creation module, wherein the creation module is configured to apply for a volume in a storage node based on a memory size with a smaller memory specification to establish a dual-control storage; The creation module is also configured as: In response to receiving an instruction to establish a four-controller storage, two dual-controller storages are selected and memory specifications of the two dual-controller storages are compared; Apply for volumes in dual-controller storage based on the memory size of the smaller memory specification to create quad-controller storage; The creation module is also configured as: The four storage nodes of the two dual-control storages are mirrored to each other through optical fiber lines and interactive machines; Create a volume of the same size on all four storage nodes, using the memory size of the smaller memory specification of the two dual-controller storages as the benchmark.

4. The device according to claim 3, characterized in that The storage module is also configured as: Upload the memory specifications of each dual-controller storage to the management center using the iogroup index of the dual-controller storage.

5. A computer device, characterized in that: include: at least one processor; as well as A memory, wherein the memory stores computer instructions executable on the processor, wherein the instructions, when executed by the processor, implement the steps of the method according to any one of claims 1 to 2.

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