Out-of-band management-based operating system backup restoration method and device
By setting up special partitions and an independent out-of-band management system in the computing module, the backup and restoration of the operating system is realized, which solves the problem that traditional methods cannot recover when the server fails, improves the stability of the server and the speed of failure recovery, and is suitable for Domestic multi-unit servers in complex environments.
Patent Information
- Application Number
- CN202411014575.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-10-08
AI Technical Summary
Traditional operating system backup and restore methods rely on internal system resources, which may not work properly when a server fails and cannot achieve rapid recovery.
Using a method based on out-of-band management, by setting up special partitions and independent out-of-band management systems in the computing module, backup and restore operations are implemented to ensure that data can still be recovered in the event of server failure.
It achieves stable operation and rapid fault recovery of the server in complex environments, is independent of the main operating system, avoids backup and restore failures, and significantly shortens fault recovery time.
Smart Images

Figure CN118747136A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of computer servers, and in particular to a method and device for backing up and restoring an operating system based on out-of-band management. Background Art
[0002] With the widespread use of reinforced domestically produced multi-unit servers in complex environments (such as high temperature, extreme cold, dryness, humidity, transportation bumps, and high-altitude drops, etc.), higher requirements are placed on the environmental adaptability and fault recovery capabilities of servers. Although server designs are becoming increasingly robust, damage or failures cannot be completely avoided. Therefore, how to quickly repair and restore servers has become the focus of users.
[0003] Traditional operating system backup and restoration methods often rely on system internal resources and may not work properly when a server fails. To solve this problem, the present invention proposes an operating system backup and restoration method based on out-of-band management.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical elements or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0006] The embodiments of the present disclosure provide an operating system backup and restore method and system based on out-of-band management, which implements backup and restore operations through an out-of-band management system independent of the main operating system, ensuring that data can still be restored when a server fails.
[0007] In some embodiments, the method comprises: Setting a special partition in the computing module, including at least two partitions, the first partition is used to install the backup and restore program, and the second partition is used to install the operating system; Send a system switching command to the BIOS through the out-of-band management system to set the boot sequence of the computing modules so that the backup and restore system can be started at the next boot; The out-of-band management system controls the computing module to restart and enter the backup and restore system; After the backup and restore system is started, it receives instructions sent by the out-of-band management system and confirms the execution of the backup or restore operation; When performing a backup operation, the backup and restore system packages the image and stores it in an external storage medium; When performing a restore operation, the backup and restore system reads the image file from the external storage medium, performs the decompression and restore process, and completes the system restore.
[0008] Optionally, a first partition in the special partitions is allocated with a specific storage space for installing and running a backup and restore program.
[0009] Optionally, the out-of-band management system communicates with the BIOS via an IPMI protocol, and sends control instructions to switch startup items and restart the computing module.
[0010] Optionally, the backup and restore system communicates with the out-of-band management system via a UART serial port to receive backup or restore instructions and detect the startup status of the backup and restore system.
[0011] Optionally, the external storage medium is connected to the computing module via a USB interface for storing or reading the backup / restore image.
[0012] Optionally, the operating system backup and restoration device based on out-of-band management includes: The computing module is configured with special partitions, including at least two partitions, wherein the first partition is used for installing a backup and restore program, and the second partition is used for installing an operating system; Out-of-band management system, used to send control commands to the BIOS to set the boot sequence and communicate with the backup and restore system; External storage medium, connected to the computing module via a USB interface, used to store or read backup / restore images; The backup and restore system is installed in the first partition of the computing module and is used to receive instructions from the out-of-band management system and perform backup or restore operations.
[0013] Optionally, the space of the first partition is 20 to 50 GB.
[0014] The embodiment of the present disclosure provides an operating system backup and restoration method and device based on out-of-band management, which can achieve the following technical effects: The present invention sets a special partition in the computing module and uses an out-of-band management system to implement one-key backup and restore, so as to improve the stable operation capability and rapid fault recovery capability of the server in a complex environment.
[0015] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein: Figure 1 is a schematic diagram of the preparatory process of an embodiment of the present disclosure; Figure 2 It is a flowchart of the method implementation provided by the embodiment of the present disclosure. DETAILED DESCRIPTION
[0017] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0018] The terms "first", "second", etc. in the embodiments of the present disclosure are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so as to describe the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0019] Unless otherwise stated, the term "plurality" means two or more.
[0020] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0021] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0022] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0023] The present invention provides a method for quickly replacing and restoring a computing module of a domestically produced multi-unit server, in particular, an operating system backup and restoration method based on out-of-band management, which aims to improve the stable operation capability and rapid fault recovery capability of the server in a complex environment.
[0024] The method comprises: Pre-preparation: The BIOS of the computing module must support the remote setting of the boot order function so that the out-of-band management system can control the BIOS boot order and select the boot partition.
[0025] Divide the compute module hard disk into at least two partitions: one for installing the backup and restore program (about 50G space), and the other for installing the operating system (more operating system partitions can be added as needed).
[0026] Make sure that the storage media connected via USB can be used to store or read the backup / restore image.
[0027] Backup process: The out-of-band management system sends a system switching instruction to the BIOS through IPMI, sends a restart signal, and sets the next startup to start from the backup and restore system.
[0028] The out-of-band management system shuts down and restarts the computing module to enter the backup and restore system.
[0029] After the backup and restore system is started, it receives the backup instruction sent by the out-of-band management system and starts to perform the backup operation to back up the current operating system state to the USB storage medium.
[0030] Restore process: When a computing module fails and needs to be replaced or restored, the user sends a system switching command through the out-of-band management system again and sets it to start from the backup and restore system.
[0031] The out-of-band management system restarts the computing module to enter the backup and restore system.
[0032] After the backup and restore system is started, it receives the restore command sent by the out-of-band management system, reads the backup image from the USB storage medium, performs the restore operation, and restores the operating system to the state at the time of backup.
[0033] As an example, a specific implementation of this method is provided, and the steps are as follows: Out-of-band management uses the IPMI protocol to send control to the BIOS and set the boot item to switch from partition 1.
[0034] After the startup item is set successfully, the out-of-band management sends a restart command (reset) through the IPMI protocol to restart the computing module system and enter the backup and restore system.
[0035] The out-of-band management system communicates with the backup and restoration system through the UART serial port to detect whether the backup and restoration system has been successfully restarted and whether it has entered the backup and restoration system.
[0036] After receiving the backup and restore system startup success signal, the out-of-band management system sends the backup or restore instruction to the backup and restore system.
[0037] After receiving the backup and restore instruction, the backup and restore system analyzes the instruction to determine whether it is a backup or a restore, as well as the partition to be backed up and the partition to be restored.
[0038] The backup and restore system detects the connected USB storage medium and mounts it.
[0039] If it is a backup, the backup process is started, the image is packaged, and the image is stored in a USB storage medium to complete the backup.
[0040] If it is a restore, the restore process is started, the image file in the USB storage medium is read, the decompression and restore process is executed, and the system restore is completed.
[0041] For details on the serial port communication protocol, see Table 1-4.
[0042] Table 1 Serial port protocol (request + response) between out-of-band management system and backup and restore system
[0043] Table 2 System startup status detection
[0044] Table 3 System startup status detection
[0045] Table 4 System startup status detection
[0046] In some embodiments, the present disclosure provides an operating system backup and restoration device based on out-of-band management, comprising: The computing module is configured with special partitions, including at least two partitions, wherein the first partition is used for installing a backup and restore program, and the second partition is used for installing an operating system; Out-of-band management system, used to send control commands to the BIOS to set the boot sequence and communicate with the backup and restore system; External storage medium, connected to the computing module via a USB interface, used to store or read backup / restore images; The backup and restore system is installed in the first partition of the computing module and is used to receive instructions from the out-of-band management system and perform backup or restore operations.
[0047] Among them, the space of the first partition is 20~50G.
[0048] The present disclosure has the following beneficial effects: Improve fault recovery speed: This disclosure implements one-click backup and restore through an out-of-band management system, which greatly shortens the server fault recovery time.
[0049] Enhanced system stability: Backup and restore operations are performed independently of the main operating system, avoiding backup and restore failures caused by internal system failures.
[0050] Adapt to complex environments: Especially suitable for the stable operation and rapid recovery requirements of reinforced domestically produced multi-unit servers in complex and changing environments.
[0051] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the scope of protection. As used in the description in the text, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method or device including the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0052] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. The technicians may clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0053] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically separately, or two or more units may be integrated in one unit.
[0054] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. An operating system backup and restoration method based on out-of-band management, characterized in that: include: Setting a special partition in the computing module, including at least two partitions, the first partition is used to install the backup and restore program, and the second partition is used to install the operating system; Send a system switching command to the BIOS through the out-of-band management system to set the boot sequence of the computing modules so that the backup and restore system can be started at the next boot; The out-of-band management system controls the restart of the computing module and enters the backup and restore system; After the backup and restore system is started, it receives instructions sent by the out-of-band management system and confirms the execution of the backup or restore operation; When performing a backup operation, the backup and restore system packages the image and stores it in an external storage medium; When performing a restore operation, the backup and restore system reads the image file from the external storage medium, performs the decompression and restore process, and completes the system restore.
2. The method according to claim 1, characterized in that The first partition in the special partitions is allocated with a specific storage space for installing and running the backup and restore program.
3. The method according to claim 1, characterized in that The out-of-band management system communicates with the BIOS via the IPMI protocol, and sends control instructions to switch startup items and restart the computing module.
4. The method according to claim 1, characterized in that: The backup and restore system communicates with the out-of-band management system via a UART serial port to receive backup or restore instructions and detect the startup status of the backup and restore system.
5. The method according to claim 4, characterized in that The external storage medium is connected to the computing module via a USB interface and is used to store or read the backup / restore image.
6. An operating system backup and restoration device based on out-of-band management, characterized in that: include: The computing module is configured with special partitions, including at least two partitions, wherein the first partition is used for installing a backup and restore program, and the second partition is used for installing an operating system; Out-of-band management system, used to send control commands to the BIOS to set the boot sequence and communicate with the backup and restore system; External storage medium, connected to the computing module via a USB interface, used to store or read backup / restore images; The backup and restore system is installed in the first partition of the computing module and is used to receive instructions from the out-of-band management system and perform backup or restore operations.
7. The device according to claim 6, characterized in that The space of the first partition is 20 to 50G.
Citation Information
Cited By
Rapid system recovery method and system based on system mirror image management
CN120821614A
System fast recovery method and system based on system image management
CN120821614B
