CN116132276A - Operating system replacement method, operating system replacement device, electronic equipment and readable storage medium - Google Patents

Operating system replacement method, operating system replacement device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN116132276A
CN116132276A CN202211682443.4A CN202211682443A CN116132276A CN 116132276 A CN116132276 A CN 116132276A CN 202211682443 A CN202211682443 A CN 202211682443A CN 116132276 A CN116132276 A CN 116132276A
Authority
CN
China
Prior art keywords
configuration information
operating system
client node
replacement
management server
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
CN202211682443.4A
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.)
Tianyi Cloud Technology Co Ltd
Original Assignee
Tianyi Cloud 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 Tianyi Cloud Technology Co Ltd filed Critical Tianyi Cloud Technology Co Ltd
Priority to CN202211682443.4A priority Critical patent/CN116132276A/en
Publication of CN116132276A publication Critical patent/CN116132276A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Stored Programmes (AREA)
  • Computer And Data Communications (AREA)
  • Hardware Redundancy (AREA)

Abstract

The embodiment of the invention provides an operating system replacement method, an operating system replacement device, electronic equipment and a readable storage medium. In the method, a management server acquires current first configuration information of a first operating system from a client node under the condition of establishing communication connection with the client node provided with the first operating system; generating a system replacement task corresponding to each client node according to the first configuration information, wherein the system replacement task comprises second configuration information corresponding to each client node; and sending the system replacement task to the client node so that the client node can generate a second operating system according to the second configuration information to replace the first operating system. The whole replacement process is quick and simple, the dependence on manual replacement is greatly reduced, and the workload and complexity of operating system replacement are reduced.

Description

Operating system replacement method, operating system replacement device, electronic equipment and readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to an operating system replacement method, an operating system replacement device, an electronic device, and a readable storage medium.
Background
The operation of public cloud services depends on a special operating system, and currently, as the support of the original operating system is stopped, the operating systems of devices running the public cloud services in large quantities face updating.
In the prior art, service migration of an operating system, system reinstallation, reconfiguration of related configuration and the like are often performed manually.
However, because the operating system is located at a lower layer, the difficulty, workload and complexity of manually replacing the system are all greater.
Disclosure of Invention
The invention provides an operating system replacement method, an operating system replacement device, electronic equipment and a readable storage medium, which are used for solving the technical problems of great difficulty, workload and complexity of manually replacing a system.
In a first aspect, the present invention provides an operating system replacement method, applied to a management server, where the method includes:
under the condition of establishing communication connection with a client node installed with a first operating system, acquiring current first configuration information of the first operating system from the client node;
generating a system replacement task corresponding to each client node according to the first configuration information, wherein the system replacement task comprises second configuration information corresponding to each client node;
and sending the system replacement task to the client node so that the client node can generate a second operating system according to the second configuration information to replace the first operating system.
In a second aspect, the present invention provides an operating system replacement method applied to a client node, where the client node installs a first operating system, the method including:
under the condition of establishing communication connection with a management server, providing current first configuration information of a first operating system for the management server, so that the management server generates a system replacement task corresponding to the client node according to the first configuration information;
under the condition that a system replacement task sent by the management server is obtained, analyzing the system replacement task to obtain second configuration information corresponding to the client node;
and replacing the second configuration information with the first configuration information, so that the first operating system of the client node is replaced with the second operating system.
In a third aspect, the present invention provides an operating system replacement apparatus, applied to a management server, the apparatus comprising:
the system comprises an acquisition module, a first configuration module and a second configuration module, wherein the acquisition module is used for acquiring current first configuration information of a first operating system from a client node installed with the first operating system under the condition of establishing communication connection with the client node;
the generation module is used for generating a system replacement task corresponding to each client node according to the first configuration information, wherein the system replacement task comprises second configuration information corresponding to each client node;
and the issuing module is used for sending the system replacement task to the client node so that the client node can generate a second operating system according to the second configuration information to replace the first operating system.
The system comprises a providing module, a management server and a client node, wherein the providing module is used for providing current first configuration information of a first operating system for the management server under the condition of establishing communication connection with the management server so that the management server generates a system replacement task corresponding to the client node according to the first configuration information;
the analysis module is used for analyzing the system replacement task to obtain second configuration information corresponding to the client node under the condition that the system replacement task sent by the management server is obtained;
and the replacing module is used for replacing the second configuration information with the first configuration information, so that the first operating system of the client node is replaced with the second operating system.
In a fifth aspect, the present invention provides an electronic device, comprising: a processor, a memory and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the operating system replacement method described above when executing the program.
In a sixth aspect, the present invention provides a readable storage medium, which when executed by a processor of an electronic device, enables the electronic device to perform the above-described operating system replacement method.
In the embodiment of the invention, the management server generates the system replacement task corresponding to the client node according to the current first configuration information of the first operating system of the client node, and sends the system replacement task containing the second configuration information to the client node so that the client node can automatically execute the system replacement task to generate the second operating system to replace the first operating system, and the client node can restore the original service deployment and related configuration in the client node according to the second configuration information while automatically installing the new second operating system, thereby realizing unified management of the replacement of the operating systems of the batch of client nodes.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart illustrating steps of an operating system replacement method according to an embodiment of the present invention;
FIG. 2 is a diagram of an implementation scenario provided by an embodiment of the present invention;
FIG. 3 is a diagram of interactive steps for providing an operating system replacement method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating steps of another operating system replacement method according to an embodiment of the present invention;
FIG. 5 is an alternative flow chart of actions of a client node provided by an embodiment of the present invention;
FIG. 6 is a block diagram of an operating system replacement apparatus according to an embodiment of the present invention;
FIG. 7 is a block diagram of another operating system replacement device provided in an embodiment of the present invention;
fig. 8 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a flowchart of a step of an operating system replacement method provided in an embodiment of the present invention, which is applied to a management server, as shown in fig. 1, and the method may include:
step 101, under the condition of establishing communication connection with a client node installed with a first operating system, acquiring current first configuration information of the first operating system from the client node.
In the embodiment of the present invention, referring to fig. 2, an implementation scenario diagram provided by the embodiment of the present invention is shown, including: a management server and a plurality of client nodes. The embodiment of the invention aims to automatically realize the replacement from a first operating system to a second operating system in a client node by interacting with the client node needing operating system replacement through a management server, and minimize the manual intervention in the process.
In the step, the management server needs to establish communication connection with the client node provided with the first operating system, and after the communication connection is established, data information interaction can be realized between the management server and the client node, so that the management server can acquire the current first configuration information of the first operating system from the client node.
Specifically, after the management server side obtains the communication address of the client side node, communication connection with the client side node can be established, further, the client side node can extract current first configuration information of a first operating system (old operating system) of the client side node and send the current first configuration information to the management server side, the current first configuration information of the first operating system is used for reflecting information such as configuration, network configuration, system configuration and the like of a software package of a service application currently related and installed by the client side node, and the information can be used for the management server side to know conditions such as service deployment, configuration and the like of the current operating system of the client side node, so that a subsequent management server side can correspondingly generate a system replacement task meeting own requirements of the client side node according to the information.
And 102, generating a system replacement task corresponding to each client node according to the first configuration information, wherein the system replacement task comprises second configuration information corresponding to each client node.
Optionally, the first configuration information and the second configuration information both include: network configuration information, software package configuration information, system configuration information.
In the embodiment of the invention, when the client node needs to replace and install a new operating system, the new operating system needs to meet the condition that service deployment before the client node is unchanged and also needs to meet the condition that configuration before the client node (system configuration, software package configuration, network configuration and the like) is unchanged, and because the first configuration information reflects the service condition and the configuration condition of the client node which have been deployed before the client node, the management server can generate a system replacement task corresponding to each client node according to the first configuration information, and the system replacement task can contain second configuration information corresponding to the client node.
Specifically, the system replacement task is a software process capable of being automatically executed, and the system replacement task can be sent to the client node by the management server to be automatically executed. The second configuration information is information existing in the system replacement task, inherits the service application deployed by the first configuration information and related configuration, and can restore original service deployment and related configuration in a new operating system of the client node when the client node executes the system replacement task.
Step 103, the system replacement task is sent to the client node, so that the client node generates a second operating system according to the second configuration information to replace the first operating system.
After the management server sends the system replacement task to the client node, the client node can automatically execute the system replacement task and generate a second operating system to replace the first operating system according to the second configuration information in the system replacement task, and the client node can restore the original service deployment and related configuration in the client node while installing the new second operating system.
Optionally, the method may further include:
step 104, modifying the software package configuration information of the second configuration information in response to the modification operation of the software package configuration information of the second configuration information.
It should be noted that, the second configuration information may also be configuration information obtained by further modifying the first configuration information twice, and the related modification may be determined according to the actual requirement, which is not limited in the embodiment of the present invention.
If the first configuration information defines that the client node installs the service application a, the service application b and the service application c, and according to actual requirements, the service node d is expected to be added in the client node, the second configuration information can further define the service application d on the basis that the client node installs the service application a, the service application b and the service application c.
Optionally, the method may further include:
step 105, obtaining the communication address of the client node, and establishing communication connection with the client node according to the communication address.
In one implementation manner of the embodiment of the present invention, a worker may obtain a communication address of a client node, and input the communication address in an operation software platform of a management server, so that the management server may establish a communication connection with the client node through the communication address.
Optionally, the method further comprises:
and 106, acquiring the system replaced state information sent by the client node.
And 107, generating and storing a system replacement log according to the system replacement state information of the client node.
In the embodiment of the present invention, for steps 106 to 107, after the client node completes the replacement of the operating system, the state information after the replacement of the system may be generated and sent to the management server, where the state information after the replacement of the system reflects the execution result of the operation of the client node for replacing the operating system, including information such as successful replacement and failure replacement, and the management server may generate and store a system replacement log based on the state information after the replacement of the system, where the system replacement log generated by the management server may be used to reflect the system replacement record of the management server for batch client nodes, and may manage the system replacement of the client node based on the system replacement log in the later period.
Referring to fig. 3, a flowchart of interaction steps of an operating system replacement method according to an embodiment of the present invention is shown, including: s1, a management server collects first configuration information to be replaced in a client node; s2, the client node returns first configuration information; s3, the management server generates a system replacement task corresponding to the client node and transmits the system replacement task to the corresponding client node; s4, the client node automatically completes the replacement of the operating system according to the system replacement task and sends the replaced system state information to the management server; s5, restarting the client node after the management server detects that the replacement is successful, and recovering the original operating system of the client node if the replacement is detected to be failed; finally, S6, the management server side can also generate a system replacement log to be checked by an administrator.
In summary, according to the operating system replacement method provided by the embodiment of the invention, the management server generates the system replacement task corresponding to the client node according to the current first configuration information of the first operating system of the client node, and sends the system replacement task containing the second configuration information to the client node, so that the client node automatically executes the system replacement task to generate the second operating system to replace the first operating system, and the client node can restore the original service deployment and related configuration in the client node according to the second configuration information while automatically installing the new second operating system, thereby realizing unified management of replacement of the operating systems of batch client nodes, and the whole process is fast and simple, greatly reducing the dependence on manual replacement, and reducing the workload and complexity of the replacement of the operating systems.
Fig. 4 is a flowchart of steps of an operating system replacement method provided by an embodiment of the present invention, which is applied to a client node, where the client node installs a first operating system, as shown in fig. 4, and the method may include:
step 201, under the condition of establishing communication connection with a management server, providing current first configuration information of a first operating system for the management server, so that the management server generates a system replacement task corresponding to the client node according to the first configuration information.
In the embodiment of the invention, the client node can provide the communication address of the client node to the management server, the management server can establish communication connection with the client node after acquiring the communication address of the client node, the client node can provide the current first configuration information of the first operating system for the management server after establishing the communication connection, the current first configuration information of the first operating system is used for reflecting the information of the service application, the network configuration, the system configuration and the like which are currently related and installed by the client node, and the information can be used for the management server to know the service deployment, the configuration and the like of the current operating system of the client node, so that the subsequent management server can correspondingly generate the system replacement task meeting the self requirements of the client node according to the information.
Step 202, under the condition of obtaining a system replacement task sent by the management server, analyzing the system replacement task to obtain second configuration information corresponding to the client node.
In the embodiment of the invention, the system replacement task is a software process capable of being automatically executed, and the system replacement task can be sent to the client node by the management server for automatic operation. The second configuration information is information existing in the system replacement task, inherits the service application deployed by the first configuration information and related configuration, and can restore original service deployment and related configuration in a new operating system of the client node when the client node executes the system replacement task.
Step 203, replacing the first configuration information with the second configuration information, so that the first operating system of the client node is replaced with the second operating system.
After the management server sends the system replacement task to the client node, the client node can automatically execute the system replacement task and generate a second operating system to replace the first operating system according to the second configuration information in the system replacement task, and the client node can restore the original service deployment and related configuration in the client node while installing the new second operating system.
Optionally, the first configuration information and the second configuration information both include: network configuration information, software package configuration information, system configuration information.
Optionally, in the process of providing the first configuration information, the client node further includes:
step 204, through path: and acquiring network configuration information of the first configuration information.
In the embodiment of the invention, the path of the client node: network card configuration files can be extracted from the etc/sysconfig/network-scirpts, and the files can be used as network configuration information of the first configuration information.
Step 205, obtaining the software package configuration information of the first configuration information by running an rpm-qa command.
In the embodiment of the invention, the client node can obtain all packet lists installed by the current first operating system through RPM (a powerful command line driven software packet management tool for installing, uninstalling, checking, inquiring and updating software packets on the Linux system) by running the RPM-qa command, and the information in the lists can be extracted to be used as the software packet configuration information of the first configuration information, so that the software packet configuration information reflects the configuration of service applications implemented for the first operating system in the current client node.
Step 206, obtaining the system configuration information of the first configuration information by obtaining a system configuration file and a configuration file of system installation software.
The system configuration information comprises all system configuration files under/etc/directory, and also comprises all configuration files/usr/local and/opt/directory of system installation software, etc.
Optionally, step 203 may specifically include:
substep 2031, modifying, by the second configuration information, a yum source of the first operating system, thereby implementing replacement of the first configuration information.
Sub-step 2032, completing a replacement operation of the first operating system to the second operating system by running the modified yum source if it is determined that the availability check of the modified yum source passes.
In an embodiment of the present invention, for sub-steps 2031-2032, the yum (Yellow dog Updater, modifier) source is a free, open-source command line software package management tool that can run on an RPM package managed Linux operating system, the yum source can automatically download RPM packages from a designated server and install based on RPM package management, and can automatically process dependency relationships, install all dependent software packages at a time, without having to download and install cumbersome one time.
Therefore, the client node can update and replace the software warehouse of the yum source based on the second configuration information in the system replacement task sent by the management server, namely, replace the software application deployment and related configuration defined by the first configuration information with the software application deployment and related configuration defined by the second configuration information.
Further, after replacement, the availability of the modified yum source can be determined, and in the case that the availability check of the modified yum source is determined to pass, the software deployment from the first operating system to the second operating system and the replacement operation of the related configuration are completed by running the modified yum source.
Wherein the availability check of the yum source includes: adding a repo file under the/etc/yun.d. repo/directory, then executing yum clean all, and then executing yum makecache return information without error, which indicates that yum sources are available.
Optionally, after step 203, the method may further include:
step 207, performing a system restart operation, and acquiring state information after system replacement after the restart is completed.
And step 208, sending the state information after the system replacement to the management server.
In the embodiment of the present invention, for steps 207 to 208, after the client node completes the replacement of the operating system, the state information after the replacement of the system may be generated and sent to the management server, where the state information after the replacement of the system reflects the execution result of the operation of the client node for replacing the operating system, including information such as successful replacement and failed replacement, and the management server may generate and store a system replacement log based on the state information after the replacement of the system, where the system replacement log generated by the management server may be used to reflect the system replacement record of the management server for batch client nodes, and may manage the system replacement of the client node based on the system replacement log in the later period.
Optionally, the method may further include:
step 209, backing up related files of the first operating system.
After step 203, the method may further include:
step 210, responding to a system recovery instruction sent by the management server, and recovering the operating system currently operated by the client node into the first operating system according to the backed-up related file of the first operating system; the system recovery instruction is an instruction sent by the management server under the condition that the state information after the system replacement is not checked to pass.
In the embodiment of the present invention, for steps 209-210, before the client node performs the operating system replacement, the client node may also backup the related files of the original first operating system, and after the first operating system is replaced with the second operating system, in response to the system restoration instruction sent by the management server, restore the operating system currently running by the client node to the first operating system according to the related files of the backed-up first operating system.
The system recovery instruction is an instruction sent by the management server under the condition that the state information after the system replacement is not checked to pass, so that the management server can recover the original first operating system of the client node under the condition that the management server considers that the operation system of the client node is not replaced successfully, thereby ensuring the normal operation of the client node and avoiding abnormal operation of the client node caused by the unsuccessful operation system replacement.
In summary, referring to fig. 5, an alternative operation flow chart of a client node provided by an embodiment of the present invention is shown, including: the client node analyzes the replacement configuration file to obtain second configuration information; then the client node backs up the source system, installs the in-place replacement tool, and then the client node replaces the Yum warehouse with the repo of the second operating system; the client node executes the local replacement operation, and then the management server only needs to check the operation system after replacement, completes the replacement of the operation system under the condition that the check passes, and restores the original operation system backed up by the client node under the condition that the check does not pass.
In summary, according to the operating system replacement method provided by the embodiment of the invention, the management server generates the system replacement task corresponding to the client node according to the current first configuration information of the first operating system of the client node, and sends the system replacement task containing the second configuration information to the client node, so that the client node automatically executes the system replacement task to generate the second operating system to replace the first operating system, and the client node can restore the original service deployment and related configuration in the client node according to the second configuration information while automatically installing the new second operating system, thereby realizing unified management of replacement of the operating systems of batch client nodes, and the whole process is fast and simple, greatly reducing the dependence on manual replacement, and reducing the workload and complexity of the replacement of the operating systems.
Fig. 6 is a block diagram of an operating system replacement device, provided by an embodiment of the present invention, applied to a management server, where the device may include:
an obtaining module 301, configured to obtain, from a client node installed with a first operating system, current first configuration information of the first operating system when a communication connection is established with the client node;
a generating module 302, configured to generate a system replacement task corresponding to each client node according to the first configuration information, where the system replacement task includes second configuration information corresponding to each client node;
and the issuing module 303 is configured to send the system replacement task to the client node, so that the client node generates a second operating system according to the second configuration information to replace the first operating system.
Optionally, the first configuration information and the second configuration information both include: network configuration information, software package configuration information, system configuration information.
Optionally, the apparatus further includes:
and the modification module is used for responding to the modification operation of the software package configuration information of the second configuration information and modifying the software package configuration information of the second configuration information.
Optionally, the apparatus further includes:
and the address module is used for acquiring the communication address of the client node and establishing communication connection with the client node according to the communication address.
Optionally, the apparatus further includes:
the post-replacement information acquisition module is used for acquiring the post-replacement state information of the system sent by the client node;
and the log module is used for generating and storing a system replacement log according to the system replacement state information of the client node.
In summary, according to the operating system replacement method provided by the embodiment of the invention, the management server generates the system replacement task corresponding to the client node according to the current first configuration information of the first operating system of the client node, and sends the system replacement task containing the second configuration information to the client node, so that the client node automatically executes the system replacement task to generate the second operating system to replace the first operating system, and the client node can restore the original service deployment and related configuration in the client node according to the second configuration information while automatically installing the new second operating system, thereby realizing unified management of replacement of the operating systems of batch client nodes, and the whole process is fast and simple, greatly reducing the dependence on manual replacement, and reducing the workload and complexity of the replacement of the operating systems.
Fig. 7 is a block diagram of an operating system replacement device, provided by an embodiment of the present invention, applied to a management server, where the device may include:
a providing module 401, configured to provide, when a communication connection with a management server is established, first current configuration information of a first operating system to the management server, so that the management server generates a system replacement task corresponding to the client node according to the first configuration information;
the parsing module 402 is configured to parse the system replacement task to obtain second configuration information corresponding to the client node when the system replacement task sent by the management server is obtained;
a replacing module 403, configured to replace the second configuration information with the first configuration information, so that the first operating system of the client node is replaced with the second operating system.
Optionally, the first configuration information and the second configuration information both include: network configuration information, software package configuration information, system configuration information.
Optionally, in the process of providing the first configuration information, the apparatus further includes:
a first extraction module for passing the path: acquiring network configuration information of the first configuration information;
the second extraction module is used for obtaining the software package configuration information of the first configuration information by running an rpm-qa command;
and the third extraction module is used for obtaining the system configuration information of the first configuration information by obtaining the system configuration file and the configuration file of the system installation software.
Optionally, the replacing module 403 includes:
a replacement sub-module, configured to modify a yum source of the first operating system through the second configuration information, so as to implement replacement of the first configuration information;
and the operation sub-module is used for completing the replacement operation from the first operating system to the second operating system by operating the modified yum source under the condition that the availability check of the modified yum source is confirmed to pass.
Optionally, the apparatus further includes:
the restarting module is used for executing the restarting operation of the system and acquiring the state information after the system replacement after the restarting is completed;
and the sending module is used for sending the state information after the system replacement to the management server.
Optionally, the apparatus further includes:
the backup module is used for backing up related files of the first operating system;
the recovery module is used for responding to a recovery system instruction sent by the management server and recovering the operating system currently operated by the client node into the first operating system according to the backed-up related files of the first operating system; the system recovery instruction is an instruction sent by the management server under the condition that the state information after the system replacement is not checked to pass.
In summary, according to the operating system replacement method provided by the embodiment of the invention, the management server generates the system replacement task corresponding to the client node according to the current first configuration information of the first operating system of the client node, and sends the system replacement task containing the second configuration information to the client node, so that the client node automatically executes the system replacement task to generate the second operating system to replace the first operating system, and the client node can restore the original service deployment and related configuration in the client node according to the second configuration information while automatically installing the new second operating system, thereby realizing unified management of replacement of the operating systems of batch client nodes, and the whole process is fast and simple, greatly reducing the dependence on manual replacement, and reducing the workload and complexity of the replacement of the operating systems.
The present invention also provides an electronic device, see fig. 8, comprising: a processor 901, a memory 902 and a computer program 9021 stored and executable on said memory, said processor implementing the operating system replacement method of the previous embodiments when executing said program.
The present invention also provides a readable storage medium which, when executed by a processor of an electronic device, enables the electronic device to perform the operating system replacement method of the foregoing embodiments.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
It should be noted that, various information and data acquired in the embodiment of the present invention are acquired under the condition that the information/data holder is authorized.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with the teachings herein. The required structure for a construction of such a system is apparent from the description above. In addition, the present invention is not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functions of some or all of the components in a sorting device according to the present invention may be implemented in practice using a microprocessor or Digital Signal Processor (DSP). The present invention may also be implemented as an apparatus or device program for performing part or all of the methods described herein. Such a program embodying the present invention may be stored on a computer readable medium, or may have the form of one or more signals. Such signals may be downloaded from an internet website, provided on a carrier signal, or provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names.
The user information (including but not limited to user equipment information, user personal information, etc.), related data, etc. related to the present invention are all information authorized by the user or authorized by each party.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (15)

1. An operating system replacement method applied to a management server, the method comprising:
under the condition of establishing communication connection with a client node installed with a first operating system, acquiring current first configuration information of the first operating system from the client node;
generating a system replacement task corresponding to each client node according to the first configuration information, wherein the system replacement task comprises second configuration information corresponding to each client node;
and sending the system replacement task to the client node so that the client node can generate a second operating system according to the second configuration information to replace the first operating system.
2. The method of claim 1, wherein the first configuration information and the second configuration information each comprise: network configuration information, software package configuration information, system configuration information.
3. The method according to claim 2, wherein the method further comprises:
and modifying the software package configuration information of the second configuration information in response to a modification operation of the software package configuration information of the second configuration information.
4. The method according to claim 1, wherein the method further comprises:
and acquiring the communication address of the client node, and establishing communication connection with the client node according to the communication address.
5. The method according to claim 1, wherein the method further comprises:
acquiring system replaced state information sent by the client node;
and generating and storing a system replacement log according to the system replacement state information of the client node.
6. An operating system replacement method applied to a client node, the client node having a first operating system installed thereon, the method comprising:
under the condition of establishing communication connection with a management server, providing current first configuration information of a first operating system for the management server, so that the management server generates a system replacement task corresponding to the client node according to the first configuration information;
under the condition that a system replacement task sent by the management server is obtained, analyzing the system replacement task to obtain second configuration information corresponding to the client node;
and replacing the second configuration information with the first configuration information, so that the first operating system of the client node is replaced with the second operating system.
7. The method of claim 6, wherein the first configuration information and the second configuration information each comprise: network configuration information, software package configuration information, system configuration information.
8. The method of claim 7, wherein in providing the first configuration information, the method further comprises:
the passing path is as follows: acquiring network configuration information of the first configuration information;
obtaining software package configuration information of the first configuration information by operating an rpm-qa command;
and acquiring the system configuration information of the first configuration information by acquiring a system configuration file and a configuration file of system installation software.
9. The method of claim 6, wherein said replacing the second configuration information with the first configuration information such that the first operating system of the client node is replaced with a second operating system comprises:
modifying yum sources of the first operating system through the second configuration information, so that replacement of the first configuration information is realized;
in the event that a determination is made that the availability check of the modified yum source passes, a replacement operation of the first operating system to the second operating system is completed by running the modified yum source.
10. The method of claim 6, wherein after replacing the first operating system with the second operating system, the method further comprises:
executing a system restarting operation, and acquiring state information after system replacement after restarting is completed;
and sending the state information after the system replacement to the management server.
11. The method of claim 9, wherein after said parsing the system replacement task to obtain second configuration information corresponding to the client node, the method further comprises:
backing up related files of the first operating system;
after replacing the first operating system with the second operating system, the method further comprises:
responding to a system recovery instruction sent by the management server, and recovering the operating system currently operated by the client node into the first operating system according to the backed-up related files of the first operating system; the system recovery instruction is an instruction sent by the management server under the condition that the state information after the system replacement is not checked to pass.
12. An operating system replacement apparatus for use in a management server, the apparatus comprising:
the system comprises an acquisition module, a first configuration module and a second configuration module, wherein the acquisition module is used for acquiring current first configuration information of a first operating system from a client node installed with the first operating system under the condition of establishing communication connection with the client node;
the generation module is used for generating a system replacement task corresponding to each client node according to the first configuration information, wherein the system replacement task comprises second configuration information corresponding to each client node;
and the issuing module is used for sending the system replacement task to the client node so that the client node can generate a second operating system according to the second configuration information to replace the first operating system.
13. An operating system replacement apparatus for application to a client node, the client node having a first operating system installed thereon, the apparatus comprising:
the system comprises a providing module, a management server and a client node, wherein the providing module is used for providing current first configuration information of a first operating system for the management server under the condition of establishing communication connection with the management server so that the management server generates a system replacement task corresponding to the client node according to the first configuration information;
the analysis module is used for analyzing the system replacement task to obtain second configuration information corresponding to the client node under the condition that the system replacement task sent by the management server is obtained;
and the replacing module is used for replacing the second configuration information with the first configuration information, so that the first operating system of the client node is replaced with the second operating system.
14. An electronic device, comprising:
a processor, a memory and a computer program stored on the memory and executable on the processor, the processor implementing the method according to any one of claims 1-11 when executing the program.
15. A readable storage medium, characterized in that instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of any one of claims 1-11.
CN202211682443.4A 2022-12-26 2022-12-26 Operating system replacement method, operating system replacement device, electronic equipment and readable storage medium Pending CN116132276A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211682443.4A CN116132276A (en) 2022-12-26 2022-12-26 Operating system replacement method, operating system replacement device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211682443.4A CN116132276A (en) 2022-12-26 2022-12-26 Operating system replacement method, operating system replacement device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN116132276A true CN116132276A (en) 2023-05-16

Family

ID=86303851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211682443.4A Pending CN116132276A (en) 2022-12-26 2022-12-26 Operating system replacement method, operating system replacement device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN116132276A (en)

Similar Documents

Publication Publication Date Title
KR102047216B1 (en) Replaying jobs at a secondary location of a service
CN104679534B (en) System application installation package loading processing method, apparatus and terminal
US8010504B2 (en) Increasing application availability during automated enterprise deployments
CN102609281B (en) Distributed software patch update method and system
US9043781B2 (en) Algorithm for automated enterprise deployments
CN106657167B (en) Management server, server cluster, and management method
WO2022267407A1 (en) Automated operation and maintenance tool-based proxy deployment method and apparatus
US11645086B2 (en) System and method for implementing a filesystem agent management solution
CN112148315A (en) Software deployment method, device, server and storage medium
CN113642004B (en) Method, device and equipment for safely scanning and repairing container mirror image
CN110727547A (en) System and method for protecting Docker application container
CN109308184B (en) Middleware installation and update method, device and computer readable storage medium
WO2017198156A1 (en) Service deployment method, apparatus and system
CN109558147A (en) A kind of continuous integrating platform construction method based on Jenkins and Gitlab
CN110727575B (en) Information processing method, system, device and storage medium
CN112860645A (en) Processing method and device for offline compressed file, computer equipment and medium
US11379320B2 (en) Container recovery
CN115357258B (en) Application deployment method and device, storage medium and electronic device
CN116132276A (en) Operating system replacement method, operating system replacement device, electronic equipment and readable storage medium
CN111290766A (en) Knowledge base-based software batch deployment method and device
CN112148463B (en) Business process control method and device
CN117076180B (en) Information processing method, device, equipment and computer readable storage medium
CN114911710A (en) Code testing method and electronic equipment
CN113094211A (en) Backup data processing method and device
KR101191985B1 (en) Computer Job Log management system and The method to Automate for PCBANG

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
CB02 Change of applicant information

Address after: 100007 room 205-32, floor 2, building 2, No. 1 and No. 3, qinglonghutong a, Dongcheng District, Beijing

Applicant after: Tianyiyun Technology Co.,Ltd.

Address before: 100093 Floor 4, Block E, Xishan Yingfu Business Center, Haidian District, Beijing

Applicant before: Tianyiyun Technology Co.,Ltd.

CB02 Change of applicant information