Method, system and device for restoring operating system of hyper-converged integrated system and medium

By backing up the operating system image and metadata information in the hyperconverged appliance, the problem of quickly restoring the operating system after a physical node failure is solved, avoiding increased hardware costs and complex reinstallation processes, and achieving rapid recovery and simplified cluster configuration.

CN117170935BActive Publication Date: 2026-11-27INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311049524.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-18
Publication Date
2026-11-27
Estimated Expiration
2043-08-18

AI Technical Summary

Technical Problem

In hyperconverged infrastructure, when a physical node operating system failure causes a system crash, existing technologies require increased hardware costs to ensure the robustness of the operating system, and the process of reinstalling the operating system is complex and time-consuming.

Method used

The operating system image of the physical node is backed up to the cache disk of other physical nodes, and the metadata information is backed up to the data disk of other physical nodes. The image can be quickly located and the operating system restored using the backed-up metadata information.

Benefits of technology

It enables the rapid restoration of the operating system of physical nodes without increasing hardware costs, reducing the tedious configuration and data synchronization work of the cluster after reinstalling the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117170935B_ABST
    Figure CN117170935B_ABST
Patent Text Reader

Abstract

The application provides an operation system recovery method, system and device of a super-converged integrated machine and a medium. The operation system recovery method, system and device of the super-converged integrated machine can place an operation system image of a physical node into a cache disk of another physical node without increasing physical hardware, and store metadata information including a UUID, cluster configuration information and physical node configuration information of the physical node into a data disk of the other physical node. When the operation system of the physical node has a problem, the metadata information is used to quickly locate the image and quickly recover the operation system, and the physical node is quickly added to the cluster, so that the system is prevented from being reinstalled, and the problem of complicated configuration of the cluster and a large amount of data synchronization due to change of the metadata information after the system is reinstalled is avoided. It can be seen that the application can quickly recover the operation system of the physical node of the super-converged integrated machine without increasing cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and more specifically to a method, system, device, and medium for restoring the operating system of a hyper-converged infrastructure machine. Background Technology

[0002] A hyperconverged appliance is a solution that integrates computing, storage, networking, and virtualization into a single device. A hyperconverged appliance is a cluster of physical server nodes that provides virtual machine services. Traditional data centers consist of multiple independent servers, storage devices, and network devices, requiring complex configuration and management. Hyperconverged appliances, on the other hand, integrate these functions into a single device, enabling resource sharing and management through software-defined methods. This reduces the number of physical devices and simplifies deployment and maintenance.

[0003] To save costs, each physical node in a hyperconverged appliance currently is sometimes configured with only one operating system disk. When the operating system of a physical node fails, the physical node hosting that operating system will become down and unavailable. In this case, the usual practice is to reinstall the hyperconverged operating system on the physical node. Reinstalling the operating system changes the universally unique identifier (UUID) of the physical node. When adding this node to the cluster, the cluster management program will recognize it as a new node, requiring the steps of adding a new node to the hyperconverged appliance cluster, and even a large amount of data synchronization. This often requires professional technical personnel and a significant amount of time to complete the relevant operations.

[0004] To address the operating system restoration issue, related technologies often involve adding physical node hardware, specifically an operating system disk and a RAID card. These two disks are configured in a RAID 1 configuration to ensure the robustness of the physical node's operating system. However, this significantly increases the purchase cost of the hyperconverged appliance cluster. Therefore, finding a simple and quick way to restore the operating system of a hyperconverged appliance's physical nodes without increasing costs has become a pressing problem. Summary of the Invention

[0005] To address the above issues, the present invention aims to provide a method, system, device, and medium for restoring the operating system of a hyperconverged appliance. By backing up the operating system image of a physical node to the cache disk of other physical nodes and backing up the metadata information of the physical node to the data disk of other physical nodes, when a problem occurs in the operating system of a physical node, the backup image can be quickly located by using the backed-up metadata information, and the operating system can be quickly restored, thereby achieving rapid restoration of the operating system of the physical node of the hyperconverged appliance.

[0006] To achieve the above objectives, the present invention employs the following technical solution:

[0007] In a first aspect, this invention discloses a method for restoring the operating system of a hyper-converged infrastructure, comprising:

[0008] Perform an image backup of the operating system of any physical node in the hyperconverged appliance and mark that node as the node to be backed up;

[0009] Based on the operating system image capacity, select one physical node from the other physical nodes in the hyper-converged appliance as the system backup node for the node to be backed up.

[0010] The operating system image is stored in the cache disk of the system backup node;

[0011] Select one physical node from the other physical nodes in the hyperconverged appliance as the data backup node for the node to be backed up;

[0012] Scan the metadata information of the node to be backed up and store the metadata information in the data disk of the data backup node;

[0013] Abnormal physical nodes are identified by scanning the metadata information and operating system health status information of physical nodes in the hyperconverged appliance in real time.

[0014] Operating system recovery is performed using the system backup node and data backup node of the abnormal physical node.

[0015] Furthermore, the step of selecting a physical node from the other physical nodes in the hyper-converged appliance as the system backup node for the node to be backed up, based on the operating system image capacity, includes:

[0016] Record the image capacity of the operating system, select a physical node from the other physical nodes in the hyper-converged appliance, and obtain the remaining capacity of each cache disk on the physical node by reading the disk list on the physical node.

[0017] Determine if there is a cache disk on the physical node with a remaining capacity greater than the operating system image capacity. If so, record the corresponding cache disk information and designate the physical node as the system backup node for the node to be backed up. If not, continue to determine if there is a cache disk on other physical nodes with a remaining capacity greater than the operating system image capacity.

[0018] If no cache disk on any physical node has a remaining capacity greater than the operating system image capacity, a prompt message will be issued and the process will exit directly.

[0019] Furthermore, storing the operating system image in the cache disk of the system backup node includes:

[0020] Create a new image library on the cache disk based on the recorded cache disk information, store the operating system image in the image library, and record the image storage location.

[0021] Furthermore, the data backup node of the node to be backed up is any physical node in the hyperconverged appliance other than the node to be backed up and its system backup node.

[0022] Furthermore, the step of scanning the metadata information of the node to be backed up and storing the metadata information in the data disk of the data backup node includes:

[0023] Scan the configuration information of the node to be backed up, its universally unique identifier in the cluster, the storage location information of the operating system image, the PN number of the operating system disk, and the metadata corresponding to the business data of the cache disk and data disk, and record the above information in the metadata table;

[0024] Store the metadata table on any data disk of the data backup node.

[0025] Furthermore, the method of identifying abnormal physical nodes by real-time scanning of the metadata information and operating system health status information of physical nodes in the hyperconverged appliance includes:

[0026] Real-time scanning of metadata information of physical nodes in the hyperconverged appliance;

[0027] Compare the metadata information of the physical node with the metadata information backed up on the data backup node of the physical node;

[0028] When the metadata information is different, it is determined that the metadata information of the cluster has changed, and the health status information of the operating system disk hardware is read in real time by the baseboard management controller connected to the physical node.

[0029] When a damage alarm message is received from the operating system disk hardware, it indicates that the system disk of that physical node is damaged.

[0030] When an alarm message indicating that the operating system disk is unavailable is received, it indicates that the operating system of the physical node is abnormal.

[0031] Furthermore, the operating system recovery using the system backup node and data backup node of the abnormal physical node includes:

[0032] Read the PN number of the operating system disk of the abnormal physical node and the PN number of the operating system disk backed up in the corresponding data backup node, and perform a consistency comparison.

[0033] If the two are inconsistent, execute the operating system recovery process;

[0034] When the two are consistent, check the configuration library information in the cluster and the metadata information table in the data backup node of the abnormal physical node. If the information is consistent, it means that the operating system information is consistent before and after, and there is no need to reinstall the operating system and reconfigure the cluster. If they are inconsistent, execute the operating system recovery process.

[0035] The specific operating system recovery process is as follows:

[0036] Read the storage location information of the backed-up operating system image from the metadata table of the data backup node, and pull the operating system image to the system disk of the abnormal physical node through the intelligent platform management interface protocol;

[0037] Read the configuration information of the backed-up physical node and its universally unique identifier in the cluster from the metadata table of the data backup node, import them into the cluster configuration library, and start the pulled image on the abnormal physical node.

[0038] After starting the image, it reads the existing metadata configuration information in the cluster configuration library and uses the metadata table of the data backup node to synchronize the business data corresponding to the metadata.

[0039] Once the business data synchronization is complete, the latest metadata information of the cluster will be synchronized and updated to the metadata table of the data backup node.

[0040] Secondly, this invention also discloses an operating system restoration system for a hyper-converged infrastructure, comprising:

[0041] The image backup unit is configured to perform image backup of the operating system of any physical node in the hyperconverged appliance and record that node as the node to be backed up.

[0042] The first node selection unit is configured to select a physical node from other physical nodes in the hyper-converged appliance based on the operating system image capacity, as the system backup node of the node to be backed up.

[0043] The system backup unit is configured to store the operating system image in the cache disk of the system backup node;

[0044] The second node selection unit is configured to select a physical node from other physical nodes in the hyperconverged appliance as the data backup node for the node to be backed up.

[0045] The data backup unit is configured to scan the metadata information of the node to be backed up and store the metadata information in the data disk of the data backup node;

[0046] The anomaly detection unit is configured to identify abnormal physical nodes by scanning the metadata information and operating system health status information of the physical nodes in the hyperconverged appliance in real time.

[0047] The recovery unit is configured to perform operating system recovery using the system backup node and data backup node of the faulty physical node.

[0048] Thirdly, the present invention also discloses an operating system restoration device for a hyper-converged integrated machine, comprising:

[0049] The storage unit is used to store the operating system restore program for the hyperconverged appliance.

[0050] The processor is configured to implement the steps of the operating system restoration method for the hyperconverged appliance as described above when executing the operating system restoration program of the hyperconverged appliance.

[0051] Fourthly, the present invention also discloses a readable storage medium storing an operating system restoration program for a hyperconverged appliance, wherein when the operating system restoration program for the hyperconverged appliance is executed by a processor, it implements the steps of the operating system restoration method for the hyperconverged appliance as described in any of the above-mentioned methods.

[0052] Compared with existing technologies, the advantages of this invention are as follows: This invention discloses a method, system, device, and medium for restoring the operating system of a hyperconverged appliance. Without increasing physical hardware, it can restore the operating system image of a physical node to the cache disk of other physical nodes, and store metadata information of the physical node, including its UUID, cluster configuration information, and the physical node's configuration information, on the data disk of other physical nodes. When a physical node's operating system encounters a problem, the image can be quickly located using the backed-up metadata information, and the operating system can be quickly restored. The physical node can then be quickly added back to the cluster, avoiding the need for system reinstallation and the cumbersome cluster configuration and large-scale data synchronization required after system reinstallation due to changes in metadata information. This invention enables rapid restoration of the operating system of a hyperconverged appliance's physical nodes without increasing costs.

[0053] Therefore, it is evident that the present invention has outstanding substantive features and significant progress compared with the prior art, and the beneficial effects of its implementation are also obvious. Attached Figure Description

[0054] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0055] Figure 1 This is a flowchart of a method for restoring the operating system of a hyper-converged all-in-one machine according to a specific embodiment of the present invention.

[0056] Figure 2 This is a flowchart of the operating system recovery process according to a specific embodiment of the present invention.

[0057] Figure 3 This is a system structure diagram of an operating system restoration system for a hyper-converged all-in-one machine according to a specific embodiment of the present invention.

[0058] Figure 4 This is a schematic diagram of the operating system restoration device of a hyper-converged all-in-one machine according to a specific embodiment of the present invention.

[0059] In the diagram, 1 is the mirror backup unit; 2 is the first node selection unit; 3 is the second node selection unit; 4 is the system backup unit; 5 is the data backup unit; 6 is the anomaly identification unit; 7 is the recovery unit; 101 is the processor; 102 is the memory; 103 is the input interface; 104 is the output interface; 105 is the communication unit; 106 is the keyboard; 107 is the monitor; and 108 is the mouse. Detailed Implementation

[0060] The core of this invention is to provide a method for restoring the operating system of a hyperconverged appliance. In related technologies, the main approach is to add physical node hardware to solve the problem of restoring the operating system, that is, to add an operating system disk and a RAID card, and to ensure the robustness of the physical node operating system by using two operating system disks in RAID1. However, this will greatly increase the purchase cost of the hyperconverged appliance cluster.

[0061] The operating system restoration method for hyperconverged infrastructure provided by this invention first backs up the operating system image of a physical node to the cache disk of other physical nodes in the hyperconverged infrastructure, and backs up the metadata information of the physical node to the data disk of other physical nodes in the hyperconverged infrastructure. When a problem is detected in the operating system of a physical node, the physical node with the backed-up system image and metadata is used to quickly locate the backup image based on the backed-up metadata information, and then quickly restores the operating system. Therefore, this invention achieves rapid restoration of the operating system of a hyperconverged infrastructure physical node without adding physical hardware.

[0062] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.

[0063] The key terms used in this invention will be explained below.

[0064] Cache disk: To improve the read and write performance of the hyperconverged appliance, each physical node has a disk for caching data.

[0065] Data disk: Each physical node has a disk for storing data in order to store the data of the hyperconverged appliance.

[0066] System disk: In a hyperconverged appliance, the system disk is the foundation for the operation of each physical node. If the system disk has a problem, the cache disk and data disk on that physical node will be unable to provide services.

[0067] To enable those skilled in the art to better understand the present invention, the invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are merely some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0068] See Figure 1 As shown, this embodiment provides a method for restoring the operating system of a hyperconverged appliance, including the following steps:

[0069] S1: Perform an image backup of the operating system of any physical node in the hyperconverged appliance and mark that node as the node to be backed up.

[0070] Specifically, the operating system of any physical node in the hyperconverged appliance is backed up by image, and the image capacity is recorded. The current physical node is then designated as the node to be backed up.

[0071] S2: Based on the operating system image capacity, select one physical node from the other physical nodes in the hyper-converged appliance as the system backup node for the node to be backed up.

[0072] In a specific implementation, firstly, a physical node is selected from the other physical nodes in the hyperconverged appliance, and the remaining capacity of each cache disk on the physical node is obtained by reading the disk list on that physical node.

[0073] Then, it is determined whether there is a cache disk on the physical node with a remaining capacity greater than the operating system image capacity. If so, the corresponding cache disk information is recorded, and the physical node is designated as the system backup node for the node to be backed up; if not, it continues to determine whether there is a cache disk with a remaining capacity greater than the operating system image capacity on other physical nodes, until a suitable physical node is found, on which at least one cache disk is available to store the operating system image file.

[0074] If no cache disk on any physical node has a remaining capacity greater than the operating system image capacity, it means that the backup location of the system image of the node to be backed up cannot be found in the hyperconverged appliance. In this case, a prompt message will be issued and the method will exit directly.

[0075] S3: Store the operating system image in the cache disk of the system backup node.

[0076] In a specific implementation, an image library is first created on the cache disk based on the recorded cache disk information. Then, the operating system image is stored in this image library, and the image storage location is recorded.

[0077] S4: Select one physical node from the other physical nodes in the hyperconverged appliance as the data backup node for the node to be backed up.

[0078] It should be noted that, in this method, to ensure the stability of system restoration, different physical nodes are selected from the other physical nodes in the hyperconverged appliance as the data backup node and system backup node for the node to be backed up. Of course, system restoration can also be achieved by selecting the same physical node from the other physical nodes in the hyperconverged appliance as both the data backup node and system backup node for the node to be backed up.

[0079] S5: Scan the metadata information of the node to be backed up and store the metadata information in the data disk of the data backup node.

[0080] In a specific implementation, the cluster metadata information of the hyperconverged appliance is first scanned. The content read includes the configuration information of the node to be backed up in the cluster, the UUID in the cluster, the storage location information of the operating system image, the PN number of the operating system disk, and other metadata information (mainly the metadata corresponding to the business data of the cache disk and data disk). This information is then recorded in the metadata table.

[0081] Then, create a new virtual machine on the corresponding data backup node's data disk, place the metadata table in the virtual machine, and record the storage location.

[0082] S6: Identifies abnormal physical nodes by scanning the metadata information and operating system health status information of physical nodes in the hyperconverged appliance in real time.

[0083] In a specific implementation, firstly, the metadata information of the physical nodes in the hyperconverged appliance is scanned in real time. Then, the metadata information of the physical node is compared with the metadata information backed up on the data backup node of that physical node. When the metadata information is different, it is determined that the cluster's metadata information has changed. The system then connects to the BMC of that physical node via IPMI or Redfish protocol to read the health status information of the operating system disk hardware in real time, and connects to the operating system of that physical node via SNMP protocol to read the health status of the operating system in real time.

[0084] If no alarm information is received from the operating system disk hardware or operating system of the physical node at this time, the changed metadata information will be directly synchronized and updated to the metadata table of the corresponding data backup node virtual machine.

[0085] If a hardware damage alarm message is read at this time, it indicates that the system disk of the physical node is damaged, and a prompt to replace the system disk is given. After the system disk is manually replaced, proceed to the next step.

[0086] If an alarm message indicating that the system is unavailable is received from the operating system disk at this point, it means that the system disk hardware of the physical node is not damaged, but the operating system is abnormal. Proceed directly to the next step.

[0087] S7: Perform operating system recovery using the system backup node and data backup node of the abnormal physical node.

[0088] In a specific implementation, firstly, the PN number of the operating system disk of the abnormal physical node and the PN number of the operating system disk backed up in the corresponding data backup node are read and a consistency comparison is performed.

[0089] If the two PN numbers are inconsistent, it indicates that the system disk of the physical node has been replaced, and the operating system recovery process should be executed. If the two PN numbers are consistent, check the configuration library information in the cluster and the metadata information table in the data backup node of the abnormal physical node. If the information is consistent, it means that the operating system information is consistent before and after, and there is no need to reinstall the operating system and reconfigure the cluster; if they are inconsistent, the operating system recovery process should be executed.

[0090] Specifically, such as Figure 2 As shown, the operating system recovery process specifically includes the following steps:

[0091] S71: Reads the storage location information of the backed-up operating system image from the metadata table of the data backup node, and pulls the operating system image to the system disk of the abnormal physical node through the intelligent platform management interface protocol.

[0092] As an example, first read the storage location information of the backed-up operating system image from the metadata table of the data backup node, and then pull the backed-up operating system image from the system backup node's image library to the system disk of the abnormal physical node via IPMI or Redfish protocol.

[0093] S72: Read the configuration information of the backed-up physical node and its universally unique identifier in the cluster from the metadata table of the data backup node, import it into the cluster configuration library, and start the pulled image on the abnormal physical node.

[0094] As an example, the configuration information and UUID information of the physical nodes in the cluster backed up in the metadata table of the data backup node virtual machine are read and imported into the cluster configuration library. Then, the pulled image is started on the abnormal physical node.

[0095] S73: After starting the image, it reads the existing metadata configuration information in the cluster configuration library and uses the metadata table of the data backup node to synchronize the business data corresponding to the metadata.

[0096] As an example, after starting the image, the existing metadata configuration information in the cluster configuration library is read and compared with the information in the metadata information table of the physical node before the system disk was replaced. Only the changed parts of other metadata information are synchronized on the physical node to the corresponding business data.

[0097] When performing data synchronization, the system first reads the data index of the changed part in other metadata, finds the business data in other physical nodes through the index, and copies the business data to the data disk of that physical node.

[0098] S74: Once the business data synchronization is complete, the latest metadata information of the cluster will be synchronized and updated to the metadata table of the data backup node.

[0099] As an example, to better illustrate the implementation process of the above method, based on the above embodiments, this embodiment also discloses a method for restoring the operating system of a hyperconverged appliance. In this method, the cluster of the hyperconverged appliance includes physical node A, physical node B, and physical node C.

[0100] Taking the need for operation recovery of physical node A as an example, the specific invention steps are as follows:

[0101] Step 1: Assuming the operating system on physical node A is functioning correctly, mirror the operating system of physical node A and record the image size. Simultaneously, read the disk lists on other physical nodes, locate the cache disk, and determine its remaining capacity. For example, if the currently accessed physical node is physical node B, and the remaining capacity of its cache disk is less than the size of the operating system image of physical node A, continue searching for other cache disks on physical node B. If the remaining capacity of other cache disks is also less than the size of the operating system image of physical node A, then physical node B cannot create a new image library to store the operating system image of physical node A, and it needs to read other physical nodes. If none of the nodes meet the requirement, an error message indicating that no backup location can be found is displayed, and the process ends. Assuming that the cache disk on physical node B meets the requirement that its remaining capacity is greater than the size of the operating system image disk on physical node A, then create a new image library on physical node B, place the operating system image of physical node A into this image library, and record the image's storage location.

[0102] Step 2: After the image of physical node A is placed in the image library of physical node B, the metadata information of the hyperconverged appliance cluster is scanned first. The content read includes the configuration information of physical node A in the cluster, the UUID of physical node A in the cluster, the storage location information of the operating system image of physical node A, the PN number of the operating system disk of physical node A, and other metadata information, including metadata corresponding to the business data of the cache disk and data disk. Then, this information is recorded in the metadata table.

[0103] In a node other than physical nodes A and B, let's say physical node C, create a new virtual machine on physical node C, place the metadata table in the virtual machine on physical node C, and record the storage location. Real-time scan the metadata information of the cluster and physical node A in the hyperconverged appliance, compare it with the metadata table information in physical node C. When the metadata information is different, it is determined that the cluster's metadata information has changed. Furthermore, connect to the BMC of physical node A via IPMI or Redfish protocol to read the health status of the operating system disk hardware of physical node A in real time, and connect to the operating system of physical node A via SNMP protocol to read the health status of the operating system in real time.

[0104] If no alarm is detected from the operating system disk hardware or operating system of physical node A, the changed metadata information will be synchronously updated to the metadata table of the virtual machine on physical node C.

[0105] Step 3: If the operating system disk hardware of physical node A issues a damage alarm, a prompt will be given to replace the operating system disk. After manually replacing the hard drive, the operating system quick recovery process will begin. If the operating system disk hardware is not damaged, but the operating system issues an alarm and is determined to be unusable, a prompt will be given that the operating system needs to be recovered, and the operating system quick recovery process will begin.

[0106] Step 4: Read the PN number of the operating system disk of physical node A and compare it with the PN number of the metadata table information in the virtual machine of physical node C.

[0107] Depending on the comparison results, there are two scenarios:

[0108] (1) If the two PN numbers are different, it indicates that physical node A has had its operating system disk replaced. The operating system fast recovery process is as follows:

[0109] Read the image location information of physical node A from the metadata table of physical node C, and pull the operating system image of physical node A from the image repository of physical node B via IPMI or Redfish protocol to the newly replaced hard drive of physical node A. Read the configuration information and UUID information of physical node A in the cluster from the metadata table of the virtual machine of physical node C and import it into the cluster configuration repository. Then, start the pulled image on physical node A. After starting the image, read the existing metadata configuration information in the cluster configuration repository and compare it with the information in the metadata information table of physical node C before the operating system disk was replaced. Only for the changed parts of other metadata information, synchronize the corresponding business data on physical node A (i.e., read the data index of the changed parts of other metadata, find the business data in other physical nodes through the index, and copy the business data to the data disk of physical node A). After the business data synchronization is completed, update the latest metadata information of the cluster to the metadata table of physical node C.

[0110] (2) If the two PN numbers are the same and the operating system disk of physical node A no longer reports hardware alarms, it means that the operating system hard disk hardware of physical node A has not been replaced and the problem has been fixed. At this time, check the configuration library information in the cluster and the metadata information table in the virtual machine of physical node C. If the information is consistent, it means that the operating system information is consistent before and after, and there is no need to reinstall the operating system and reconfigure the cluster. If they are inconsistent, it means that there is a problem with the operating system of physical node A and a fast recovery is required. Then execute the fast recovery process of the operating system in (1) above.

[0111] This invention provides a method for restoring the operating system of a hyperconverged appliance. By backing up the operating system image of a physical node to the cache disk of another physical node and backing up the metadata information of the physical node to the data disk of another physical node, when the operating system of a physical node has a problem, the backup image can be quickly located by using the backed-up metadata information, and the operating system can be quickly restored, thereby realizing the rapid restoration of the operating system of the physical node of the hyperconverged appliance.

[0112] See Figure 3 As shown, the present invention also discloses an operating system restoration system for a hyper-converged integrated machine, comprising: an image backup unit 1, a first node selection unit 2, a system backup unit 3, a second node selection unit 4, a data backup unit 5, an anomaly identification unit 6, and a recovery unit 7.

[0113] Image backup unit 1 is configured to perform image backup of the operating system of any physical node in the hyperconverged appliance and record that node as the node to be backed up.

[0114] The first node selection unit 2 is configured to select a physical node from other physical nodes in the hyper-converged appliance based on the operating system image capacity, as the system backup node for the node to be backed up.

[0115] In a specific implementation, the first node selection unit 2 is specifically used for:

[0116] Record the image capacity of the operating system, select a physical node from the other physical nodes in the hyperconverged appliance, and obtain the remaining capacity of each cache disk on the physical node by reading the disk list on that physical node.

[0117] Determine if there is a cache disk on the physical node with a remaining capacity greater than the operating system image capacity. If so, record the corresponding cache disk information and designate the physical node as the system backup node for the node to be backed up. If not, continue to determine if there is a cache disk on other physical nodes with a remaining capacity greater than the operating system image capacity.

[0118] If no cache disk on any physical node has a remaining capacity greater than the operating system image capacity, a prompt message will be issued and the process will exit directly.

[0119] System backup unit 3 is configured to store the operating system image in the cache disk of the system backup node.

[0120] In a specific implementation, the system backup unit 3 is specifically used to: create a new image library on the cache disk according to the recorded cache disk information, store the operating system image in the image library, and record the image storage location.

[0121] The second node selection unit 4 is configured to select a physical node from other physical nodes in the hyperconverged appliance as the data backup node for the node to be backed up.

[0122] Data backup unit 5 is configured to scan the metadata information of the node to be backed up and store the metadata information in the data disk of the data backup node.

[0123] In a specific implementation, the data backup unit 5 is specifically used to: scan the configuration information of the node to be backed up, the universally unique identifier in the cluster, the storage location information of the operating system image, the PN number of the operating system disk, and the metadata corresponding to the business data of the cache disk and the data disk, and record the above information in the metadata table; and store the metadata table in any data disk of the data backup node.

[0124] The anomaly identification unit 6 is configured to identify abnormal physical nodes by scanning the metadata information and operating system health status information of the physical nodes in the hyperconverged appliance in real time.

[0125] In a specific implementation, the anomaly detection unit 6 is specifically used for:

[0126] Real-time scanning of metadata information of physical nodes in the hyperconverged appliance.

[0127] Compare the metadata information of the physical node with the metadata information backed up on the data backup node of the same physical node.

[0128] When the metadata information is different, it is determined that the metadata information of the cluster has changed, and the health status information of the operating system disk hardware is read in real time by the baseboard management controller connected to the physical node.

[0129] When a damage warning message is received from the operating system disk hardware, it indicates that the system disk of that physical node is damaged.

[0130] When an alarm message indicating that the operating system disk is unavailable is received, it indicates that the operating system of the physical node is abnormal.

[0131] Recovery unit 7 is configured to perform operating system recovery using the system backup node and data backup node of the abnormal physical node.

[0132] In a specific implementation, the recovery unit 7 is specifically used to: read the PN number of the operating system disk of the abnormal physical node and the PN number of the operating system disk backed up in the corresponding data backup node, and perform a consistency comparison.

[0133] If the two are inconsistent, execute the operating system recovery process. If they are consistent, check the configuration library information in the cluster and the metadata information table in the data backup node of the abnormal physical node. If the information is consistent, it means that the operating system information is consistent before and after, and there is no need to reinstall the operating system and reconfigure the cluster; if they are inconsistent, execute the operating system recovery process.

[0134] The specific operating system recovery process is as follows:

[0135] Read the storage location information of the backed-up operating system image from the metadata table of the data backup node, and pull the operating system image to the system disk of the abnormal physical node through the intelligent platform management interface protocol.

[0136] Read the configuration information of the backed-up physical node from the metadata table of the data backup node, the universally unique identifier in the cluster, import it into the cluster configuration library, and start the pulled image on the abnormal physical node.

[0137] After starting the image, it reads the existing metadata configuration information in the cluster configuration library and uses the metadata table of the data backup node to synchronize the business data corresponding to the metadata.

[0138] Once the business data synchronization is complete, the latest metadata information of the cluster will be synchronized and updated to the metadata table of the data backup node.

[0139] Therefore, this invention provides an operating system restoration system for a hyper-converged infrastructure appliance. Without adding physical hardware, it places the operating system image of a physical node in the cache disk of other physical nodes and stores metadata information of that physical node, including its UUID, cluster configuration information, and the physical node's configuration information, in the data disk of those other physical nodes. When a physical node's operating system encounters a problem, the backed-up metadata information allows for rapid image location and quick operating system recovery. The physical node is then quickly added back to the cluster, avoiding the need for system reinstallation and the cumbersome cluster configuration and large-scale data synchronization required after a system reinstall due to changes in metadata.

[0140] See Figure 4 As shown, the present invention also discloses an operating system restoration device for a hyper-converged infrastructure, including a processor 101 and a memory 102; wherein, when the processor 101 executes the operating system restoration program for the hyper-converged infrastructure stored in the memory, it performs the following steps:

[0141] 1. Perform an image backup of the operating system of any physical node in the hyperconverged appliance, and mark that node as the node to be backed up.

[0142] 2. Based on the operating system image capacity, select one physical node from the other physical nodes in the hyperconverged appliance as the system backup node for the node to be backed up.

[0143] 3. Store the operating system image in the cache disk of the system backup node.

[0144] 4. Select one physical node from the other physical nodes in the hyperconverged appliance as the data backup node for the node to be backed up.

[0145] 5. Scan the metadata information of the node to be backed up and store the metadata information in the data disk of the data backup node.

[0146] 6. By scanning the metadata information and operating system health status information of physical nodes in the hyperconverged appliance in real time, abnormal physical nodes can be identified.

[0147] 7. Use the system backup node and data backup node of the abnormal physical node to restore the operating system.

[0148] The operating system restoration device for the hyperconverged all-in-one machine provided in this embodiment may include, but is not limited to, smartphones, tablets, laptops, or desktop computers.

[0149] The processor 101 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 101 may be implemented using at least one hardware form selected from Digital Signal Processor (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 101 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 101 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 101 may also include an Artificial Intelligence (AI) processor, which handles computational operations related to machine learning.

[0150] The memory 102 may include one or more computer-readable storage media, which may be non-transitory. The memory 102 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 102 is used to store at least the following computer program, which, after being loaded and executed by the processor 101, is capable of implementing the relevant steps of the operating system restoration method for the hyper-converged appliance disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 102 may also include the operating system and data, and the storage method may be temporary or permanent storage. The operating system may include Windows, Unix, Linux, etc. The data may include, but is not limited to, the data involved in the operating system restoration method for the hyper-converged appliance described above.

[0151] Furthermore, the operating system restoration device of the hyper-converged all-in-one machine in this embodiment may also include:

[0152] Input interface 103 is used to acquire the operating system restore program of the hyperconverged appliance imported from the outside and save the acquired operating system restore program of the hyperconverged appliance to the memory 102. It can also be used to acquire various instructions and parameters transmitted by external terminal devices and transmit them to the processor 101 so that the processor 101 can perform corresponding processing using the aforementioned instructions and parameters. In this embodiment, the input interface 103 may specifically include, but is not limited to, a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk read interface, etc.

[0153] The output interface 104 is used to output various data generated by the processor 101 to a connected terminal device, so that other terminal devices connected to the output interface can obtain the various data generated by the processor 101. In this embodiment, the output interface 104 may specifically include, but is not limited to, a USB interface, a serial interface, etc.

[0154] The communication unit 105 is used to establish a remote communication connection between the server-running business optimization configuration device and the external server, so that the operating system restoration device of the hyper-converged appliance can mount the image file to the external server. In this embodiment, the communication unit 105 may specifically include, but is not limited to, a remote communication unit based on wireless communication technology or wired communication technology.

[0155] Keyboard 106 is used to acquire various parameter data or commands input by the user through real-time keystrokes.

[0156] Display 107 is used to display information related to the restoration process of the operating system running the hyperconverged appliance in real time.

[0157] Mouse 108 can be used to assist users in inputting data and simplifying user operations.

[0158] This invention also discloses a readable storage medium, which includes random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable hard disk, CD-ROM, or any other form of storage medium known in the art. The readable storage medium stores an operating system restore program for a hyper-converged infrastructure, which, when executed by a processor, performs the following steps:

[0159] 1. Perform an image backup of the operating system of any physical node in the hyperconverged appliance and mark that node as the node to be backed up.

[0160] 2. Based on the operating system image capacity, select one physical node from the other physical nodes in the hyperconverged appliance as the system backup node for the node to be backed up.

[0161] 3. Store the operating system image in the cache disk of the system backup node.

[0162] 4. Select one physical node from the other physical nodes in the hyperconverged appliance as the data backup node for the node to be backed up.

[0163] 5. Scan the metadata information of the node to be backed up and store the metadata information in the data disk of the data backup node.

[0164] 6. By scanning the metadata information and operating system health status information of physical nodes in the hyperconverged appliance in real time, abnormal physical nodes can be identified.

[0165] 7. Use the system backup node and data backup node of the abnormal physical node to restore the operating system.

[0166] In summary, this invention enables the rapid restoration of the operating system of the physical nodes of a hyperconverged infrastructure without increasing costs.

[0167] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. The methods disclosed in the embodiments are described simply because they correspond to the systems disclosed in the embodiments; relevant details can be found in the method section.

[0168] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0169] In the embodiments provided by this invention, it should be understood that the disclosed systems, methods, and approaches can be implemented in other ways. For example, the system embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between systems or units may be electrical, mechanical, or other forms.

[0170] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0171] In addition, the functional modules in the various embodiments of the present invention can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit.

[0172] Similarly, in the various embodiments of the present invention, each processing unit can be integrated into a functional module, or each processing unit can exist physically, or two or more processing units can be integrated into a functional module.

[0173] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0174] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0175] The operating system restoration method, system, device, and readable storage medium of the hyperconverged integrated machine provided by this invention have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this invention. The descriptions of the embodiments above are only for the purpose of helping to understand the method and core ideas of this invention. It should be noted that those skilled in the art can make several improvements and modifications to this invention without departing from the principles of this invention, and these improvements and modifications also fall within the protection scope of the claims of this invention.

Claims

1. A method for restoring the operating system of a hyperconverged infrastructure, characterized in that, include: Perform an image backup of the operating system of any physical node in the hyperconverged appliance and mark that node as the node to be backed up; Based on the operating system image capacity, select one physical node from the other physical nodes in the hyper-converged appliance as the system backup node for the node to be backed up. The operating system image is stored in the cache disk of the system backup node; Select one physical node from the other physical nodes in the hyperconverged appliance as the data backup node for the node to be backed up; Scan the metadata information of the node to be backed up and store the metadata information in the data disk of the data backup node. This includes scanning the configuration information of the node to be backed up, the universally unique identifier in the cluster, the storage location information of the operating system image, the PN number of the operating system disk, and recording the metadata corresponding to the business data of the cache disk and data disk. Record the above information in the metadata table; store the metadata table in any data disk of the data backup node; create a virtual machine on the corresponding data backup node data disk, place the metadata table in the virtual machine, and record the storage location. By scanning the metadata and operating system health status of physical nodes in the hyperconverged appliance in real time, abnormal physical nodes are identified. This includes: real-time scanning of the metadata of physical nodes in the hyperconverged appliance; comparing the metadata of the physical node with the metadata backed up on the data backup node of the physical node; when the metadata is different, it is determined that the metadata of the cluster has changed, and the BMC of the physical node is connected to in real time via IPMI or Redfish protocol to read the health status information of the operating system disk hardware, and the operating system of the physical node is connected to in real time via SNMP protocol to read the health status of the operating system; when the operating system disk hardware issues a damage alarm message, it indicates that the system disk of the physical node is damaged; when the operating system disk issues a system unavailable alarm message, it indicates that the operating system of the physical node is abnormal; if no alarm message is read from the operating system disk hardware or the operating system of the physical node, the changed metadata information is directly synchronized and updated to the metadata table of the corresponding data backup node virtual machine. Operating system recovery is performed using the system backup node and data backup node of the faulty physical node, including: Read the PN number of the operating system disk of the abnormal physical node and the PN number of the operating system disk backed up in the corresponding data backup node, and perform a consistency comparison; if the two are inconsistent, execute the operating system recovery process; if the two are consistent, check the configuration library information in the cluster and the metadata information table in the data backup node of the abnormal physical node. If the information is consistent, it means that the operating system information is consistent before and after, and there is no need to reinstall the operating system and reconfigure the cluster; if they are inconsistent, execute the operating system recovery process. The specific operating system recovery process is as follows: Read the storage location information of the backed-up operating system image from the metadata table of the data backup node, and pull the operating system image to the system disk of the abnormal physical node through the intelligent platform management interface protocol; Read the configuration information of the backed-up physical node and its universally unique identifier in the cluster from the metadata table of the data backup node, import them into the cluster configuration library, and start the pulled image on the abnormal physical node. After starting the image, it reads the existing metadata configuration information in the cluster configuration library and uses the metadata table of the data backup node to synchronize the business data corresponding to the metadata. When synchronizing data, it first reads the data index of the changed part in other metadata, finds the business data in other physical nodes through the index, and copies the business data to the data disk of that physical node. Once the business data synchronization is complete, the latest metadata information of the cluster will be synchronized and updated to the metadata table of the data backup node.

2. The operating system restoration method for the hyper-converged infrastructure according to claim 1, characterized in that, The step of selecting a physical node from the other physical nodes in the hyper-converged appliance as the system backup node for the node to be backed up, based on the operating system image capacity, includes: Record the image capacity of the operating system, select a physical node from the other physical nodes in the hyper-converged appliance, and obtain the remaining capacity of each cache disk on the physical node by reading the disk list on the physical node. Determine if there is a cache disk on the physical node with a remaining capacity greater than the operating system image capacity. If so, record the corresponding cache disk information and designate the physical node as the system backup node for the node to be backed up. If not, continue to determine if there is a cache disk on other physical nodes with a remaining capacity greater than the operating system image capacity. If no cache disk on any physical node has a remaining capacity greater than the operating system image capacity, a prompt message will be issued and the process will exit directly.

3. The operating system restoration method for the hyper-converged integrated machine according to claim 2, characterized in that, The step of storing the operating system image in the cache disk of the system backup node includes: Create a new image library on the cache disk based on the recorded cache disk information, store the operating system image in the image library, and record the image storage location.

4. The operating system restoration method for the hyper-converged infrastructure according to claim 1, characterized in that, The data backup node of the node to be backed up is any physical node in the hyperconverged appliance other than the node to be backed up and its system backup node.

5. An operating system restoration system for a hyper-converged infrastructure, characterized in that, The system employs the operating system restoration method for the hyper-converged all-in-one machine as described in any one of claims 1 to 4; The system includes: The image backup unit is configured to perform image backup of the operating system of any physical node in the hyperconverged appliance and record that node as the node to be backed up. The first node selection unit is configured to select a physical node from other physical nodes in the hyper-converged appliance based on the operating system image capacity, as the system backup node of the node to be backed up. The system backup unit is configured to store the operating system image in the cache disk of the system backup node; The second node selection unit is configured to select a physical node from other physical nodes in the hyperconverged appliance as the data backup node for the node to be backed up. The data backup unit is configured to scan the metadata information of the node to be backed up and store the metadata information in the data disk of the data backup node; The anomaly detection unit is configured to identify abnormal physical nodes by scanning the metadata information and operating system health status information of the physical nodes in the hyperconverged appliance in real time. The recovery unit is configured to perform operating system recovery using the system backup node and data backup node of the faulty physical node.

6. An operating system restoration device for a hyper-converged infrastructure, characterized in that, include: The memory is used to store the operating system restore program of the hyperconverged appliance; The processor, when executing the operating system restore program of the hyperconverged appliance, implements the steps of the operating system restore method for the hyperconverged appliance as described in any one of claims 1 to 4.

7. A readable storage medium, characterized in that: The readable storage medium stores an operating system restore program for the hyperconverged appliance. When the operating system restore program for the hyperconverged appliance is executed by the processor, it implements the steps of the operating system restore method for the hyperconverged appliance as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Backup recovery method and device based on K1 minicomputer operating system

    CN111309520A

  • Data recovery method and system of hyper-converged host, electronic equipment and storage medium

    CN114048074A