CN111382006B - Recovery method, device, equipment and medium of operating system - Google Patents

Recovery method, device, equipment and medium of operating system Download PDF

Info

Publication number
CN111382006B
CN111382006B CN201811615966.0A CN201811615966A CN111382006B CN 111382006 B CN111382006 B CN 111382006B CN 201811615966 A CN201811615966 A CN 201811615966A CN 111382006 B CN111382006 B CN 111382006B
Authority
CN
China
Prior art keywords
emergency
host
operating system
systems
disk
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811615966.0A
Other languages
Chinese (zh)
Other versions
CN111382006A (en
Inventor
李露璐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Group Sichuan Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Sichuan Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Group Sichuan Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201811615966.0A priority Critical patent/CN111382006B/en
Publication of CN111382006A publication Critical patent/CN111382006A/en
Application granted granted Critical
Publication of CN111382006B publication Critical patent/CN111382006B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1479Generic software techniques for error detection or fault masking
    • G06F11/1482Generic software techniques for error detection or fault masking by means of middleware or OS functionality

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Hardware Redundancy (AREA)

Abstract

The embodiment of the invention provides a method, a device, equipment and a medium for recovering an operating system. The method comprises the following steps: backing up an operating system of a host computer to be backed up to obtain a plurality of operating system backups; when the host to be backed up fails, the multiple operating system backups are turned over to form multiple emergency systems; and mapping the plurality of emergency systems to the host to be recovered, so that the host to be recovered is started through one of the plurality of emergency systems when being started. By utilizing the scheme of the embodiment of the invention, the emergency system is mapped to the host to be recovered, so that the host to be recovered can be directly started through the emergency system without data transmission recovery, and the time for recovering the system is greatly saved.

Description

Recovery method, device, equipment and medium of operating system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a medium for recovering an operating system.
Background
In the prior art, backup and recovery of an operating system, including protection of configuration information and installed program files in the operating system, are generally divided into two ways:
first, file-based backup restore: and backing up the files, namely backing up the phase files in the operating system integrally according to a directory structure.
When the system is damaged due to failure and needs to be recovered, firstly, reinstalling operating system software which is consistent with the original operating system platform and version on the hardware host under the condition of preparing the required hardware host, and completing operations such as patch installation; and then corresponding backup software is deployed, the data to be backed up of the original operating system is read through the backup software, each file in the backed up operating system is restored to the reinstalled operating system through a network link, and finally the restoration of the whole system is completed.
Secondly, back-up based on bare metal is recovered: when backing up the operating system, collecting the information related to the operating system, such as partition information of a disk, configuration information of a network and the like, and establishing a boot image of a configurable network.
When the system fault damage needs to be recovered, under the condition of preparing the required hardware host, the host is booted and configured with a network by the boot mirror image, and then the backup software writes the information related to the backed up operating system: and partitioning the magnetic disk of the new host, simultaneously recovering all backed-up files, and automatically realizing the whole process by using backup software.
The following describes the disadvantages of the two existing backup protection methods for operating systems, which are as follows:
first, file-based backup recovery requires multiple reboots (operating system installation, patch installation, parameter modification production, application installation, etc.) during recovery, requires cooperation of multiple personnel and field attendance, has a complex operating process, and brings a large deviation to the overall system, such as the version of the system or program, the specific value of the parameter setting, etc.
Secondly, based on bare metal's backup recovery, for based on file's backup recovery, saved some steps and time, avoided the deviation that a large amount of manual operations brought, but the recovery based on bare metal is higher to backup operation maintenance requirement, generally need establish a guide mirror image to every different physical hardware and operating system, need utilize the guide mirror image of pertinence to accomplish the recovery when recovering, and the guide mirror image needs constantly to be updated moreover, otherwise can influence the speed of recovery and the state after recovering when the trouble appears.
In summary, in the two os recovery modes, it is still necessary to complete the os installation and complete the file recovery in the os in a manual or automatic mode, and it is still necessary to transmit recovery data, and the recovery time of the system is more time-consuming and depends on the link bandwidth of the data recovery transmission.
Disclosure of Invention
The embodiment of the invention provides a recovery method, a recovery device, equipment and a medium of an operating system.
In a first aspect, an embodiment of the present invention provides a method for recovering an operating system, where the method includes:
backing up an operating system of a host to be backed up to obtain a plurality of operating system backups;
when the host to be backed up fails, the plurality of operating system backups are turned over to form a plurality of emergency systems;
mapping the plurality of emergency systems to a host to be recovered, so that the host to be recovered is started through one of the plurality of emergency systems when being started.
According to the operating system recovery method of the embodiment of the present invention, each of the plurality of operating system backups includes at least one of:
boot information, network configuration, disk partitions, and content files.
According to the method for restoring the operating system, the step of turning over the operating system backups comprises the following steps:
directly converting the guide information backed up by the plurality of operating systems into the guide information of the plurality of emergency systems;
transferring the network configuration revision backed up by the plurality of operating systems to the network configuration of the plurality of emergency systems;
modifying and overturning each disk partition backed up by the operating systems into each disk partition of the emergency systems;
and directly turning the content files backed up by the operating systems into the content files of the emergency systems.
According to the method for restoring an operating system in an embodiment of the present invention, the modifying and converting the network configuration of the multiple operating system backups into the network configuration of the multiple emergency systems includes:
and based on user requirements, the MAC addresses, the IP addresses or the gateway corrections of the network configuration backed up by the operating systems are turned into the MAC addresses, the IP addresses or the gateways of the network configuration of the emergency systems.
According to the method for restoring an operating system in an embodiment of the present invention, the modifying and flipping each disk partition backed up by the multiple operating systems to each disk partition of the multiple emergency systems includes:
and based on the used space size and the total space size of each disk partition of the multiple operating system backups, modifying and overturning each disk partition of the multiple operating system backups into each disk partition of the multiple emergency systems, so that the space size of each disk partition of the multiple emergency systems is larger than the used space size of each disk partition of the multiple operating system backups and smaller than the total space size of each disk partition of the multiple operating system backups.
According to the method for restoring an operating system in an embodiment of the present invention, mapping the plurality of emergency systems to a host to be restored includes:
and mapping the plurality of emergency systems to the host to be recovered through the switching network based on a read-only mode.
According to the method for recovering an operating system in an embodiment of the present invention, the starting by one of the plurality of emergency systems includes:
and when one of the emergency systems is started, creating a recovery log in a local disk of the host to be recovered, wherein the recovery log is used for storing newly written data.
The method for recovering the operating system according to the embodiment of the invention further comprises the following steps:
and solidifying one of the plurality of emergency systems into a local disk of the host to be recovered through reverse cloning.
According to the method for recovering an operating system in an embodiment of the present invention, the solidifying one of the plurality of emergency systems to the local disk of the host to be recovered by reverse cloning includes:
directly cloning the boot information of one of the plurality of emergency systems into the boot information of the local disk of the host to be recovered;
the network configuration of one of the emergency systems is revised and cloned to be the network configuration of the local disk of the host to be recovered;
the disk partition of one of the emergency systems is corrected and cloned into the disk partition of the local disk of the host to be recovered;
and directly cloning the content file of one of the emergency systems into the content file of the local disk of the host to be recovered.
The method for recovering an operating system according to the embodiment of the present invention further includes:
restarting the host to be recovered, disconnecting the mapping between the host to be recovered and the emergency system, and selecting the local disk of the host to be recovered for guiding so as to realize recovery.
In a second aspect, an embodiment of the present invention provides an apparatus for recovering an operating system, where the apparatus includes:
the operating system backup module is used for backing up the operating system of the host computer to be backed up to obtain a plurality of operating system backups;
the emergency system is used for turning over the operating system backups to form a plurality of emergency systems when the host to be backed up fails;
the mapping module is used for mapping the plurality of emergency systems to the host to be recovered, so that the host to be recovered is started through one of the plurality of emergency systems when being started.
According to the recovery apparatus of an operating system described in the embodiment of the present invention, each of the plurality of operating system backups includes at least one of:
boot information, network configuration, disk partitions, and content files.
According to the recovery device of the operating system, the emergency system is specifically used for:
directly converting the boot information backed up by the operating systems into the boot information of the emergency systems;
transferring the network configuration revision backed up by the plurality of operating systems to the network configuration of the plurality of emergency systems;
modifying and overturning each disk partition backed up by the operating systems into each disk partition of the emergency systems;
and directly turning the content files backed up by the operating systems into the content files of the emergency systems.
According to the recovery device of the operating system, the emergency system is specifically used for:
and based on user requirements, the MAC addresses, the IP addresses or the gateway corrections of the network configuration of the plurality of operating system backups are turned into the MAC addresses, the IP addresses or the gateways of the network configuration of the plurality of emergency systems.
According to the recovery device of the operating system in the embodiment of the invention, the emergency system is specifically used for:
and based on the used space size and the total space size of each disk partition of the multiple operating system backups, modifying and overturning each disk partition of the multiple operating system backups into each disk partition of the multiple emergency systems, so that the space size of each disk partition of the multiple emergency systems is larger than the used space size of each disk partition of the multiple operating system backups and smaller than the total space size of each disk partition of the multiple operating system backups.
According to the recovery apparatus of an operating system in the embodiment of the present invention, the mapping module is specifically configured to:
and mapping the plurality of emergency systems to the host to be recovered through a switching network based on a read-only mode.
According to the recovery apparatus of the operating system in the embodiment of the present invention, the starting module is specifically configured to:
and when one of the emergency systems is started, creating a recovery log in a local disk of the host to be recovered, wherein the recovery log is used for storing newly written data.
The recovery device of the operating system according to the embodiment of the present invention further includes:
and the curing module is used for curing one of the emergency systems to the local disk of the host to be recovered through reverse cloning.
According to the recovery device of the operating system in the embodiment of the present invention, the curing module is specifically configured to:
directly cloning the boot information of one of the plurality of emergency systems into the boot information of the local disk of the host to be recovered;
the network configuration of one of the emergency systems is revised and cloned to be the network configuration of the local disk of the host to be recovered;
modifying and cloning the disk partition of one of the emergency systems into the disk partition of the local disk of the host to be recovered;
and directly cloning the content file of one of the emergency systems into the content file of the local disk of the host to be restored.
The recovery device of the operating system according to the embodiment of the present invention further includes:
and the guiding module is used for restarting the host to be recovered, disconnecting the mapping between the host to be recovered and the emergency system, and selecting the local disk of the host to be recovered to guide so as to realize the recovery.
An embodiment of the present invention provides a recovery device for an operating system, including: at least one processor, at least one memory, and computer program instructions stored in the memory, which when executed by the processor, implement the method of the first aspect of the embodiments described above.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which computer program instructions are stored, which, when executed by a processor, implement the method of the first aspect in the foregoing embodiments.
According to the recovery method, the recovery device, the recovery equipment and the recovery medium of the operating system, provided by the embodiment of the invention, the emergency system is mapped to the host to be recovered, so that the host to be recovered can be directly started through the emergency system without data transmission recovery, and the recovery time of the system is greatly saved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and for those skilled in the art, other drawings may be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart illustrating a recovery method for an operating system according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a recovery apparatus of an operating system according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a recovery method for an operating system according to another embodiment of the present invention;
FIG. 4 is a diagram illustrating an operating system backup roll-over according to an embodiment of the present invention;
FIG. 5 shows a schematic diagram of an emergency system mapping of an embodiment of the invention;
FIG. 6 shows a schematic diagram of the emergency system initiation of an embodiment of the present invention;
FIG. 7 is a schematic diagram of reverse clone curing of an emergency system to a local disk according to an embodiment of the present invention;
fig. 8 is a schematic diagram illustrating a hardware configuration of a recovery device of an operating system according to an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
Referring to fig. 1, fig. 1 is a flow chart illustrating a recovery method 100 of an operating system according to an embodiment of the present invention, where the method includes:
s110, backing up the operating system of the host computer to be backed up to obtain a plurality of operating system backups;
s120, when the host to be backed up fails, turning over the multiple operating system backups to form multiple emergency systems;
s130, mapping the multiple emergency systems to the host to be recovered, so that the host to be recovered is started through one of the multiple emergency systems when being started.
According to the scheme provided by the embodiment of the invention, the operating systems of the backup host are backed up, the multiple operating system backups are turned over to form multiple emergency systems, and then the emergency systems are mapped to the host to be recovered, so that the host to be recovered can be directly started through the emergency systems without data transmission recovery, and the time for recovering the system is greatly saved.
Referring to fig. 2, fig. 2 is a schematic structural diagram illustrating a recovery apparatus 200 for an operating system according to an embodiment of the present invention, where the apparatus includes:
an operating system backup module 210, configured to backup an operating system of a host to be backed up, and obtain multiple operating system backups;
the emergency system 220 is used for turning over the backups of the operating systems to form a plurality of emergency systems when the host to be backed up fails;
the mapping module 230 is configured to map the multiple emergency systems to the host to be recovered, so that the host to be recovered is started through one of the multiple emergency systems when the host to be recovered is started.
According to the scheme provided by the embodiment of the invention, the operating systems of the backup host are backed up, the operating systems are turned over to form a plurality of emergency systems, and then the emergency systems are mapped to the host to be recovered, so that the host to be recovered can be directly started through the emergency systems without data transmission recovery, and the time for recovering the system is greatly saved.
The quick recovery method for the operating system, provided by the embodiment of the invention, can be used for turning the operating system backup reserved in the emergency recovery platform into the emergency system after the operating system is backed up to the emergency recovery platform, directly mapping the emergency system to the host needing to be recovered as a system disk of the recovery host, supporting the recovery host to be directly started, avoiding the data transmission process, completing the recovery start of the system at the fastest speed and in the simplest steps, and solidifying the emergency system into a local disk of the recovery host by utilizing the reverse cloning of the disk after the recovery host is started.
In order to implement the method of the embodiment of the present invention, the storage space of the emergency recovery platform is pre-divided into two parts, namely an emergency boot area and a recovery reserved area, and the following description is provided for the emergency boot area and the recovery reserved area, specifically as follows:
the emergency starting area is used as an emergency system when the operating system fails, data recovery transmission is not needed, the host is directly started, and recovery preparation time is shortened;
and the recovery reserved area is used for reserving the historical copy of the operating system so as to select the required historical version to be turned over and then be started in an emergency under the fault condition.
All the operating system backups are written into the recovery reserved area, when the historical data needs to be recovered, the operating system backups are turned over from the recovery reserved area to the emergency starting area, and the operating system backups can be solidified from the emergency recovery platform to a local disk of the recovery host machine through reverse cloning after being started, so that subsequent starting is facilitated.
Referring to fig. 3, a fast reply scheme of an operating system according to an embodiment of the present invention is described in detail, and fig. 3 shows a schematic diagram of a recovery method 300 of an operating system according to another embodiment of the present invention, which is specifically as follows:
the first step, executing the backup of the complete system;
during backup, complete backup is performed on the relevant configuration information of the operating system, wherein the configuration information mainly includes boot information, disk partitions, content files and the like, so as to form a complete operating system backup, and each component of the configuration information is introduced as follows:
and (3) guiding information: for operating system hard disk boot up, transfers system control to the operating system specified and registered in the partition table (different operating systems have different boot information).
Network configuration: the configuration of the necessary network ports includes Media Access Control (MAC) addresses, IP information, and the like. So as to facilitate the network mapping start in the subsequent recovery and the connection verification after the recovery.
Partitioning a disk: the distribution of the partitions or the file systems on the operating system disk is responsible for explaining which partitions or file systems exist in the operating system, and the size and the use condition of each partition or file system.
Content file: what contents are contained in each partition or file system in the operating system and backed up.
The above 4 parts of contents form a complete operating system backup, the operating system backup is stored in a recovery reserved area of the emergency recovery platform for storage, and a general repeated data deletion technology and the like can be adopted in the storage process.
Referring to table 1, table 1 shows an exemplary table of operating system backup components:
TABLE 1
Figure BDA0001925826540000101
Secondly, selecting a backup to overturn when a fault occurs;
through the first step of the full operating system backup, the operating system such as boot information, network configuration, disk partitions, content files, and the like are recorded.
When the backup host fails, a historical copy of the operating system backup can be designated, and the operating system backup is turned into an emergency system.
During turning over, the partition size of the emergency system can be specified according to the partition size and the content size of the disk, and the network configuration of the emergency system can be modified during abnormal recovery.
It should be noted that in some embodiments, the backup host and the restore host may be the same host; in other embodiments, the backup host and the restore host may be heterogeneous.
As an example, referring to FIG. 4, FIG. 4 is a diagram illustrating an operating system backup roll-over according to an embodiment of the invention.
When a complete os backup is completed and stored in a recovery reserved area, an os backup needs to be turned into an emergency system and delivered to a recovery host for use, and how to turn over each component of the os backup is described as follows:
firstly, directly converting guide information, namely an original system is a Linux system, into guide information of an emergency system;
secondly, network configuration, wherein an IP address configured on a network card with an MAC address of 1A, 2B, 3C, 4E of the original system is 192.168.0.100, and a gateway is 192.168.0.1; in the embodiment shown in fig. 4, the roll-over is a modified roll-over for the reason of the abnormal recovery, the MAC address is modified to be 4e, 3c, 2b, ip address is 192.168.0.101, and the gateway is not changed. In other embodiments, the roll-over may be a same machine recovery.
It should be noted that fig. 4 is only one example. In other embodiments, one or more of the flipped MAC address, IP address, and gateway may be modified.
Thirdly, partitioning a disk, wherein 3 partitions are divided in the original system: partition 1 has a total space of 10GB, and 5GB is used; the total space of the partition 2 is 20GB, and 10GB is used; the total space of partition 3 is 30GB, and 15GB has been used.
In order to save the space of an emergency starting area, the disk subareas are corrected and turned, and the subarea 1 is divided into 8GB (more than 5GB (used), and <10GB (less than the total size)); partition 2 is divided into 18GB >10GB (greater than used), <20GB (less than total size) ]; partition 3 is divided into 28GB >15GB (greater than used), <30GB (less than total size).
It should be noted that the correction value for correcting the roll-over may be custom set as desired. In the above embodiment, in consideration of space utilization of the emergency starting area, the modification to the size of the partition cannot be smaller than the used partition and cannot be larger than the total size.
Finally, the content file, will be directly flipped over, and cannot be corrected.
Thirdly, directly starting emergency after mapping;
as an example, referring to fig. 5, fig. 5 shows an emergency system mapping diagram of an embodiment of the invention.
The overturning process is rapidly completed in the emergency recovery platform, and one or more emergency systems are formed after the overturning is completed and can be mapped to the recovery host machine for direct use.
The emergency system may be read-only mapped in a number of ways, including but not limited to FC (fiber Link) mapping or PXE boot (network Link), to map the emergency system to multiple recovery hosts through a switched network for an identified boot.
(1) Emergency system mapping
Different emergency systems are backed up and turned out by different operating systems, the emergency systems are mapped to the recovery host through a switching network in a read-only mode, and the emergency systems support the recovery host to be started through a system disk serving as the recovery host.
During which no recovery data need be transmitted.
The same emergency system can be mapped to a plurality of different recovery hosts in a read-only mapping mode, and the startup is executed at the same time.
The same recovery host may also accept mappings for different emergency systems, and upon startup one of the mapped emergency systems may be selected for startup.
(2) Emergency system start-up
Referring to fig. 6, fig. 6 shows a schematic diagram of the emergency system activation of an embodiment of the present invention.
As an example, the recovery host selects the available emergency systems that have been mapped (e.g., 1 from a plurality of emergency systems that have been mapped in different ways) at startup, and when the recovery host is started up by the emergency systems, a recovery log is created in the local disk space of the recovery host, where the recovery log is used to store newly written data, and the emergency systems are left unchanged as being in read-only mode, i.e., the host can be recovered immediately.
Fourthly, reverse cloning and curing of the emergency system;
after the recovery host completes emergency start through the emergency system, the emergency system can be solidified into a local disk of the recovery host through reverse cloning.
As shown in fig. 7, fig. 7 is a schematic diagram illustrating reverse clone curing of an emergency system to a local disk according to an embodiment of the present invention.
As an example, how the parts of the emergency system are reversely cloned when the emergency system is reversely cloned and solidified to the local disk is described as follows:
firstly, directly cloning the guide information into the guide information of a local disk of a recovery host;
secondly, the network configuration, because the mapping is completed, the MAC address of the recovery host is not modified, but the IP address can be modified again, the MAC address is 192.168.0.101 in the emergency system, and the gateway is 192.168.0.1; at the time of cloning, the IP address is corrected to 192.168.0.103, and the gateway is not changed.
It should be noted that fig. 6 is merely exemplary; in other embodiments, one or more of the MAC address, IP address, or gateway may be modified as desired.
And finally, partitioning a disk, wherein 3 partitions are divided in the emergency system: partition 1 is 8GB; partition 2 is 18GB; partition 3 is 28GB.
Referring to table 2, table 2 shows an exemplary table of the operating system backup of the restoration reserved area as shown in fig. 4, according to the backup information in the restoration reserved area in the second step:
when the emergency system clones the local disk, the emergency system can correct the local disk, and the partition 1 is divided into 15GB (greater than 5GB (used) and greater than 10GB (total size)); partition 2 is divided into 20GB >10GB (greater than used), =20GB (equal to total size); partition 3 is divided into 28GB >15GB (greater than used), <30GB (less than total size).
TABLE 2
Figure BDA0001925826540000131
Therefore, the correction value of the correction clone can be set by self according to requirements, and the network configuration and the disk partition can be adjusted according to specific requirements so as to deal with different recovery purposes.
And completing reverse cloning, namely after the emergency system is solidified to the local disk, restarting the recovery host computer at a proper time, disconnecting the mapping with the emergency system, selecting the local disk for guiding, and completing recovery.
According to the scheme provided by the embodiment of the invention, the operating system is completely backed up (for example, the operating system comprises guide information, network configuration, a disk partition, a content file and the like) during backup to form a complete operating system backup and store the complete operating system backup in the emergency recovery platform, when recovery is needed, the operating system backup is turned to a specific area (for example, an emergency starting area) of the emergency recovery platform according to requirements to form a complete emergency system, and then the emergency system is mapped to the host computer needing recovery, so that the host computer needing recovery can be directly started through the emergency system.
The scheme provided by the embodiment of the invention not only avoids a large number of redeployment steps, time and environmental deviation, but also does not need to maintain a large number of guide images, directly starts the host computer through the emergency system, does not need to carry out data transmission recovery, and greatly saves the time for recovering and using the system.
In summary, when the operating system fails, the operating system backup image of the dedicated emergency recovery platform is turned over to become the emergency system of the emergency boot area, and the emergency system is directly mapped to the recovery host, without transmitting recovery data, and the recovery host is directly booted through the emergency boot area.
In addition, the recovery reserved area is turned to the emergency starting area, the emergency starting area is started, and the emergency starting area can be reversely cloned to the local disk of the recovery host.
Therefore, the scheme provided by the invention not only can retain historical data copies of a plurality of operating systems to the great extent by means of backup recovery and by means of common backup technologies such as data de-duplication and the like; meanwhile, the rapid recovery of the operating system is realized by means of mapping after the emergency recovery platform is turned over at the highest speed and reverse cloning and curing; in the process of turning and cloning, different recovery requirements and environments are met under the condition that the operating system is ensured to be free of deviation, and the method is an operating system protection means with very balanced timeliness, performance and functions.
The technical effects of the scheme provided by the invention can be achieved as follows:
firstly, the traditional recovery data transmission process is not needed, the backup of the operating system is mapped after being turned over at the highest speed in the emergency recovery platform, the support recovery host is directly started, and the timeliness is very high.
Secondly, a plurality of time node historical copies can be reserved in the recovery reserved area by using a universal backup technology, and logic errors at each time point can be effectively repaired.
And thirdly, the emergency starting area supports various mapping links and mapping modes, correction parameters can be set in the turning and cloning processes, different environments can be effectively corresponded, and the large-batch quick recovery requirements can be met.
In addition, the method for recovering the operating system according to the embodiment of the present invention described in conjunction with fig. 1 may be implemented by a recovery device of the operating system. Fig. 8 is a schematic diagram illustrating a hardware structure of a recovery device of an operating system according to an embodiment of the present invention.
The operating system recovery device may include a processor 1003 and a memory 1004 that stores computer program instructions.
Fig. 8 is a block diagram illustrating an exemplary hardware architecture of a computing device capable of implementing a communication method and a network server according to an embodiment of the present invention. As shown in fig. 8, computing device 1000 includes input device 1001, input interface 1002, processor 1003, memory 1004, output interface 1005, and output device 1006.
The input interface 1002, the processor 1003, the memory 1004, and the output interface 1005 are connected to each other via a bus 1010, and the input device 1001 and the output device 1006 are connected to the bus 1010 via the input interface 1002 and the output interface 1005, respectively, and further connected to other components of the computing device 1000.
Specifically, the input device 1001 receives input information from the outside and transmits the input information to the processor 1003 via the input interface 1002; the processor 1003 processes the input information based on computer-executable instructions stored in the memory 1004 to generate output information, stores the output information temporarily or permanently in the memory 1004, and then transmits the output information to the output device 1006 through the output interface 1005; output device 1006 outputs the output information external to computing device 1000 for use by a user.
The computing device 1000 may perform the steps of the communication method described herein.
Processor 1003 may be one or more Central Processing Units (CPUs). In the case where the processor 1003 is one CPU, the CPU may be a single-core CPU or a multi-core CPU.
The memory 1004 may be, but is not limited to, one or more of Random Access Memory (RAM), read Only Memory (ROM), erasable Programmable Read Only Memory (EPROM), compact disc read only memory (CD-ROM), a hard disk, and the like. The memory 1004 is used to store program codes.
It is understood that, in this embodiment of the present application, the functions of any one or all of the modules from the operating system backup module to the starting module provided in fig. 2 may be implemented by using the central processing unit 1003 shown in fig. 8.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When used in whole or in part, can be implemented in a computer program product that includes one or more computer instructions. When the computer program instructions are loaded or executed on a computer, the procedures or functions according to the embodiments of the present invention are wholly or partially generated. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL), or wireless (e.g., infrared, wireless, microwave, etc.)). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), among others.
All parts of the specification are described in a progressive mode, the same and similar parts of all embodiments can be referred to each other, and each embodiment is mainly introduced to be different from other embodiments. In particular, as to the apparatus and system embodiments, since they are substantially similar to the method embodiments, the description is relatively simple and reference may be made to the description of the method embodiments in relevant places.

Claims (8)

1. A method of operating system recovery, comprising:
backing up an operating system of a host to be backed up to obtain a plurality of operating system backups, wherein the operating system backups comprise guide information, network configuration information, disk partitions and content files of each operating system;
when the host computer to be backed up fails, the plurality of operating system backups are turned over to form a plurality of emergency systems,
mapping the plurality of emergency systems to a host to be recovered, so that the host to be recovered is started through one of the plurality of emergency systems when being started;
when the host to be backed up fails,
flipping the plurality of operating system backups, comprising:
directly converting the boot information backed up by the operating systems into the boot information of the emergency systems;
transferring the network configuration revision backed up by the plurality of operating systems to the network configuration of the plurality of emergency systems;
modifying and overturning each disk partition backed up by the operating systems into each disk partition of the emergency systems;
directly turning the content files backed up by the operating systems into the content files of the emergency systems;
the direct turning refers to taking the boot information backed up by a plurality of operating systems as the boot information of the plurality of emergency systems; when the plurality of operating system hard disks are started, the specific content of the target partition is used as the specific content of the target partition when the plurality of emergency system hard disks are started;
the correcting and turning refers to that the MAC addresses, the IP addresses or the gateways of the network configuration of the backup of the plurality of operating systems are used as the MAC addresses, the IP addresses or the gateways of the network configuration of the plurality of emergency systems based on user requirements;
and configuring the disk partitions of the multiple operating system backups as the disk partitions of the multiple emergency systems based on the used space size and the total space size of the disk partitions of the multiple operating system backups, so that the space size of each disk partition of the multiple emergency systems is larger than the used space size of each disk partition of the multiple operating system backups and smaller than the total space size of each disk partition of the multiple operating system backups.
2. The method of claim 1, wherein mapping the plurality of emergency systems to a host to be recovered comprises:
and mapping the plurality of emergency systems to the host to be recovered through the switching network based on a read-only mode.
3. The method of claim 1, wherein the initiating by one of the plurality of emergency systems comprises:
and when one of the emergency systems is started, creating a recovery log in a local disk of the host to be recovered, wherein the recovery log is used for storing newly written data.
4. The method of claim 1, further comprising:
directly cloning the boot information of one of the plurality of emergency systems into the boot information of the local disk of the host to be recovered;
the network configuration of one of the emergency systems is revised and cloned into the network configuration of the local disk of the host to be recovered;
modifying and cloning the disk partition of one of the emergency systems into the disk partition of the local disk of the host to be recovered;
directly cloning a content file of one of the plurality of emergency systems into a content file of a local disk of the host to be recovered;
the direct cloning refers to taking the boot information backed up by a plurality of emergency systems as the boot information of the host to be recovered; when a plurality of emergency system hard disks are started, the specific content of the target partition is used as the specific content of the target partition when the host hard disk to be recovered is started;
the correction cloning means that the guide information of a plurality of emergency systems is solidified to a local disk of the host to be recovered; the method comprises the steps that Media Access Control (MAC) addresses, IP addresses or gateways configured by the networks of a plurality of emergency systems are used as MAC addresses, IP addresses or gateways configured by the networks of hosts to be recovered; based on the used space size and the total space size of each disk partition of the multiple emergency systems, configuring each disk partition of the multiple emergency systems as each disk partition of the host to be restored, and enabling the space size of each disk partition of the host to be restored to be larger than the used space size of each disk partition of the multiple emergency systems and smaller than the total space size of each disk partition backed up by the emergency systems.
5. The method of claim 4, further comprising:
restarting the host to be recovered, disconnecting the mapping between the host to be recovered and the emergency system, and selecting the local disk of the host to be recovered for guiding so as to realize recovery.
6. An operating system recovery apparatus comprising:
the backup module of the operating system is used for backing up the operating system of the host computer to be backed up to obtain a plurality of operating system backups, and the operating system backups comprise the guide information, the network configuration information, the disk partitions and the content files of each operating system;
the emergency system is used for turning over the backups of the operating systems to form a plurality of emergency systems when the host to be backed up fails
The system comprises a mapping module, a recovery module and a recovery module, wherein the mapping module is used for mapping the plurality of emergency systems to a host to be recovered so that the host to be recovered is started through one of the plurality of emergency systems when being started;
the emergency system is specifically configured to directly convert the boot information backed up by the multiple operating systems into the boot information of the multiple emergency systems;
transferring the network configuration revision backed up by the plurality of operating systems to the network configuration of the plurality of emergency systems;
modifying and overturning each disk partition backed up by the operating systems into each disk partition of the emergency systems;
directly turning the content files backed up by the operating systems into the content files of the emergency systems;
the direct turning refers to taking the boot information backed up by a plurality of operating systems as the boot information of the plurality of emergency systems; when the plurality of operating system hard disks are started, the specific content of the target partition is used as the specific content of the target partition when the plurality of emergency system hard disks are started;
the correcting and turning refers to that the MAC addresses, the IP addresses or the gateways of the network configuration of the backup of the plurality of operating systems are used as the MAC addresses, the IP addresses or the gateways of the network configuration of the plurality of emergency systems based on user requirements; and configuring each disk partition of the plurality of operating system backups as each disk partition of the plurality of emergency systems based on the used space size and the total space size of each disk partition of the plurality of operating system backups, so that the space size of each disk partition of the plurality of emergency systems is larger than the used space size of each disk partition of the plurality of operating system backups and smaller than the total space size of each disk partition of the plurality of operating system backups.
7. An operating system recovery apparatus, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement the method of any of claims 1-5.
8. A computer-readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of any one of claims 1-5.
CN201811615966.0A 2018-12-27 2018-12-27 Recovery method, device, equipment and medium of operating system Active CN111382006B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811615966.0A CN111382006B (en) 2018-12-27 2018-12-27 Recovery method, device, equipment and medium of operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811615966.0A CN111382006B (en) 2018-12-27 2018-12-27 Recovery method, device, equipment and medium of operating system

Publications (2)

Publication Number Publication Date
CN111382006A CN111382006A (en) 2020-07-07
CN111382006B true CN111382006B (en) 2023-04-07

Family

ID=71214503

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811615966.0A Active CN111382006B (en) 2018-12-27 2018-12-27 Recovery method, device, equipment and medium of operating system

Country Status (1)

Country Link
CN (1) CN111382006B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113708981B (en) * 2021-10-28 2022-04-15 广东睿江云计算股份有限公司 Method and system for repairing fault of cloud host system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012071335A1 (en) * 2010-11-22 2012-05-31 Bluearc Uk Limited File cloning and de-cloning in a data storage system
US20170075765A1 (en) * 2015-09-14 2017-03-16 Prophetstor Data Services, Inc. Hybrid backup and recovery management system for database versioning and virtualization with data transformation
CN106648957A (en) * 2015-11-03 2017-05-10 ***通信集团安徽有限公司 Operating system backup and recovery method and system
US9864659B2 (en) * 2015-11-10 2018-01-09 International Business Machines Corporation Scheduling and executing a backup
CN106528345B (en) * 2016-11-11 2020-03-06 郑州云海信息技术有限公司 Automatic node hard disk recovery method based on cloud platform
CN108241550B (en) * 2016-12-23 2021-05-18 研祥智能科技股份有限公司 Backup and restoration method for operating system
CN107273246A (en) * 2017-06-15 2017-10-20 郑州云海信息技术有限公司 A kind of server system backup method and device
CN107729177A (en) * 2017-09-18 2018-02-23 中国科学院信息工程研究所 Backup data store management method, device and system based on cloud storage

Also Published As

Publication number Publication date
CN111382006A (en) 2020-07-07

Similar Documents

Publication Publication Date Title
US8352720B2 (en) Method for changing booting configuration and computer system capable of booting OS
US7711983B2 (en) Fail over method for computer system
CN102591679B (en) Quick application software arrangement method for cluster system
US8156373B2 (en) System for disaster recovery backup and a method thereof
CN101232397B (en) Apparatus and method for renovating multi controller systems
US9792181B2 (en) Pool of devices providing operating system redundancy
US20140122860A1 (en) Cloud system and boot deployment method for the cloud system
CN112055087B (en) Method and system for rapid deployment, migration and maintenance of Mongodb cluster
EP3848809A1 (en) Data disaster recovery method and site
CN104915226A (en) Network device software starting method, device and network device
CN105635216A (en) Distributed application upgrade method, device and distributed system
JP6455898B2 (en) Data replication method, primary data storage controller, apparatus, system, and program
US20170052779A1 (en) Method and Device for Running Version File
CN110908723A (en) Main/standby switching method and device of operating system and related equipment
CN111382006B (en) Recovery method, device, equipment and medium of operating system
US8880472B2 (en) Method of backing-up, and making available, electronic data and software initially stored on a client server
WO2011109049A1 (en) Method and apparatus of backing-up subversion repository
US20150269237A1 (en) Disaster Recovery of Converged Infrastructure Platforms
CN111984474A (en) Method, system and equipment for recovering double-control cluster fault
US20060253668A1 (en) Method and apparatus for preserving operating system and configuration files against a system failure
US10338849B2 (en) Method and device for processing I/O request in network file system
US20200042405A1 (en) Crash recovery of vrpa cluster protection engine
JP5798056B2 (en) Call processing information redundancy control system and spare maintenance server used therefor
US20170270008A1 (en) Granular dump backup restart
CN111240895A (en) OpenStack-oriented node batch backup system method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant