A method, device, computer device and storage medium for reusing
By building a preset environment and database comparison and matching technology, the compatibility issue between the old operating system and the new RAID card was solved, and simplified deployment and stable operation of the server were achieved.
Patent Information
- Application Number
- CN202310277811.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-21
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2043-03-21
AI Technical Summary
When upgrading RAID cards on servers, existing technologies often cause deployment difficulties due to compatibility issues between the old operating system and the new hardware. Furthermore, existing solutions require large amounts of manpower and resources or have high operational risks.
Build a preset environment, generate a database of RAID card driver paths and operating system paths, and achieve reuse and installation of image files through comparison and matching, supporting compatibility of old operating systems with new RAID cards.
It supports new RAID cards on older operating systems, simplifies the deployment process, reduces technical difficulty and risks, and improves server compatibility and stability.
Smart Images

Figure CN116301942B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of servers, and in particular to a method and device for supporting an old version of an operating system, a computer device and a storage medium. BACKGROUND
[0002] As a kind of computer, the long-term reliable and stable operation of server determines its high requirement on compatibility, especially on customer operating system and upper-layer business application software, which leads to the fact that operating system and upper-layer business application software cannot always keep up with the update speed of hardware (including RAID card), and the original operating system does not have the characteristics of supporting new hardware, which brings a series of deployment and use problems when the server updates RAID card to expand business deployment and needs to maintain the original operating system and other software.
[0003] The existing solutions to solve this problem mainly include the following two kinds:
[0004] One is based on the latest RAID (Redundant Array of Independent Disks) card hardware, and uses a new operating system that supports the characteristics of the RAID card hardware, which requires the simultaneous adaptation and compatibility of hardware, operating system and upper-layer business application software, especially the compatibility between customer's upper-layer business system and new version of operating system, which will inevitably require a huge investment of manpower and material resources for re-development and adaptation, which poses a serious challenge to the agile deployment of servers and the long-term reliable and stable operation of servers after going online.
[0005] The other is to recompile the operating system kernel or compile the RAID card driver to form a driver ko file (module file), implant it into the decompressed initrd.img file (kernel file of linux system), repackage and compress the initrd.img file, and replace the original initrd.img file in the system to support the RAID card. This solution requires decompression and packaging of the image file, and has a higher requirement on the technical ability of the operator, and it is easy to enter problems during the production process, especially the operation of kernel file, which brings great hidden danger to the stable operation of the system, and in addition, it may lead to the fact that the original manufacturer no longer supports the maintenance after operating the image privately.
[0006] Therefore, it is urgent to propose a method and device for supporting an old version of an operating system of a server, a computer device and a storage medium. SUMMARY
[0007] Therefore, it is urgent to propose a method and device for supporting an old version of an operating system of a server, a computer device and a storage medium.
[0008] In one aspect, a method for reusing old data is provided, which is applied to a server operating system. The method comprises:
[0009] Step A: Building a first preset environment for reusing and deploying the server operating system;
[0010] Step B: creating a target path in the first preset environment according to preset rules, generating an operating system and driver storage database, wherein the target path includes a RAID card driver path and an operating system path;
[0011] Step C: comparing the input image file with the data in the operating system database;
[0012] Step D: In response to a successful comparison result, using a reserved calling interface to retrieve preset parameters and match them with the target RAID card drive path and drive information in the drive storage database;
[0013] Step E: In response to a successful matching result, a RAID card driver path is established and configuration parameters of the image file are activated to implement a reuse installation of the image file.
[0014] In one embodiment, the method further includes: comparing the input image file with the data in the operating system and driver database; in response to an unsuccessful comparison result, activating the configuration parameters of the image file and installing the server operating system.
[0015] In one embodiment, it also includes: the construction of a first preset environment for reuse deployment of a server operating system includes: building the same local area network and selecting a preset operating system; after the operating system is installed, turning off the firewall and preset services, and setting permission information; installing three services, Hypertext Transfer Protocol, Dynamic Host Configuration Protocol, and Simple File Transfer Protocol, on the preset server, and performing preset configuration operations on the server after the installation is complete.
[0016] In one embodiment, it also includes: creating a target path in the first preset environment according to preset rules, and generating an operating system and driver storage database includes: obtaining the operating system and the new version of the RAID card driver model in the demand library; classifying the new version of the RAID card driver model in the demand library according to the preset category according to the operating system software package management format; identifying the operating system in the demand library to determine whether the operating system supports the new version of the RAID card driver model; if not, creating a RAID card driver path and an operating system path in the preset operating system to generate the operating system and driver storage database.
[0017] In one of the embodiments, the comparing the input image file with the data in the operating system database comprises: inputting a preset image file according to a requirement; comparing the preset image file with the data in the operating system database; if the comparison is successful, determining that the preset image file does not support the new version of the RAID card; and if the comparison is not successful, determining that the preset image file supports the new version of the RAID card.
[0018] In one of the embodiments, the matching the preset parameters with the target RAID card drive path and drive information in the drive storage database by using the reserved calling interface comprises: in response to detecting that the preset image file does not support the new version of the RAID card, extracting the drive path and drive information of the new version of the RAID card from the drive storage database; matching the preset parameters with the drive path and drive information of the new version of the RAID card in a target file; and in response to detecting that the matching is successful, extracting the configuration parameters of the image file from a pre-constructed configuration parameter set, establishing the drive path of the new version of the RAID card, and activating the configuration parameters of the image file.
[0019] In one of the embodiments, the configuration parameter set is constructed by: installing the operating systems in the requirement library respectively, saving the configuration parameters in all operating system installation processes, and generating the configuration parameter set.
[0020] In another aspect, a device for legacy application is provided, which is applied to a server operating system, and the device comprises:
[0021] An environment construction module is configured to construct a first preset environment for legacy deployment of the server operating system.
[0022] A database generation module is configured to create a target path in the first preset environment according to a preset rule, and generate an operating system and drive storage database, wherein the target path comprises a RAID card drive path and an operating system path.
[0023] A comparison module is configured to compare an input image file with data in the operating system database.
[0024] A matching module is configured to, in response to a successful comparison result, match preset parameters with a target RAID card drive path and drive information in the drive storage database by using a reserved calling interface.
[0025] An installation module is configured to, in response to a successful matching result, establish a RAID card drive path and activate configuration parameters of the image file, and implement legacy installation of the image file.
[0026] In still another aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0027] Step A: constructing a first preset environment for server operating system legacy deployment;
[0028] Step B: creating a target path in the first preset environment according to preset rules, generating an operating system and drive storage database, wherein the target path comprises a RAID card drive path and an operating system path;
[0029] Step C: comparing the input image file with the data in the operating system database;
[0030] Step D: in response to a successful comparison result, using a reserved calling interface to call preset parameters and match the target RAID card drive path and drive information in the drive storage database;
[0031] Step E: in response to a successful matching result, establishing a RAID card drive path and activating the configuration parameters of the image file, thereby achieving legacy installation of the image file.
[0032] In still another aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0033] Step A: constructing a first preset environment for server operating system legacy deployment;
[0034] Step B: creating a target path in the first preset environment according to preset rules, generating an operating system and drive storage database, wherein the target path comprises a RAID card drive path and an operating system path;
[0035] Step C: comparing the input image file with the data in the operating system database;
[0036] Step D: in response to a successful comparison result, using a reserved calling interface to call preset parameters and match the target RAID card drive path and drive information in the drive storage database;
[0037] Step E: in response to a successful matching result, establishing a RAID card drive path and activating the configuration parameters of the image file, thereby achieving legacy installation of the image file.
[0038] The method, device, computer device and storage medium, the method comprises: constructing a first preset environment for server operating system legacy deployment; creating a target path in the first preset environment according to a preset rule, generating an operating system and drive storage database, the target path comprising a RAID card drive path and an operating system path; comparing an input image file with data in the operating system database; in response to a successful comparison result, using a reserved call interface to call preset parameters and match the target RAID card drive path and drive information in the drive storage database; in response to a successful matching result, establishing a RAID card drive path and activating configuration parameters of the image file, thereby achieving legacy installation of the image file. In the process of supporting a new version of RAID card using a historical version of operating system, the application compares data, and if no successful matching result is obtained, the new version of RAID card drive path is matched to establish a mapping between the new version of RAID card drive path and the operating system installation process path, so as to meet the collocation of the drive and the kernel, thereby realizing support of the new version of RAID card characteristics by the old version of operating system, and realizing legacy deployment of the server operating system. BRIEF DESCRIPTION OF DRAWINGS
[0039] Figure 1 An application environment diagram of the legacy method in an embodiment;
[0040] Figure 2 A flowchart of the legacy method in an embodiment;
[0041] Figure 3 A flowchart of the legacy steps in an embodiment;
[0042] Figure 4 A structural block diagram of the legacy device in an embodiment;
[0043] Figure 5 An internal structure diagram of the computer device in an embodiment. DETAILED DESCRIPTION
[0044] In order to make the objectives, technical solutions and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.
[0045] It should be understood that, in the description of the present application, unless the context clearly requires otherwise, the terms "comprise", "comprising", and the like in the specification and claims of the entire specification and claims should be interpreted as including the meaning of containing rather than the meaning of being exclusive or exhaustive; that is, the meaning of "including but not limited to".
[0046] It should also be understood that the terms "first", "second" and the like are used to describe various steps in a process, and do not imply or suggest relative importance. In addition, in the description of the present application, the meaning of "a plurality of" is two or more, unless otherwise specified.
[0047] It should be noted that the terms "S1", "S2" and the like are only for the purpose of describing the steps, and are not intended to specifically indicate the order or position, nor to limit the present application, but only to facilitate the description of the method of the present application, and cannot be understood as indicating the order of the steps. In addition, the technical solutions of various embodiments can be combined with each other, but it must be based on the realization of ordinary skilled in the art, when the combination of technical solutions appears contradictory or unachievable, it should be considered that the combination of technical solutions does not exist, nor in the protection scope required by the present application.
[0048] The old method provided by the present application can be applied to the application environment as shown in Figure 1 . Among them, the terminal 102 communicates with the data processing platform set on the server 104 through the network, wherein the terminal 102 can be but not limited to various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices, and the server 104 can be realized by independent server or multiple servers composed of server cluster.
[0049] Embodiment 1
[0050] In one embodiment, as shown in Figures 2-3 , an old method is provided, which is applied to the terminal in Figure 1 for example, including the following steps:
[0051] S1: Constructing a first preset environment for server operating system old deployment.
[0052] It should be noted that before creating the target path, the PXE (Preboot Execution Environment) and unattended environment need to be built, which has the basic conditions for realizing the server operating system reuse batch deployment. Specifically, the same local area network is constructed, a certain operating system is selected as the operating system of the PXE server, and full installation is preferred, so that more complete components can be used during deployment. After the system installation is completed, the firewall and SELINUX (Security-Enhanced Linux) service of the PXE server are closed, that is, the default service, and in order to prevent the lack of file and directory permissions created subsequently, the corresponding umask (permission information) is set. Finally, the httpd (Hypertext Transfer Protocol), dhcpd (Dynamic Host Configuration Protocol) and tftp (Trivial File Transfer Protocol) services are installed, and after the installation is completed, the server is preset configured. Among them, the above three services can be deployed on three servers, or a PXE server can be made by three servers, and the three services can be deployed on the PXE server. In the preferred solution of the embodiment, the three services are deployed on three servers respectively, so that the three services do not interfere with each other, so as to improve the security of data.
[0053] S2: creating a target path in the first preset environment according to a preset rule, generating an operating system and a drive storage database, the target path including a RAID card drive path and an operating system path.
[0054] It should be noted that the step is specifically:
[0055] Obtaining the operating system and the new version of the RAID card drive model in the requirement library;
[0056] According to the operating system software package management format, the new version of the RAID card drive model in the requirement library is classified according to a preset category, wherein the preset category can be rpm and deb;
[0057] Identifying the operating system in the requirement library, judging whether the operating system supports the new version of the RAID card drive model, that is, judging whether the operating system supports rpm and deb packages, and if it supports, then identifying whether it supports the new version of the RAID card drive model in turn;
[0058] If not supported, create a RAID card driver path and operating system path in the preset operating system, generate the operating system and driver storage database, that is, the operating system and driver storage module D0, and the path for storing the driver is / var / drivers / **.rpm and the path for storing the operating system is / var / images / **.iso.
[0059] S3: Compare the input image file with the data in the operating system database.
[0060] It should be noted that mirroring is a file storage form, which is a type of redundancy, and a complete copy of the data on one disk exists on another disk, which is mirroring. Many files can be made into an image file, which is opened by GHOST and other programs in a disk, and then restored to many files, and RAID1 and RAID10 use mirroring, and common image file formats include ISO, BIN, IMG, TAO, DAO, CIF, and FCD.
[0061] Further, the step specifically includes:
[0062] Access the pre-installed server to the PXE server, and input the preset image file P0 according to the demand;
[0063] Call the operating system and driver database D0 through the input control module C0, compare the preset image file with the data in the operating system database in the comparison system, and the data comparison of the embodiment can be the comparison of the file names of the two;
[0064] If the comparison is successful, it is judged that the preset image file does not support the new version of the RAID card;
[0065] If the comparison is not successful, it is judged that the preset image file supports the new version of the RAID card.
[0066] S4: In response to the comparison success result, the preset parameters are matched with the target RAID card driver path and driver information in the driver storage database by using a reserved calling interface.
[0067] It should be noted that when the preset mirror file does not support the new version of the RAID card, the target operating system on the PXE server is selected for decompression to generate an operating system installation prefetch path, and the drive path and drive information of the new version of the RAID card are extracted from the drive storage database, and the preset parameters in the target file are matched with the drive path and drive information of the new version of the RAID card, wherein the target file is a grub.cfg file, the preset parameter is an inst.dd parameter, and in response to detecting that the matching is successful, the configuration parameters of the mirror file are extracted from the pre-constructed configuration parameter set for the next step of operation, and on the basis of the above, operating system decompression module E0, operating system installation prefetch path module R0, and RAID card drive path matching module K0 are formed respectively and a reserved API (reserved calling interface) is reserved, wherein the construction process of the configuration parameter set comprises:
[0068] The operating systems in the requirement library are installed respectively, the configuration parameters in all operating system installation processes are saved, the configuration parameter set is generated, and a reserved API is reserved, which is stored synchronously to form a PXE installation storage module S0, that is, a module for storing a configuration parameter set.
[0069] Further, the above requirement library is a dynamically changing operating system image pool, and there may be a case that a specific operating system is missing in the PXE installation storage module S0, for example, a certain operating system of mips architecture does not exist, if the mirror file cannot match the data in the PXE installation storage module S0 or there is no corresponding mirror file, an error information will be output to the relevant personnel of the corresponding maintenance unit. If the matching problem cannot be solved, it is necessary to confirm whether the operating system in the requirement library exists and the corresponding parameters have been generated, and to check the response path, file permission and other problems; if there is no corresponding mirror file, it is necessary to confirm whether there is a corresponding input operating system, and if not, the installation of the operating system is terminated.
[0070] Further, the input mirror file is compared with the data in the operating system and drive database;
[0071] In response to the unsuccessful comparison result, the configuration parameters of the mirror file are activated and the server operating system is installed, that is, the mirror file supports the new version of the RAID card, and there is no need to perform the legacy installation configuration on the mirror file, and the operating system is directly installed and deployed.
[0072] S5: In response to the matching success result, the RAID card drive path is established and the configuration parameters of the mirror file are activated to realize the legacy installation of the mirror file.
[0073] It should be noted that when the mirror image file does not support the new version of the RAID card, the driver path matching module K0 is used to establish the mapping between the RAID card driver path and the operating system installation process path to meet the collocation of the driver and the kernel, thereby realizing the support of the old version of the operating system for the characteristics of the new RAID card.
[0074] In the above method, the method comprises: constructing a first preset environment for server operating system legacy deployment; creating a target path in the first preset environment according to a preset rule, generating an operating system and a driver storage database, the target path comprising a RAID card driver path and an operating system path; comparing an input mirror image file with data in the operating system database; in response to a successful comparison result, using a reserved calling interface to call preset parameters and match the target RAID card driver path and driver information in the driver storage database; and in response to a successful matching result, establishing a RAID card driver path and activating configuration parameters of the mirror image file, thereby realizing the legacy installation of the mirror image file. In the process of supporting the new version of the RAID card using the historical version of the operating system, the data is acquired for comparison, and if the matching is not successful, the new version of the RAID card driver path is matched to establish the mapping between the new version of the RAID card driver path and the operating system installation process path to meet the collocation of the driver and the kernel, thereby realizing the support of the old version of the operating system for the characteristics of the new RAID card and realizing the legacy deployment of the server operating system.
[0075] It should be understood that, although Figures 2-3 the steps in the flowchart of Figures 2-3 Unless specifically stated otherwise, the steps of the steps in the flowchart of
[0076] Embodiment 2
[0077] In one embodiment, as shown in Figure 4 An old version deployment device is provided, comprising: an environment construction module, a database generation module, a comparison module, a matching module and an installation module, wherein:
[0078] The environment construction module is configured to construct a first preset environment for server operating system legacy deployment.
[0079] A database generating module is configured to create a target path in the first preset environment according to a preset rule, and generate an operating system and drive storage database, wherein the target path comprises a RAID card drive path and an operating system path.
[0080] A comparison module is configured to compare the input image file with data in the operating system database.
[0081] A matching module is configured to, in response to a successful comparison result, match a preset parameter with a target RAID card drive path and drive information in the drive storage database by using a reserved calling interface.
[0082] An installation module is configured to, in response to a successful matching result, establish a RAID card drive path and activate configuration parameters of the image file, so as to realize a reinstallation of the image file.
[0083] As a preferred embodiment, the installation module is further configured to:
[0084] compare the input image file with data in the operating system and drive database.
[0085] In response to an unsuccessful comparison result, activate configuration parameters of the image file and install a server operating system.
[0086] As a preferred embodiment, the environment constructing module is configured to:
[0087] construct a same local area network, and select a preset operating system.
[0088] After the operating system is installed, close a firewall and a preset service, and set permission information.
[0089] Install three services of a hypertext transfer protocol, a dynamic host configuration protocol and a simple file transfer protocol on the preset server, and perform a preset configuration operation on the server after the installation is completed.
[0090] As a preferred embodiment, the database generating module is configured to:
[0091] acquire an operating system and a new version of a RAID card drive model in a demand library.
[0092] classify the new version of the RAID card drive model in the demand library according to a preset category according to an operating system software package management format.
[0093] identify the operating system in the demand library, and determine whether the operating system supports the new version of the RAID card drive model.
[0094] If not supported, create a RAID card driver path and an operating system path in the preset operating system, and generate the operating system and the driver storage database.
[0095] As a more preferable embodiment, the comparison module is specifically used for:
[0096] According to the demand, input a preset image file;
[0097] Compare the preset image file with data in the operating system database;
[0098] If the comparison is successful, it is determined that the preset image file does not support a new version of RAID card;
[0099] If the comparison is not successful, it is determined that the preset image file supports the new version of RAID card.
[0100] As a more preferable embodiment, the matching module is specifically used for:
[0101] In response to detecting that the preset image file does not support the new version of RAID card, extract a driver path and driver information of the new version of RAID card from the driver storage database;
[0102] Match the preset parameters in the target file with the driver path and the driver information of the new version of RAID card;
[0103] In response to detecting that the matching is successful, extract configuration parameters of the image file from a pre-constructed configuration parameter set, establish a new version of RAID card driver path, and activate the configuration parameters of the image file.
[0104] As a more preferable embodiment, the database generation module is specifically used for:
[0105] Install the operating systems in the demand library respectively, save configuration parameters in all operating system installation processes, and generate the configuration parameter set.
[0106] The specific limitations of the old benefit device can be referred to the limitations of the old benefit method in the above, which will not be repeated here. Each module in the above old benefit device can be realized by software, hardware and combination thereof in whole or in part. The above each module can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory in the computer device in software form, so as to be called and executed by the processor to perform the operations corresponding to each module.
[0107] Embodiment 3
[0108] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a reuse method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad provided on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0109] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0110] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are performed:
[0111] S1: Build the first preset environment for reusing and deploying the server operating system;
[0112] S2: creating a target path in the first preset environment according to preset rules, generating an operating system and driver storage database, wherein the target path includes a RAID card driver path and an operating system path;
[0113] S3: Compare the input image file with the data in the operating system database;
[0114] S4: In response to a successful comparison result, using a reserved calling interface to retrieve preset parameters and match them with the target RAID card drive path and drive information in the drive storage database;
[0115] S5: In response to a successful matching result, a RAID card driver path is established and configuration parameters of the image file are activated to implement a reuse installation of the image file.
[0116] In one embodiment, the processor, when executing the computer program, further implements the following steps:
[0117] comparing the inputted image file with data in the operating system and driver database;
[0118] in response to an unsuccessful comparison, activating configuration parameters of the image file and installing a server operating system.
[0119] In one embodiment, the processor, when executing the computer program, further implements the following steps:
[0120] building the same local area network and selecting a preset operating system;
[0121] after the operating system is installed, closing a firewall and a preset service, and setting permission information;
[0122] installing three services of a hypertext transfer protocol, a dynamic host configuration protocol and a simple file transfer protocol on the preset server, and performing a preset configuration operation on the server after the installation is completed.
[0123] In one embodiment, the processor, when executing the computer program, further implements the following steps:
[0124] obtaining an operating system and a new version of RAID card drive model in a requirement library;
[0125] classifying the new version of RAID card drive model in the requirement library according to a preset category according to an operating system software package management format;
[0126] identifying the operating system in the requirement library, and determining whether the operating system supports the new version of RAID card drive model;
[0127] if not, creating a RAID card drive path and an operating system path in the preset operating system, and generating an operating system and driver storage database.
[0128] In one embodiment, the processor, when executing the computer program, further implements the following steps:
[0129] inputting a preset image file according to a requirement;
[0130] comparing the preset image file with data in the operating system database;
[0131] if the comparison is successful, determining that the preset image file does not support a new version of RAID card;
[0132] if the comparison is unsuccessful, determining that the preset image file supports the new version of RAID card.
[0133] In one embodiment, the processor, when executing the computer program, also implements the following steps:
[0134] extracting the drive path and drive information of the new version of RAID card from the drive storage database in response to detecting that the preset mirror file does not support the new version of RAID card;
[0135] matching the preset parameters in the target file with the drive path and drive information of the new version of RAID card;
[0136] extracting the configuration parameters of the mirror file from the pre-constructed configuration parameter set in response to detecting that the matching is successful, establishing the drive path of the new version of RAID card and activating the configuration parameters of the mirror file.
[0137] In one embodiment, the processor, when executing the computer program, also implements the following steps:
[0138] installing the operating systems in the requirement library respectively, saving the configuration parameters in all operating system installation processes, and generating the configuration parameter set.
[0139] Embodiment 4
[0140] In one embodiment, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program. The computer program, when executed by a processor, implements the following steps:
[0141] S1: constructing a first preset environment for server operating system legacy deployment;
[0142] S2: creating a target path in the first preset environment according to a preset rule, generating an operating system and drive storage database, and the target path includes a RAID card drive path and an operating system path;
[0143] S3: comparing the input mirror file with the data in the operating system database;
[0144] S4: in response to a successful comparison result, matching the preset parameters with the target RAID card drive path and drive information in the drive storage database by using a reserved calling interface;
[0145] S5: in response to a successful matching result, establishing the RAID card drive path and activating the configuration parameters of the mirror file, and realizing the legacy installation of the mirror file.
[0146] In one embodiment, the computer program, when executed by a processor, also implements the following steps:
[0147] comparing the input mirror file with the data in the operating system and drive database;
[0148] In response to the result of the comparison being unsuccessful, configuration parameters of the mirror file are activated and installation of the server operating system is performed.
[0149] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0150] The same local area network is constructed, and a preset operating system is selected;
[0151] After the operating system is installed, the firewall and the preset service are closed, and permission information is set;
[0152] Three services of a hypertext transfer protocol, a dynamic host configuration protocol, and a simple file transfer protocol are installed on the preset server, and preset configuration operations are performed on the server after the installation is completed.
[0153] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0154] An operating system and a new version of a RAID card drive model in a requirement library are obtained;
[0155] The new version of the RAID card drive model in the requirement library is classified according to a preset category according to an operating system software package management format;
[0156] The operating system in the requirement library is identified, and it is determined whether the operating system supports the new version of the RAID card drive model;
[0157] If not, a RAID card drive path and an operating system path are created in the preset operating system, and a storage database of the operating system and the drive is generated.
[0158] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0159] A preset mirror file is input according to a requirement;
[0160] The preset mirror file is compared with data in the operating system database;
[0161] If the comparison is successful, it is determined that the preset mirror file does not support a new version of a RAID card;
[0162] If the comparison is unsuccessful, it is determined that the preset mirror file supports the new version of the RAID card.
[0163] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0164] extracting the drive path and the drive information of the new version of the RAID card from the drive storage database in response to detecting that the preset mirror file does not support the new version of the RAID card;
[0165] matching the drive path and the drive information of the new version of the RAID card with preset parameters in the target file;
[0166] extracting configuration parameters of the mirror file from a pre-constructed configuration parameter set in response to detecting that the matching is successful, establishing a drive path of the new version of the RAID card and activating the configuration parameters of the mirror file.
[0167] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0168] installing the operating systems in the requirement library respectively, saving configuration parameters in all operating system installation processes, and generating the configuration parameter set.
[0169] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer readable storage medium. When the computer program is executed, the processes of the above-mentioned embodiments can be included. Any reference to memory, storage, database or other medium used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration but not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM) and memory bus dynamic RAM (RDRAM) and the like.
[0170] Any combination of the technical features of the above embodiments can be made. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described. However, as long as the combination of the technical features does not exist, it should be considered as the scope of the present application.
[0171] The above-described embodiments are merely illustrative of several embodiments of the present application, which are described in more detail and in a specific and detailed manner, but should not be construed as limiting the scope of the patent. It should be noted that for those skilled in the art, several modifications and improvements can be made without departing from the concept of the present application, and these are all within the scope of the present application. Therefore, the scope of protection of the patent of the present application should be subject to the appended claims.
Claims
1. A method for reusing waste, characterized in that: Applied to a server operating system, the method includes: Build the first preset environment for server operating system reuse deployment; Creating a target path in the first preset environment according to preset rules, generating an operating system and driver storage database, wherein the target path includes a RAID card driver path and an operating system path; Comparing the input image file with the data in the operating system database; In response to a successful comparison result, using a reserved calling interface to retrieve preset parameters and match them with the target RAID card drive path and drive information in the drive storage database; In response to a successful matching result, establishing a RAID card driver path and activating configuration parameters of the image file to implement a reuse installation of the image file; The comparing the input image file with the data in the operating system database includes: Enter the preset image file as required; Comparing the preset image file with the data in the operating system database; If the comparison is successful, it is determined that the preset image file does not support the new version of the RAID card; In response to detecting that the preset image file does not support the new version of the RAID card, extracting the drive path and drive information of the new version of the RAID card from the drive storage database; Using preset parameters in the target file to match the drive path and drive information of the new version of the RAID card; In response to detecting a successful match, the configuration parameters of the image file are extracted from a pre-built configuration parameter set, a new version of the RAID card driver path is established, and the configuration parameters of the image file are activated.
2. The method for recycling old waste according to claim 1, wherein: The method further comprises: Compare the input image file with the data in the operating system and driver database; In response to an unsuccessful comparison result, the configuration parameters of the image file are activated and the server operating system is installed.
3. The method for recycling old objects according to claim 1, wherein: The first preset environment for reusing and deploying the server operating system includes: Build the same LAN and select the preset operating system; After the operating system is installed, the firewall and preset services are disabled, and permission information is set; The three services of Hypertext Transfer Protocol, Dynamic Host Configuration Protocol and Simple File Transfer Protocol are installed on the preset server, and the preset configuration operation is performed on the server after the installation is completed.
4. The method for recycling old objects according to claim 1, wherein: The step of creating a target path in the first preset environment according to preset rules and generating an operating system and driver storage database includes: Obtain the operating system and new RAID card driver model from the requirements library; Classifying the new RAID card driver models in the demand library according to preset categories based on the operating system software package management format; Identify the operating system in the requirement library and determine whether the operating system supports the new version of the RAID card driver model; If not supported, a RAID card driver path and an operating system path are created in the preset operating system to generate the operating system and driver storage database.
5. The method for recycling old objects according to claim 1, wherein: The comparing the input image file with the data in the operating system database includes: Enter the preset image file as required; Comparing the preset image file with the data in the operating system database; If the comparison is unsuccessful, it is determined that the preset image file supports the new version of the RAID card.
6. The method for recycling old objects according to claim 5, characterized in that: The process of constructing the configuration parameter set includes: The operating systems in the requirement library are installed respectively, and the configuration parameters during the installation of all operating systems are saved to generate the configuration parameter set.
7. A recycling device for implementing the recycling method according to any one of claims 1 to 6, characterized in that: Applied to a server operating system, the device includes: An environment building module, used to build a first preset environment for reusing and deploying a server operating system; A database generation module, configured to create a target path in the first preset environment according to preset rules, and generate an operating system and driver storage database, wherein the target path includes a RAID card driver path and an operating system path; A comparison module, configured to compare the input image file with the data in the operating system database; A matching module, configured to, in response to a successful comparison result, use a reserved calling interface to retrieve preset parameters and match them with the target RAID card drive path and drive information in the drive storage database; The installation module is used to establish a RAID card drive path and activate the configuration parameters of the image file in response to a successful matching result, so as to realize the reuse installation of the image file.
8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
System deployment method and device, equipment and storage medium
CN114756247A
Operation system installation method and device and readable storage medium
CN114756290A