CN117032790A - Virtualization system version synchronization method, device, equipment and medium - Google Patents

Virtualization system version synchronization method, device, equipment and medium Download PDF

Info

Publication number
CN117032790A
CN117032790A CN202311104621.XA CN202311104621A CN117032790A CN 117032790 A CN117032790 A CN 117032790A CN 202311104621 A CN202311104621 A CN 202311104621A CN 117032790 A CN117032790 A CN 117032790A
Authority
CN
China
Prior art keywords
virtualization system
heterogeneous
synchronization
information
version
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.)
Pending
Application number
CN202311104621.XA
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN202311104621.XA priority Critical patent/CN117032790A/en
Publication of CN117032790A publication Critical patent/CN117032790A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects

Abstract

The invention relates to the technical field of computers, and discloses a method, a device, equipment and a medium for synchronizing versions of a virtualization system, wherein the method comprises the following steps: after receiving the version synchronization request, acquiring an image file of the virtualization system with the target version, which corresponds to the version synchronization request; scanning and synchronizing the environment information of the heterogeneous nodes to obtain information of a heterogeneous virtualization system; repairing the information of the heterogeneous virtualization system according to the comparison result between the information of the heterogeneous virtualization system and the mirror image file; and synchronizing the target version to the repaired heterogeneous virtualization system. Therefore, the virtualization systems of different versions of different architectures are subjected to version synchronization, the synchronization function among different versions is realized, the version difference among different systems can be pulled through, the operation and maintenance risks caused by the version difference are reduced, the stability and reliability of the systems are ensured, and the system faults and performance degradation caused by hardware differences are reduced.

Description

Virtualization system version synchronization method, device, equipment and medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for synchronizing a virtualized system version.
Background
In the cloud computing and big data age, cloud on various business systems becomes a trend, and more enterprises and institutions start to turn to deployment and operation on the cloud. In recent years, deployment of virtualization systems on servers has also become a trend. Along with the continuous heating of domestic servers, multi-architecture servers also show flowers and full-bodied situations, and more user groups show the coexistence of the multi-architecture servers.
In the related technical scheme, in order to facilitate management and operation of virtualization systems with different architectures and different versions, a unified cloud management platform is used for management. However, the different versions of the virtualized system are hosted together with some operational risk issues.
Therefore, how to solve the problem of operation and maintenance risk caused by the nanotubes of different versions of the virtualization system is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a method, a device, equipment and a medium for synchronizing versions of a virtualized system, which can pull through version differences among different systems, reduce risk probability and improve system stability and reliability.
In order to solve the technical problems, the invention provides a virtualization system version synchronization method, which comprises the following steps:
after receiving a version synchronization request, acquiring an image file of a virtualization system with a target version, which corresponds to the version synchronization request;
scanning and synchronizing the environment information of the heterogeneous nodes to obtain information of a heterogeneous virtualization system;
repairing the information of the heterogeneous virtualization system according to a comparison result between the information of the heterogeneous virtualization system and the mirror image file;
and synchronizing the target version to the restored heterogeneous virtualization system.
In a first aspect, in the above method for synchronizing a version of a virtualized system according to an embodiment of the present invention, repairing information of the heterogeneous virtualized system according to a comparison result between the information of the heterogeneous virtualized system and the image file includes:
comparing the information of the heterogeneous virtualization system with the mirror image file;
judging whether the heterogeneous virtualization system meets a synchronization condition according to a comparison result;
and if not, repairing the information of the heterogeneous virtualization system.
On the other hand, in the above method for synchronizing a version of a virtualized system according to the embodiment of the present invention, the repairing the information of the heterogeneous virtualized system includes:
repairing the information of the heterogeneous virtualization system until the synchronous condition is met;
when the known compatibility problem, loophole or file change problem exists in the information of the heterogeneous virtualization system, the information of the heterogeneous virtualization system is correspondingly repaired.
On the other hand, in the above-mentioned method for synchronizing a version of a virtualized system according to the embodiment of the present invention, when it is identified that the information of the heterogeneous virtualized system has a known compatibility problem, a vulnerability or a file modification problem, the repairing the information of the heterogeneous virtualized system includes:
when the information of the heterogeneous virtualization system is identified to have file conflict, repairing by adopting a conflict resolution method;
and when the information of the heterogeneous virtualization system is identified to have the problem of inconsistent data, repairing by adopting a data backup and recovery mechanism.
On the other hand, in the above method for synchronizing a version of a virtualized system according to the embodiment of the present invention, determining whether the heterogeneous virtualized system meets a synchronization condition includes:
judging whether the partition names of the heterogeneous virtualization system in the directory structure are consistent with the partition names in the mirror image file or not;
if the partition names are inconsistent, judging that the heterogeneous virtualization system does not meet the synchronization condition;
if the partition names are consistent, judging whether the storage state of the heterogeneous virtualization system is consistent with the storage state in the mirror image file;
if the storage states are inconsistent, judging that the heterogeneous virtualization system does not meet the synchronization condition;
if the storage states are consistent, judging whether the disk states of the heterogeneous virtualization system are consistent with the disk states in the mirror image file or not;
if the states of the disks are inconsistent, judging that the heterogeneous virtualization system does not meet the synchronization condition;
if the states of the disks are consistent, judging whether the states of the virtual machines of the heterogeneous virtualization system are consistent with the states of the virtual machines in the mirror image file;
if the states of the virtual machines are inconsistent, judging that the heterogeneous virtualization system does not meet the synchronization condition;
if the virtual machine states are consistent, judging whether the memory of the heterogeneous virtualization system is consistent with the memory in the mirror image file;
if the memories are inconsistent, judging that the heterogeneous virtualization system does not meet the synchronization condition;
if the memory is consistent, judging whether the network of the heterogeneous virtualization system is consistent with the network in the mirror image file;
if the networks are inconsistent, judging that the heterogeneous virtualization system does not meet the synchronization condition;
and if the networks are consistent, judging that the heterogeneous virtualization system meets the synchronization condition.
On the other hand, in the above method for synchronizing the version of the virtualized system provided by the embodiment of the invention, the method further includes:
monitoring the heterogeneous virtualization system in the synchronization process to monitor the execution condition of the synchronization operation;
and recording the monitoring result containing the repair file, and carrying out data backup on the original file.
On the other hand, in the above method for synchronizing the version of the virtualized system provided by the embodiment of the invention, the method further includes:
if the synchronization fails or is wrong in the synchronization process, the corresponding node with the synchronization failure or the synchronization mistake carries out rollback operation.
In order to solve the technical problem, the present invention further provides a virtualized system version synchronization device, where the device includes:
the file acquisition module is used for acquiring an image file of the virtualization system with the target version corresponding to the version synchronization request after receiving the version synchronization request;
the information scanning module is used for scanning and synchronizing the environment information of the heterogeneous nodes to obtain the information of the heterogeneous virtualization system;
the comparison and restoration module is used for restoring the information of the heterogeneous virtualization system according to the comparison result between the information of the heterogeneous virtualization system and the mirror image file;
and the version synchronization module is used for synchronizing the target version to the repaired heterogeneous virtualization system.
In order to solve the technical problem, the present invention further provides a virtualized system version synchronization device, where the device includes:
a memory for storing a computer program;
and the processor is used for realizing the steps of the virtualization system version synchronization method when executing the computer program.
In order to solve the above technical problem, the present invention further provides a computer readable storage medium, where a computer program is stored, where the computer program implements the steps of the above-mentioned virtualization system version synchronization method when executed by a processor.
The invention provides a virtualization system version synchronization method, which comprises the following steps: after receiving the version synchronization request, acquiring an image file of the virtualization system with the target version, which corresponds to the version synchronization request; scanning and synchronizing the environment information of the heterogeneous nodes to obtain information of a heterogeneous virtualization system; repairing the information of the heterogeneous virtualization system according to the comparison result between the information of the heterogeneous virtualization system and the mirror image file; and synchronizing the target version to the repaired heterogeneous virtualization system.
The method for synchronizing the versions of the virtualized system has the advantages that the version synchronizing is carried out on the virtualized systems of different versions of different architectures, so that the synchronizing function among different versions is realized, the version difference among the different systems is pulled through, the operation and maintenance risks caused by the version difference are reduced, the virtualized system information of different architectures is self-repaired before synchronization, the stability and the reliability of the systems are ensured, and the system faults and performance reduction caused by the hardware difference are reduced.
In addition, the invention also provides a corresponding virtualized system version synchronization device, virtualized system version synchronization equipment and a computer readable storage medium aiming at the virtualized system version synchronization method, and the virtualized system version synchronization device and the virtualized system version synchronization method have the same or corresponding technical characteristics as the virtualized system version synchronization method, and have the same effects.
Drawings
For a clearer description of embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is a flowchart of a method for synchronizing versions of a virtualized system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a virtualized system version synchronization device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a virtualized system version synchronization device according to another embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without making any inventive effort are within the scope of the present invention.
The invention aims to provide a method, a device, equipment and a medium for synchronizing versions of a virtualization system so as to solve the technical problem of operation and maintenance risks brought by the fact that different versions of the virtualization system are managed together.
In order to better understand the aspects of the present invention, the present invention will be described in further detail with reference to the accompanying drawings and detailed description. Fig. 1 is a flowchart of a method for synchronizing versions of a virtualized system according to an embodiment of the present invention, as shown in fig. 1, where the method includes:
s101, after receiving the version synchronization request, acquiring an image file of the virtualization system with the target version corresponding to the version synchronization request.
It should be noted that, the execution main body of the virtualization system version synchronization method provided by the invention can be a main platform of a virtualization system with different architectures and different versions of nanotubes, and can also be understood as a main platform of homologous heterogeneous nodes with different versions of nanotubes.
When executing step S101, after receiving the version synchronization request, the main platform may parse the target version to be synchronized according to the version synchronization request. And uploading the image file package of the virtualization system with the target version to an image library of the main platform so as to enable the main platform to acquire the image file of the virtualization system with the target version. These image files may contain complete configuration and state information of the virtualized system for subsequent synchronization and self-healing operations.
Assuming that the target version is 6.0 version, the versions of heterogeneous virtualization systems of different versions comprise 4.5 version, 5.0 version, 5.5 version, 6.0 version and the like, and the purpose of the invention is to synchronize the versions of heterogeneous virtualization systems to 6.0 version so as to solve the technical problem of operation and maintenance risks caused by the fact that the virtualization systems of different versions are managed together.
S102, scanning and synchronizing environment information of the heterogeneous nodes to obtain information of the heterogeneous virtualization system.
After the image file is acquired, step S102 needs to be executed, where the environment information of each heterogeneous node to be synchronized is scanned and synchronized to the host platform, so as to obtain the information of the heterogeneous virtualization system. The resulting information of the heterogeneous virtualized system includes the hardware configuration of the nodes, the operating system, the application version, and other relevant system information. This information will be synchronized to the host platform for subsequent comparison.
S103, repairing the information of the heterogeneous virtualization system according to a comparison result between the information of the heterogeneous virtualization system and the mirror image file.
After the information of the image file and the heterogeneous virtualization system is acquired, the process of comparing and identifying self-repair of step S103 needs to be performed. The heterogeneous virtualization systems corresponding to other versions (such as version 4.5, version 5.0 and version 5.5) different from the target version must be distinguished from the information of the target version (such as version 6.0), and according to the comparison result, the place needing to be repaired can be found out, so that the heterogeneous virtualization systems corresponding to other versions different from the target version can reach the requirement of synchronizable, and the later synchronization operation can be performed.
S104, synchronizing the target version to the repaired heterogeneous virtualization system.
In practice, after the completion of the above-described preparation work, the synchronization operation of step S104 may be started to be performed. Step S104 may be understood as synchronizing the target version information on the primary platform to each of the heterogeneous nodes, where the synchronization may include file synchronization, data backup and recovery, and so on. After performing steps S101 to S104, the master platform hosting the homologous heterogeneous nodes of different versions has completed synchronizing all nodes to the unified version of nodes.
In the method for synchronizing the versions of the virtualized system provided by the embodiment of the invention, the versions of the virtualized systems with different frameworks are synchronized, so that the synchronization function among the different versions is realized, the version difference among the different systems is pulled through, the operation and maintenance risks caused by the version difference are reduced, the virtualized system information with different frameworks is self-repaired before synchronization, the stability and the reliability of the systems are ensured, and the system faults and the performance reduction caused by the hardware difference are reduced.
In a specific implementation, in the above method for synchronizing a version of a virtualized system provided by the embodiment of the present invention, step S103 may repair information of a heterogeneous virtualized system according to a comparison result between the information of the heterogeneous virtualized system and an image file, which may specifically include: comparing the information of the heterogeneous virtualization system with the mirror image file; judging whether the heterogeneous virtualization system meets the synchronization condition according to the comparison result; if the synchronization condition is met, directly synchronizing the target version to the heterogeneous virtualization system; if the synchronization condition is not satisfied, the information of the heterogeneous virtualization system needs to be repaired.
In implementation, the determining whether the heterogeneous virtualization system meets the synchronization condition in the above step may specifically include:
judging whether the partition names of the heterogeneous virtualization system in the directory structure are consistent with the partition names in the mirror image file or not;
if the partition names are inconsistent, judging that the heterogeneous virtualization system does not meet the synchronization condition;
if the partition names are consistent, judging whether the storage state of the heterogeneous virtualization system is consistent with the storage state in the mirror image file;
if the storage states are inconsistent, judging that the heterogeneous virtualization system does not meet the synchronization condition;
if the storage states are consistent, judging whether the disk states of the heterogeneous virtualization system are consistent with the disk states in the mirror image file;
if the states of the disks are inconsistent, judging that the heterogeneous virtualization system does not meet the synchronization condition;
if the states of the disks are consistent, judging whether the states of the virtual machines of the heterogeneous virtualization system are consistent with the states of the virtual machines in the mirror image file;
if the states of the virtual machines are inconsistent, judging that the heterogeneous virtualization system does not meet the synchronization condition;
if the virtual machine states are consistent, judging whether the memory of the heterogeneous virtualization system is consistent with the memory in the mirror image file;
if the memories are inconsistent, judging that the heterogeneous virtualization system does not meet the synchronization condition;
if the memories are consistent, judging whether the network of the heterogeneous virtualization system is consistent with the network in the mirror image file;
if the networks are inconsistent, judging that the heterogeneous virtualization system does not meet the synchronization condition;
and if the networks are consistent, judging that the heterogeneous virtualization system meets the synchronization condition.
That is, the invention can sequentially check the partition, the storage state, the disk state, the virtual machine state, the memory, the network and the like of the heterogeneous virtualization system to judge whether the heterogeneous virtualization system meets the synchronization condition, so as to further improve the synchronization effect.
Of course, if the synchronization condition only needs to check any one or more of the partition, the storage state, the disk state, the virtual machine state, the memory and the network, or the checking sequence changes, the judging content and the judging sequence can be adjusted according to the actual situation, and the method is not limited herein.
In addition, in the embodiment of the present invention, in the above-mentioned method for synchronizing the version of the virtualized system, since various problems may be encountered in the process of synchronizing the version, step S103 repairs the information of the heterogeneous virtualized system, which may specifically include the following cases:
repairing the information of the heterogeneous virtualization system until the synchronous condition is met;
when the known compatibility problem, loophole or file change problem exists in the information of the heterogeneous virtualization system, the information of the heterogeneous virtualization system is correspondingly repaired.
In implementation, in order to solve these problems, it is necessary to identify a self-repairing problem and perform corresponding processing, and when identifying that the information of the heterogeneous virtualized system has a known compatibility problem, a vulnerability or a file modification problem, the corresponding repairing is performed on the information of the heterogeneous virtualized system, which may specifically include the following cases:
the first case is that when the information of the heterogeneous virtualization system is identified to have file conflict, a conflict resolution method is adopted for repairing;
the second case is when the information of the heterogeneous virtualization system is identified to have a data inconsistency problem, and a data backup and recovery mechanism is adopted for repairing.
In addition to the two cases, the method can also finish corresponding repair according to the mode of automatically updating, restarting or repairing tools and the like according to the identified corresponding problems. After the self-repairing related problems are identified, risks caused by different structural differences of the homologous heterogeneous virtualization system can be reduced, the probability of problem faults is reduced, the usability of the system is ensured, and meanwhile, the stability and the robustness of the system are improved.
It should be noted that, in the above-mentioned method for synchronizing a version of a virtualized system according to the embodiment of the present invention, before synchronization, a synchronization rule may also be determined for a heterogeneous virtualized system, for example: and checking whether the heterogeneous virtualization system has synchronous permission or not, and whether migration synchronization, virtual machine starting synchronization and other rules are met. When a system to be synchronized requires a set synchronization rule, it can be checked whether the system meets the synchronization rule, and if the system does not meet the synchronization rule, the related problems are solved before synchronization, for example: if the system needs to meet the rule of the synchronous permission and does not meet the rule at present, a certain method is needed to be adopted to enable the system to meet the rule of the synchronous permission; if the system needs to meet the rule of migration synchronization, it does not meet the rule of migration synchronization currently, and a certain method needs to be adopted to enable the system to meet the rule of migration synchronization.
In a specific implementation, the method for synchronizing the version of the virtualized system provided by the embodiment of the invention may further include: monitoring the heterogeneous virtualization system in the synchronization process to monitor the execution condition of the synchronization operation; and recording the monitoring result containing the repair file, and carrying out data backup on the original file.
The above steps are that in the process of version synchronization, a synchronization monitoring recording function needs to be started to monitor and record the heterogeneous virtualization system, monitor the execution condition of the synchronization operation, and record the monitoring result, including each step of synchronization, a data change point, a repair file and the like. And at the same time of recording, the original file can be subjected to related data backup for subsequent rollback operation with failed synchronization. Thus, the rollback of the synchronous failure environment is ensured, an administrator is helped to find and solve the problem in time, and the stability and the reliability of synchronous operation are ensured.
In a specific implementation, the method for synchronizing the version of the virtualized system provided by the embodiment of the invention may further include: if the synchronization fails or is wrong in the synchronization process, the corresponding node with the synchronization failure or the synchronization mistake carries out rollback operation.
In practice, if a serious problem is found during synchronization, a rollback operation needs to be performed to restore the system to a pre-synchronization state. Rollback operations may include restoring files and data that failed in synchronization, repairing misconfigurations, restoring system state, restoring configuration files, backing up data, and so forth. By rollback operation, the stability and reliability of the system can be ensured, the homologous heterogeneous nodes can be restored to the state before synchronization to ensure the sustainable operation of the system, the risk brought by service interruption caused by synchronization is reduced, and the occurrence of system breakdown or performance degradation caused by synchronization errors is avoided.
The invention can synchronize the versions of the homologous heterogeneous nodes and repair the self-problems in the homologous heterogeneous virtualization system, thereby improving the stability and reliability of the system and reducing the operation and maintenance cost and risk. By executing the steps, unified management and maintenance of virtualization systems with different architectures and versions can be realized, the availability and performance of the system are improved, and powerful support is provided for business continuity and development of enterprises.
In the above embodiments, the present invention further provides embodiments corresponding to a virtualized system version synchronization device and a virtualized system version synchronization device. It should be noted that the present invention describes an embodiment of the device portion from two angles, one based on the angle of the functional module and the other based on the angle of the hardware.
Fig. 2 is a block diagram of a virtualized system version synchronization device according to an embodiment of the present invention. The embodiment is based on the angle of the functional module, and the device comprises:
the file acquisition module 10 is configured to acquire an image file of a virtualization system with a target version corresponding to the version synchronization request after receiving the version synchronization request;
the information scanning module 11 is used for scanning and synchronizing the environment information of the heterogeneous nodes to obtain the information of the heterogeneous virtualization system;
the contrast restoration module 12 is configured to restore information of the heterogeneous virtualization system according to a contrast result between the information of the heterogeneous virtualization system and the image file;
the version synchronization module 13 is configured to synchronize the target version to the repaired heterogeneous virtualization system.
It should be noted that, the version synchronization device of the virtualization system provided by the invention can be arranged on the main platform of the virtualization system with different architectures and different versions of nanotubes, and can be understood as the main platform of the homologous heterogeneous nodes with different versions of nanotubes.
In the virtualized system version synchronization device provided by the embodiment of the invention, the version differences among different systems can be pulled through the interaction of the four modules, so that the operation and maintenance risks caused by the version differences are reduced, the stability and reliability of the systems are ensured, and the system faults and performance degradation caused by hardware differences are reduced.
Since the embodiments of the apparatus portion and the embodiments of the method portion correspond to each other, the embodiments of the apparatus portion are referred to the description of the embodiments of the method portion, and are not repeated herein. And has the same advantageous effects as the above-mentioned virtualized system version synchronization method.
In a specific implementation, in the above-mentioned virtualized system version synchronization device provided by the embodiment of the present invention, the contrast repairing module 12 may specifically include:
the comparison unit is used for comparing the information of the heterogeneous virtualization system with the mirror image file;
the judging unit is used for judging whether the heterogeneous virtualization system meets the synchronous condition according to the comparison result; if yes, directly synchronizing the target version to the heterogeneous virtualization system; if not, repairing the information of the heterogeneous virtualization system.
Further, the judging unit may be specifically configured to judge whether the partition name of the heterogeneous virtualization system in the directory structure is consistent with the partition name in the image file; if the partition names are inconsistent, judging that the heterogeneous virtualization system does not meet the synchronization condition; if the partition names are consistent, judging whether the storage state of the heterogeneous virtualization system is consistent with the storage state in the mirror image file; if the storage states are inconsistent, judging that the heterogeneous virtualization system does not meet the synchronization condition; if the storage states are consistent, judging whether the disk states of the heterogeneous virtualization system are consistent with the disk states in the mirror image file; if the states of the disks are inconsistent, judging that the heterogeneous virtualization system does not meet the synchronization condition; if the states of the disks are consistent, judging whether the states of the virtual machines of the heterogeneous virtualization system are consistent with the states of the virtual machines in the mirror image file; if the states of the virtual machines are inconsistent, judging that the heterogeneous virtualization system does not meet the synchronization condition; if the virtual machine states are consistent, judging whether the memory of the heterogeneous virtualization system is consistent with the memory in the mirror image file; if the memories are inconsistent, judging that the heterogeneous virtualization system does not meet the synchronization condition; if the memories are consistent, judging whether the network of the heterogeneous virtualization system is consistent with the network in the mirror image file; if the networks are inconsistent, judging that the heterogeneous virtualization system does not meet the synchronization condition; and if the networks are consistent, judging that the heterogeneous virtualization system meets the synchronization condition.
That is, the invention can sequentially check the partition, the storage state, the disk state, the virtual machine state, the memory, the network and the like of the heterogeneous virtualization system to judge whether the heterogeneous virtualization system meets the synchronization condition, so as to further improve the synchronization effect.
It can be understood that if the synchronization condition only needs to check any one or more of the partition, the storage state, the disk state, the virtual machine state, the memory, and the network, or the checking sequence changes, the judging content and the ordering can be set according to the actual situation, which is not limited herein.
The contrast restoration module 12 may be specifically configured to restore information of the heterogeneous virtualization system until a synchronization condition is satisfied; when the known compatibility problem, loophole or file change problem exists in the information of the heterogeneous virtualization system, the information of the heterogeneous virtualization system is correspondingly repaired.
When the information of the heterogeneous virtualization system is identified to have file conflict, the comparison and repair module 12 can repair the information by adopting a conflict resolution method; when the information of the heterogeneous virtualization system is identified to have the problem of inconsistent data, the contrast restoration module 12 can adopt a data backup and restoration mechanism for restoration.
Further, in a specific implementation, the virtualized system version synchronization device provided by the embodiment of the invention may further include:
the rule judging module is configured to judge a synchronization rule of the heterogeneous virtualization system before synchronization, for example: and checking whether the heterogeneous virtualization system has synchronous permission or not, and whether migration synchronization, virtual machine starting synchronization and other rules are met. When a system to be synchronized requires a set synchronization rule, whether the system accords with the synchronization rule can be checked, and if the system does not accord with the synchronization rule, the related problem is solved before synchronization, so that the system accords with the synchronization rule.
Further, in a specific implementation, the virtualized system version synchronization device provided by the embodiment of the invention may further include:
and the monitoring and recording module is used for monitoring the heterogeneous virtualization system in the synchronization process and recording change points and repair files.
The monitoring and recording module has the function of starting synchronous monitoring and recording, can monitor and record the heterogeneous virtualization system, monitors the execution condition of synchronous operation, and records the monitoring result, wherein the monitoring result comprises each step of synchronization, a data change point, a repair file and the like. And the monitoring and recording module can also carry out related data backup on the original file during recording so as to be used for subsequent rollback operation with failed synchronization. Thus, the rollback of the synchronous failure environment is ensured, an administrator is helped to find and solve the problem in time, and the stability and the reliability of synchronous operation are ensured.
Further, in a specific implementation, the virtualized system version synchronization device provided by the embodiment of the invention may further include:
and the failure rollback module is used for performing rollback operation on the corresponding node with the synchronization failure or error if the synchronization failure or error occurs in the synchronization process.
If a serious problem is found during the synchronization process, the above-mentioned fail rollback module is required to perform a rollback operation to restore the system to a pre-synchronization state. By rollback operation, the stability and reliability of the system can be ensured, the homologous heterogeneous nodes can be restored to the state before synchronization to ensure sustainable operation of the system, risks caused by service interruption due to synchronization are reduced, and the occurrence of system breakdown or performance degradation caused by synchronization errors is avoided.
Fig. 3 is a block diagram of a virtualized system version synchronization device according to another embodiment of the invention. The embodiment is based on hardware angle, as shown in fig. 3, and the virtualized system version synchronization device includes:
a memory 20 for storing a computer program;
a processor 21 for implementing the steps of the virtualized system version synchronization method as mentioned in the embodiments above when executing a computer program.
Processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 may be implemented in hardware in at least one of a digital signal processor (Digital Signal Processor, DSP), a Field programmable gate array (Field-Programmable Gate Array, FPGA), a programmable logic array (Programmable Logic Array, PLA). The processor 21 may also include a main processor, which is a processor for processing data in an awake state, also called CPU, and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a graphics processor (Graphics Processing Unit, GPU) for taking care of rendering and drawing of content that the display screen is required to display. In some embodiments, the processor 21 may also include an artificial intelligence (Artificial Intelligence, AI) processor for processing computing operations related to machine learning.
Memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing a computer program 201, where the computer program, when loaded and executed by the processor 21, is capable of implementing the relevant steps of the virtualization system version synchronization method disclosed in any one of the foregoing embodiments. In addition, the resources stored in the memory 20 may further include an operating system 202, data 203, and the like, where the storage manner may be transient storage or permanent storage. The operating system 202 may include Windows, unix, linux, among others. The data 203 may include, but is not limited to, the data referred to above in relation to the virtualized system version synchronization method, and the like.
In some embodiments, the virtualized system version synchronization device may further comprise a display 22, an input-output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
Those skilled in the art will appreciate that the architecture shown in FIG. 3 does not constitute a limitation of virtualized system version synchronization devices, and may include more or fewer components than shown.
The virtualized system version synchronization device provided by the embodiment of the invention comprises a memory and a processor, wherein the processor can realize the following method when executing a program stored in the memory: the virtualization system version synchronization method has the same effect.
Finally, the invention also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps as described in the method embodiments above.
It will be appreciated that the methods of the above embodiments, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored on a computer readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium for performing all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The computer readable storage medium provided by the invention comprises the virtualization system version synchronization method, and the effects are the same as the above.
It should also be noted that in this specification, relational terms such as first and second, and the like are 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. Moreover, 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 phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The method, the device, the equipment and the medium for synchronizing the version of the virtualization system provided by the invention are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the invention can be made without departing from the principles of the invention and these modifications and adaptations are intended to be within the scope of the invention as defined in the following claims.

Claims (10)

1. A method for synchronizing versions of a virtualized system, the method comprising:
after receiving a version synchronization request, acquiring an image file of a virtualization system with a target version, which corresponds to the version synchronization request;
scanning and synchronizing the environment information of the heterogeneous nodes to obtain information of a heterogeneous virtualization system;
repairing the information of the heterogeneous virtualization system according to a comparison result between the information of the heterogeneous virtualization system and the mirror image file;
and synchronizing the target version to the restored heterogeneous virtualization system.
2. The method for synchronizing versions of a virtualized system according to claim 1, wherein the repairing the information of the heterogeneous virtualized system according to a comparison result between the information of the heterogeneous virtualized system and the image file comprises:
comparing the information of the heterogeneous virtualization system with the mirror image file;
judging whether the heterogeneous virtualization system meets a synchronization condition according to a comparison result;
and if not, repairing the information of the heterogeneous virtualization system.
3. The virtualization system version synchronization method of claim 2, wherein the repairing the information of the heterogeneous virtualization system comprises:
repairing the information of the heterogeneous virtualization system until the synchronous condition is met;
when the known compatibility problem, loophole or file change problem exists in the information of the heterogeneous virtualization system, the information of the heterogeneous virtualization system is correspondingly repaired.
4. The method for synchronizing versions of a virtualized system according to claim 3, wherein when the information identifying the heterogeneous virtualized system has a known compatibility problem, a vulnerability or a file modification problem, performing corresponding repair on the information of the heterogeneous virtualized system, comprises:
when the information of the heterogeneous virtualization system is identified to have file conflict, repairing by adopting a conflict resolution method;
and when the information of the heterogeneous virtualization system is identified to have the problem of inconsistent data, repairing by adopting a data backup and recovery mechanism.
5. The virtualization system version synchronization method of claim 2, wherein determining whether the heterogeneous virtualization system satisfies a synchronization condition comprises:
judging whether the partition names of the heterogeneous virtualization system in the directory structure are consistent with the partition names in the mirror image file or not;
if the partition names are inconsistent, judging that the heterogeneous virtualization system does not meet the synchronization condition;
if the partition names are consistent, judging whether the storage state of the heterogeneous virtualization system is consistent with the storage state in the mirror image file;
if the storage states are inconsistent, judging that the heterogeneous virtualization system does not meet the synchronization condition;
if the storage states are consistent, judging whether the disk states of the heterogeneous virtualization system are consistent with the disk states in the mirror image file or not;
if the states of the disks are inconsistent, judging that the heterogeneous virtualization system does not meet the synchronization condition;
if the states of the disks are consistent, judging whether the states of the virtual machines of the heterogeneous virtualization system are consistent with the states of the virtual machines in the mirror image file;
if the states of the virtual machines are inconsistent, judging that the heterogeneous virtualization system does not meet the synchronization condition;
if the virtual machine states are consistent, judging whether the memory of the heterogeneous virtualization system is consistent with the memory in the mirror image file;
if the memories are inconsistent, judging that the heterogeneous virtualization system does not meet the synchronization condition;
if the memory is consistent, judging whether the network of the heterogeneous virtualization system is consistent with the network in the mirror image file;
if the networks are inconsistent, judging that the heterogeneous virtualization system does not meet the synchronization condition;
and if the networks are consistent, judging that the heterogeneous virtualization system meets the synchronization condition.
6. The virtualized system version synchronization method of claim 1, further comprising:
monitoring the heterogeneous virtualization system in the synchronization process to monitor the execution condition of the synchronization operation;
and recording the monitoring result containing the repair file, and carrying out data backup on the original file.
7. The virtualized system version synchronization method of claim 1, further comprising:
if the synchronization fails or is wrong in the synchronization process, the corresponding node with the synchronization failure or the synchronization mistake carries out rollback operation.
8. A virtualized system version synchronization device, the device comprising:
the file acquisition module is used for acquiring an image file of the virtualization system with the target version corresponding to the version synchronization request after receiving the version synchronization request;
the information scanning module is used for scanning and synchronizing the environment information of the heterogeneous nodes to obtain the information of the heterogeneous virtualization system;
the comparison and restoration module is used for restoring the information of the heterogeneous virtualization system according to the comparison result between the information of the heterogeneous virtualization system and the mirror image file;
and the version synchronization module is used for synchronizing the target version to the repaired heterogeneous virtualization system.
9. A virtualized system version synchronization device, the device comprising:
a memory for storing a computer program;
a processor for implementing the steps of the virtualized system version synchronization method of any of claims 1 to 7 when executing said computer program.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the virtualization system version synchronization method according to any one of claims 1 to 7.
CN202311104621.XA 2023-08-30 2023-08-30 Virtualization system version synchronization method, device, equipment and medium Pending CN117032790A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311104621.XA CN117032790A (en) 2023-08-30 2023-08-30 Virtualization system version synchronization method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311104621.XA CN117032790A (en) 2023-08-30 2023-08-30 Virtualization system version synchronization method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN117032790A true CN117032790A (en) 2023-11-10

Family

ID=88633556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311104621.XA Pending CN117032790A (en) 2023-08-30 2023-08-30 Virtualization system version synchronization method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN117032790A (en)

Similar Documents

Publication Publication Date Title
US11561865B2 (en) Systems and methods for host image transfer
RU2751551C1 (en) Method and apparatus for restoring disrupted operating ability of a unit, electronic apparatus and data storage medium
US6665813B1 (en) Method and apparatus for updateable flash memory design and recovery with minimal redundancy
CN111124755B (en) Fault recovery method and device for cluster nodes, electronic equipment and storage medium
CN110727501B (en) Practicing method and system based on virtual machine backup data
US20160266924A1 (en) Apparatus and method for identifying a virtual machine having changeable settings
CN111651304B (en) Software recovery method and device based on double-core intelligent ammeter and computer equipment
US20060123018A1 (en) Algorithm for maximizing application availability during automated enterprise deployments
CN105389231A (en) Database dual-computer backup method and system
CN101196839A (en) Data renovation and synchronization process of double-flash read-only memory
CN115098299A (en) Backup method, disaster recovery method, device and equipment for virtual machine
CN113986450A (en) Virtual machine backup method and device
CN110858168A (en) Cluster node fault processing method and device and cluster node
US9965357B1 (en) Virtual backup and restore of virtual machines
CN107623705B (en) Storage mode upgrading method, device and system based on video cloud storage system
CN117032790A (en) Virtualization system version synchronization method, device, equipment and medium
CN115878361A (en) Node management method and device for database cluster and electronic equipment
CN113703823A (en) BMC (baseboard management controller) firmware upgrading method and device, electronic equipment and storage medium
CN114443060A (en) Operating system deployment method and system
CN111858175A (en) Method and equipment for backing up cloud platform data based on mobile storage device
CN107544868B (en) Data recovery method and device
CN112346913A (en) Data recovery method, device, equipment and storage medium
CN111400098A (en) Copy management method and device, electronic equipment and storage medium
CN116185462B (en) Method, system, computer and readable storage medium for front-end application upgrade
CN116302696A (en) Archive log generation method of database system, storage medium and computer device

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