CN116301942A - Old utilization method, device, computer equipment and storage medium - Google Patents

Old utilization method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN116301942A
CN116301942A CN202310277811.5A CN202310277811A CN116301942A CN 116301942 A CN116301942 A CN 116301942A CN 202310277811 A CN202310277811 A CN 202310277811A CN 116301942 A CN116301942 A CN 116301942A
Authority
CN
China
Prior art keywords
operating system
preset
image file
path
raid card
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
CN202310277811.5A
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202310277811.5A priority Critical patent/CN116301942A/en
Publication of CN116301942A publication Critical patent/CN116301942A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/64Retargetable
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to an utilizing method, a device, a computer device and a storage medium, wherein the method comprises the following steps: constructing a first preset environment; creating a target path in a first preset environment according to a preset rule, and generating an operating system and a drive storage database; comparing the input image file with data in an operating system database; responding to a successful comparison result, and utilizing a reserved calling interface to call preset parameters to match a target RAID card driving path and driving information in a driving storage database; and responding to a successful matching result, establishing a RAID card driving path and activating configuration parameters of the image file, and realizing the old installation of the image file. The method and the device establish the mapping between the new RAID card driving path and the operating system installation process path through matching the driving path to meet the matching of the driving and the kernel, further realize the support of the old operating system to the new RAID card characteristics, and realize the old deployment of the server operating system.

Description

Old utilization method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of server technologies, and in particular, to an old utilization method, an old utilization device, a computer device, and a storage medium.
Background
The server is used as a computer, and the characteristics of long-term reliable and stable operation determine that the server has higher requirements on compatibility, wherein the requirements on a client operating system and upper-layer business application software are particularly high, which causes a series of problems of deployment and use when the server updates the RAID card to expand business deployment and needs to maintain the original operating system and other software because the operating system and the upper-layer business application software cannot always keep up with the update speed of hardware (including RAID cards).
The prior proposal for solving the problem mainly comprises the following two steps:
a new operating system supporting the hardware characteristics of the RAID card is adopted based on the latest RAID (redundant array of independent disks) card hardware, the scheme needs hardware, an operating system and upper-layer business application software to be simultaneously matched and compatible, and especially the problem of compatibility between an upper-layer business system of a client and a new version of operating system is more serious, huge manpower and material resources are needed to be invested for redevelopment and adaptation, so that serious challenges are caused for quick deployment of a server and long-term reliable and stable operation after the server is on line.
And the other is to recompile the kernel of the operating system or compile RAID card drivers to form driver ko files (module files), implant decompressed initrd.img files (kernel files of the linux system), recompile the compressed initrd.img files and replace the original initrd.img files in the system so as to realize the support of RAID cards. The scheme needs to decompress and package the mirror image file, has higher technical capability requirement on operators, is quite easy to enter in the manufacturing process, particularly relates to the operation of kernel files, brings great hidden danger to the stable operation of a system, and can also lead to the fact that the original factory of the operating system does not support maintenance any more after the mirror image is privately operated.
Accordingly, there is a need to propose an improved method, apparatus, computer device and storage medium for server legacy operating systems.
Disclosure of Invention
Based on this, it is necessary to provide an old method, an apparatus, a computer device and a storage medium for an old version of an operating system of a server in view of the above technical problems.
In one aspect, an old method is provided and applied to a server operating system, and the method includes:
step A: constructing a first preset environment for old deployment of a server operating system;
and (B) step (B): creating a target path in the first preset environment according to a preset rule, and generating an operating system and a drive storage database, wherein the target path comprises a RAID card drive path and an operating system path;
step C: comparing the input image file with the data in the database of the operating system;
step D: responding to a successful comparison result, and calling preset parameters by using a reserved calling interface to match with a target RAID card driving path and driving information in the driving storage database;
step E: and responding to a successful matching result, establishing a RAID card driving path and activating configuration parameters of the image file to realize the old installation of the image file.
In one embodiment, the method further comprises: comparing the input image file with the data in the operating system and the driving database; and responding to the unsuccessful comparison result, activating the configuration parameters of the image file and installing the server operating system.
In one embodiment, the method further comprises: the building a first preset environment for server operating system utilization deployment includes: constructing the same local area network, and selecting a preset operating system; after the installation of the operating system is completed, the firewall and the preset service are closed, and authority information is set; and installing three services of a hypertext transfer protocol, a dynamic host configuration protocol and a simple file transfer protocol on the preset server, and carrying out preset configuration operation on the server after the installation is completed.
In one embodiment, the method further comprises: creating a target path in the first preset environment according to a preset rule, and generating an operating system and a driving storage database comprises: acquiring an operating system and a new RAID card drive model in a demand library; classifying the new RAID card drive types in the demand library according to preset categories according to an operating system software package management format; identifying an operating system in the demand library, and judging whether the operating system supports the new RAID card drive model; if not, creating a RAID card drive path and an operating system path in the preset operating system, and generating the operating system and a drive storage database.
In one embodiment, the method further comprises: the comparing the input image file with the data in the operating system database comprises: inputting a preset mirror image file according to requirements; comparing the preset mirror image file with data in the database of the operating system; if the comparison is successful, judging that the preset mirror image file does not support a new RAID card; if the comparison is unsuccessful, judging that the preset mirror image file supports a new RAID card.
In one embodiment, the method further comprises: the step of calling the preset parameters by using the reserved calling interface and matching the preset parameters with the driving path and the driving information of the target RAID card in the driving storage database comprises the following steps: responding to and detecting that the preset mirror image file does not support a new RAID card, and extracting a driving path and driving information of the new RAID card from the driving storage database; adopting preset parameters in a target file to match a drive path and drive information of the new RAID card; and in response to the detection of successful matching, extracting the configuration parameters of the image file from the pre-constructed configuration parameter set, establishing a new RAID card driving path and activating the configuration parameters of the image file.
In one embodiment, the method further comprises: the construction process of the configuration parameter set comprises the following steps: installing the operating systems in the demand library respectively, storing configuration parameters in the installation process of all the operating systems, and generating the configuration parameter set.
In another aspect, there is provided an apparatus for utilizing old data, applied to a server operating system, the apparatus comprising:
the environment construction module is used for constructing a first preset environment of old deployment of the server operating system;
the database generation module is used for creating a target path in the first preset environment according to a preset rule, generating an operating system and a drive storage database, wherein the target path comprises a RAID card drive path and an operating system path;
the comparison module is used for comparing the input image file with the data in the database of the operating system;
the matching module is used for responding to the successful comparison result, and calling preset parameters by utilizing a reserved calling interface to match with a target RAID card driving path and driving information in the driving storage database;
and the installation module is used for responding to a successful matching result, establishing a RAID card driving path and activating configuration parameters of the image file to realize the old installation of the image file.
In yet another aspect, a computer device is provided comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of:
step A: constructing a first preset environment for old deployment of a server operating system;
and (B) step (B): creating a target path in the first preset environment according to a preset rule, and generating an operating system and a drive storage database, wherein the target path comprises a RAID card drive path and an operating system path;
step C: comparing the input image file with the data in the database of the operating system;
step D: responding to a successful comparison result, and calling preset parameters by using a reserved calling interface to match with a target RAID card driving path and driving information in the driving storage database;
step E: and responding to a successful matching result, establishing a RAID card driving path and activating configuration parameters of the image file to realize the old installation of the image file.
In yet another aspect, a computer readable storage medium is provided, having stored thereon a computer program which when executed by a processor performs the steps of:
step A: constructing a first preset environment for old deployment of a server operating system;
and (B) step (B): creating a target path in the first preset environment according to a preset rule, and generating an operating system and a drive storage database, wherein the target path comprises a RAID card drive path and an operating system path;
step C: comparing the input image file with the data in the database of the operating system;
step D: responding to a successful comparison result, and calling preset parameters by using a reserved calling interface to match with a target RAID card driving path and driving information in the driving storage database;
step E: and responding to a successful matching result, establishing a RAID card driving path and activating configuration parameters of the image file to realize the old installation of the image file.
The above-described utilization method, apparatus, computer device, and storage medium, the method comprising: constructing a first preset environment for old deployment of a server operating system; creating a target path in the first preset environment according to a preset rule, and generating an operating system and a drive storage database, wherein the target path comprises a RAID card drive path and an operating system path; comparing the input image file with the data in the database of the operating system; responding to a successful comparison result, and calling preset parameters by using a reserved calling interface to match with a target RAID card driving path and driving information in the driving storage database; in response to a successful matching result, a RAID card driving path is established, configuration parameters of the mirror image file are activated, old and beneficial installation of the mirror image file is achieved, in the process of supporting a new RAID card by using a historical version operating system, data are acquired for comparison, if the data cannot be successfully matched, the driving path is matched to establish a mapping between the new RAID card driving path and the operating system installation process path so as to meet the matching of a driver and a kernel, further, the support of the old operating system to the characteristics of the new RAID card is achieved, and old and beneficial deployment of a server operating system is achieved.
Drawings
FIG. 1 is an application environment diagram of an utilizing an old method in one embodiment;
FIG. 2 is a flow diagram of an involution method in one embodiment;
FIG. 3 is a flow diagram of an utilizing step in one embodiment;
FIG. 4 is a block diagram of an apparatus for utilizing old information in one embodiment;
fig. 5 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
It should be understood that throughout the description of this application, unless the context clearly requires otherwise, the words "comprise," "comprising," and the like in the description and the claims are to be construed in an inclusive sense rather than an exclusive or exhaustive sense; that is, it is the meaning of "including but not limited to".
It should also be appreciated that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Furthermore, in the description of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
It should be noted that the terms "S1", "S2", and the like are used for the purpose of describing steps only, and are not intended to be limited to the order or sequence of steps or to limit the present application, but are merely used for convenience in describing the method of the present application and are not to be construed as indicating the sequence of steps. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be regarded as not exist and not within the protection scope of the present application.
The method for utilizing the old information can be applied to an application environment shown in fig. 1. The terminal 102 communicates with a data processing platform disposed on the server 104 through a network, where the terminal 102 may be, but is not limited to, various personal computers, notebook computers, smartphones, tablet computers, and portable wearable devices, and the server 104 may be implemented by a stand-alone server or a server cluster composed of a plurality of servers.
Example 1
In one embodiment, as shown in fig. 2-3, an old method is provided, and the method is applied to the terminal in fig. 1 for illustration, and includes the following steps:
s1: a first preset environment for a server operating system utilized deployment is constructed.
It should be noted that, before the target path is created, PXE (PrebooteXecution Environment, start execution environment) and an unattended environment need to be built, which has a basic condition for realizing old batch deployment of the server operating system, and is specific: the method comprises the steps of constructing the same local area network, selecting a certain operating system as an operating system of a PXE server, preferably performing full-quantity installation, using relatively complete components when the system is deployed, closing a firewall and a SELINUX (Security-enhanced Linux) service of the PXE server after the system is installed, namely, presetting a service, setting corresponding umask (authority information) for preventing the defects of a file and directory authority to be subsequently created, finally, installing three services of httpd (hypertext transfer protocol) \dhcpd (DynamicHost ConfigurationProtocol) and dynamic host configuration protocol) \tftp (TrivialFileTransfer Protocol) and performing preset configuration operation on the servers after the system is installed, wherein the three services can be respectively deployed on three servers, and also can be respectively manufactured into one PXE server through the three servers, and the three services are deployed on the PXE server.
S2: creating a target path in the first preset environment according to a preset rule, and generating an operating system and a drive storage database, wherein the target path comprises a RAID card drive path and an operating system path.
It should be noted that this step specifically includes:
acquiring an operating system and a new RAID card drive model in a demand library;
classifying the new RAID card drive types in the demand library according to preset categories according to an operating system software package management format, wherein the preset categories can be rpm and deb;
identifying an operating system in the demand library, judging whether the operating system supports the new RAID card driving model, namely judging whether the operating system supports rpm and deb packets, and if so, sequentially identifying whether the operating system supports the new RAID card driving model;
if not, creating a RAID card driving path and an operating system path in the preset operating system, and generating the operating system and a driving storage database, namely an operating system and a driving storage module D0, wherein the path for storing the driving is/var/drivers/. Times.rpm, and the path for storing the operating system is/var/images/. Times.iso.
S3: and comparing the input image file with the data in the database of the operating system.
It should be noted that Mirroring (Mirroring) is a file storage form, is a type of redundancy, and is that data on one disk has an identical copy on another disk, that is, a mirror image. Many files can be made into an image file, and after the image file is opened by using GHOST software and the like together with programs such as GHOST and the like in one disk, the image file is used by RAID1 and RAID10, and the common image file format is ISO, BIN, IMG, TAO, DAO, CIF, FCD.
Further, the method specifically comprises the following steps:
accessing a preassembled server to the PXE server, and inputting a preset image file P0 according to requirements;
the input control module C0 is used to call an operating system and a driving database D0, and the preset image file is compared with the data in the operating system database in the comparison system, where the data comparison in this embodiment may be the file names of the two comparison;
if the comparison is successful, judging that the preset mirror image file does not support a new RAID card;
if the comparison is unsuccessful, judging that the preset mirror image file supports a new RAID card.
S4: and responding to a successful comparison result, and calling preset parameters by using a reserved calling interface to match with a target RAID card driving path and driving information in the driving storage database.
It should be noted that, when the preset image file does not support a new version of RAID card, selecting a target operating system on the PXE server to decompress, generating an operating system installation pre-fetch path, extracting a driving path and driving information of the new version of RAID card from the driving storage database, and matching the driving path and driving information of the new version of RAID card with preset parameters in the target file, where the target file is a grub. Cfg file, the preset parameters are inst. Dd parameters, and when the matching is detected to be successful, extracting the configuration parameters of the image file from the preset configuration parameter set for the operation of the next step, and on the basis, respectively forming an operating system decompression module E0, an operating system installation pre-fetch path module R0, a RAID card driving path matching module K0, and a reserved call API (reserved call interface), where the construction process of the configuration parameter set includes:
and installing the operating systems in the demand library respectively, storing configuration parameters in the installation process of all the operating systems, generating the configuration parameter set, reserving and calling an API, and synchronously storing the configuration parameter set to form a PXE installation storage module S0, namely a module for storing the configuration parameter set.
Furthermore, the above-mentioned repository is a dynamically changing operating system mirror pool, which may have a situation that a specific operating system is missing in the PXE installed storage module S0, for example, a certain operating system of the mips architecture does not exist, and if the mirror file cannot match the data in the PXE installed storage module S0 or does not have a corresponding mirror file, the fault reporting information is output to the corresponding maintenance unit personnel. If the problems cannot be matched, whether the operating system of the demand library exists or not is required to be confirmed, corresponding parameters are generated, and meanwhile, the problems of response paths, file authorities and the like are checked; if the corresponding mirror image file does not exist, whether the corresponding input operating system exists or not needs to be confirmed, and if the corresponding mirror image file does not exist, the installation of the operating system is terminated.
Further, comparing the input image file with the data in the operating system and the driving database;
and in response to the unsuccessful comparison result, activating the configuration parameters of the image file and installing the server operating system, namely, the image file supports a new RAID card, so that the image file is not required to be subjected to old installation configuration, and the operating system is directly installed and deployed.
S5: and responding to a successful matching result, establishing a RAID card driving path and activating configuration parameters of the image file to realize the old installation of the image file.
When the image file does not support the new RAID card, a mapping between the RAID card driving path and the operating system installation process path is established by adopting a driving path matching module K0 to meet the collocation of the driving and the kernel, so that the support of the old operating system to the new RAID card characteristic is realized.
In the above-described method of utilizing old, the method comprises: constructing a first preset environment for old deployment of a server operating system; creating a target path in the first preset environment according to a preset rule, and generating an operating system and a drive storage database, wherein the target path comprises a RAID card drive path and an operating system path; comparing the input image file with the data in the database of the operating system; responding to a successful comparison result, and calling preset parameters by using a reserved calling interface to match with a target RAID card driving path and driving information in the driving storage database; in response to a successful matching result, a RAID card driving path is established, configuration parameters of the mirror image file are activated, old and beneficial installation of the mirror image file is achieved, in the process of supporting a new RAID card by using a historical version operating system, data are acquired for comparison, if the data cannot be successfully matched, the driving path is matched to establish a mapping between the new RAID card driving path and the operating system installation process path so as to meet the matching of a driver and a kernel, further, the support of the old operating system to the characteristics of the new RAID card is achieved, and old and beneficial deployment of a server operating system is achieved.
It should be understood that, although the steps in the flowcharts of fig. 2-3 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2-3 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or steps.
Example 2
In one embodiment, as shown in FIG. 4, there is provided an utilizing device comprising: the system comprises an environment construction module, a database generation module, a comparison module, a matching module and an installation module, wherein:
the environment construction module is used for constructing a first preset environment of old deployment of the server operating system;
the database generation module is used for creating a target path in the first preset environment according to a preset rule, generating an operating system and a drive storage database, wherein the target path comprises a RAID card drive path and an operating system path;
the comparison module is used for comparing the input image file with the data in the database of the operating system;
the matching module is used for responding to the successful comparison result, and calling preset parameters by utilizing a reserved calling interface to match with a target RAID card driving path and driving information in the driving storage database;
and the installation module is used for responding to a successful matching result, establishing a RAID card driving path and activating configuration parameters of the image file to realize the old installation of the image file.
As a preferred implementation manner, in the embodiment of the present invention, the installation module is specifically further configured to:
comparing the input image file with the data in the operating system and the driving database;
and responding to the unsuccessful comparison result, activating the configuration parameters of the image file and installing the server operating system.
As a preferred implementation manner, in the embodiment of the present invention, the environment construction module is specifically configured to:
constructing the same local area network, and selecting a preset operating system;
after the installation of the operating system is completed, the firewall and the preset service are closed, and authority information is set;
and installing three services of a hypertext transfer protocol, a dynamic host configuration protocol and a simple file transfer protocol on the preset server, and carrying out preset configuration operation on the server after the installation is completed.
In a preferred embodiment of the present invention, the database generating module is specifically configured to:
acquiring an operating system and a new RAID card drive model in a demand library;
classifying the new RAID card drive types in the demand library according to preset categories according to an operating system software package management format;
identifying an operating system in the demand library, and judging whether the operating system supports the new RAID card drive model;
if not, creating a RAID card drive path and an operating system path in the preset operating system, and generating the operating system and a drive storage database.
As a preferred implementation manner, in the embodiment of the present invention, the comparison module is specifically configured to:
inputting a preset mirror image file according to requirements;
comparing the preset mirror image file with data in the database of the operating system;
if the comparison is successful, judging that the preset mirror image file does not support a new RAID card;
if the comparison is unsuccessful, judging that the preset mirror image file supports a new RAID card.
As a preferred implementation manner, in the embodiment of the present invention, the matching module is specifically configured to:
responding to and detecting that the preset mirror image file does not support a new RAID card, and extracting a driving path and driving information of the new RAID card from the driving storage database;
adopting preset parameters in a target file to match a drive path and drive information of the new RAID card;
and in response to the detection of successful matching, extracting the configuration parameters of the image file from the pre-constructed configuration parameter set, establishing a new RAID card driving path and activating the configuration parameters of the image file.
As a preferred implementation manner, in the embodiment of the present invention, the database generating module is specifically further configured to:
installing the operating systems in the demand library respectively, storing configuration parameters in the installation process of all the operating systems, and generating the configuration parameter set.
For specific limitations on the utilization device, reference may be made to the above limitations on the utilization method, which are not repeated here. The various modules in the above-described legacy devices may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
Example 3
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured 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 computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an utilization method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 5 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of when executing the computer program:
s1: constructing a first preset environment for old deployment of a server operating system;
s2: creating a target path in the first preset environment according to a preset rule, and generating an operating system and a drive storage database, wherein the target path comprises a RAID card drive path and an operating system path;
s3: comparing the input image file with the data in the database of the operating system;
s4: responding to a successful comparison result, and calling preset parameters by using a reserved calling interface to match with a target RAID card driving path and driving information in the driving storage database;
s5: and responding to a successful matching result, establishing a RAID card driving path and activating configuration parameters of the image file to realize the old installation of the image file.
In one embodiment, the processor when executing the computer program further performs the steps of:
comparing the input image file with the data in the operating system and the driving database;
and responding to the unsuccessful comparison result, activating the configuration parameters of the image file and installing the server operating system.
In one embodiment, the processor when executing the computer program further performs the steps of:
constructing the same local area network, and selecting a preset operating system;
after the installation of the operating system is completed, the firewall and the preset service are closed, and authority information is set;
and installing three services of a hypertext transfer protocol, a dynamic host configuration protocol and a simple file transfer protocol on the preset server, and carrying out preset configuration operation on the server after the installation is completed.
In one embodiment, the processor when executing the computer program further performs the steps of:
acquiring an operating system and a new RAID card drive model in a demand library;
classifying the new RAID card drive types in the demand library according to preset categories according to an operating system software package management format;
identifying an operating system in the demand library, and judging whether the operating system supports the new RAID card drive model;
if not, creating a RAID card drive path and an operating system path in the preset operating system, and generating the operating system and a drive storage database.
In one embodiment, the processor when executing the computer program further performs the steps of:
inputting a preset mirror image file according to requirements;
comparing the preset mirror image file with data in the database of the operating system;
if the comparison is successful, judging that the preset mirror image file does not support a new RAID card;
if the comparison is unsuccessful, judging that the preset mirror image file supports a new RAID card.
In one embodiment, the processor when executing the computer program further performs the steps of:
responding to and detecting that the preset mirror image file does not support a new RAID card, and extracting a driving path and driving information of the new RAID card from the driving storage database;
adopting preset parameters in a target file to match a drive path and drive information of the new RAID card;
and in response to the detection of successful matching, extracting the configuration parameters of the image file from the pre-constructed configuration parameter set, establishing a new RAID card driving path and activating the configuration parameters of the image file.
In one embodiment, the processor when executing the computer program further performs the steps of:
installing the operating systems in the demand library respectively, storing configuration parameters in the installation process of all the operating systems, and generating the configuration parameter set.
Example 4
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
s1: constructing a first preset environment for old deployment of a server operating system;
s2: creating a target path in the first preset environment according to a preset rule, and generating an operating system and a drive storage database, wherein the target path comprises a RAID card drive path and an operating system path;
s3: comparing the input image file with the data in the database of the operating system;
s4: responding to a successful comparison result, and calling preset parameters by using a reserved calling interface to match with a target RAID card driving path and driving information in the driving storage database;
s5: and responding to a successful matching result, establishing a RAID card driving path and activating configuration parameters of the image file to realize the old installation of the image file.
In one embodiment, the computer program when executed by the processor further performs the steps of:
comparing the input image file with the data in the operating system and the driving database;
and responding to the unsuccessful comparison result, activating the configuration parameters of the image file and installing the server operating system.
In one embodiment, the computer program when executed by the processor further performs the steps of:
constructing the same local area network, and selecting a preset operating system;
after the installation of the operating system is completed, the firewall and the preset service are closed, and authority information is set;
and installing three services of a hypertext transfer protocol, a dynamic host configuration protocol and a simple file transfer protocol on the preset server, and carrying out preset configuration operation on the server after the installation is completed.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring an operating system and a new RAID card drive model in a demand library;
classifying the new RAID card drive types in the demand library according to preset categories according to an operating system software package management format;
identifying an operating system in the demand library, and judging whether the operating system supports the new RAID card drive model;
if not, creating a RAID card drive path and an operating system path in the preset operating system, and generating the operating system and a drive storage database.
In one embodiment, the computer program when executed by the processor further performs the steps of:
inputting a preset mirror image file according to requirements;
comparing the preset mirror image file with data in the database of the operating system;
if the comparison is successful, judging that the preset mirror image file does not support a new RAID card;
if the comparison is unsuccessful, judging that the preset mirror image file supports a new RAID card.
In one embodiment, the computer program when executed by the processor further performs the steps of:
responding to and detecting that the preset mirror image file does not support a new RAID card, and extracting a driving path and driving information of the new RAID card from the driving storage database;
adopting preset parameters in a target file to match a drive path and drive information of the new RAID card;
and in response to the detection of successful matching, extracting the configuration parameters of the image file from the pre-constructed configuration parameter set, establishing a new RAID card driving path and activating the configuration parameters of the image file.
In one embodiment, the computer program when executed by the processor further performs the steps of:
installing the operating systems in the demand library respectively, storing configuration parameters in the installation process of all the operating systems, and generating the configuration parameter set.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile 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. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. An utilization method applied to a server operating system, the method comprising:
constructing a first preset environment for old deployment of a server operating system;
creating a target path in the first preset environment according to a preset rule, and generating an operating system and a drive storage database, wherein the target path comprises a RAID card drive path and an operating system path;
comparing the input image file with the data in the database of the operating system;
responding to a successful comparison result, and calling preset parameters by using a reserved calling interface to match with a target RAID card driving path and driving information in the driving storage database;
and responding to a successful matching result, establishing a RAID card driving path and activating configuration parameters of the image file to realize the old installation of the image file.
2. The method of utilizing old as in claim 1, further comprising:
comparing the input image file with the data in the operating system and the driving database;
and responding to the unsuccessful comparison result, activating the configuration parameters of the image file and installing the server operating system.
3. The method of claim 1, wherein the constructing a first preset environment for server operating system deployment of the old deployment comprises:
constructing the same local area network, and selecting a preset operating system;
after the installation of the operating system is completed, the firewall and the preset service are closed, and authority information is set;
and installing three services of a hypertext transfer protocol, a dynamic host configuration protocol and a simple file transfer protocol on the preset server, and carrying out preset configuration operation on the server after the installation is completed.
4. The method of claim 1, wherein creating a target path in the first preset environment according to a preset rule, generating an operating system and driving a storage database, comprises:
acquiring an operating system and a new RAID card drive model in a demand library;
classifying the new RAID card drive types in the demand library according to preset categories according to an operating system software package management format;
identifying an operating system in the demand library, and judging whether the operating system supports the new RAID card drive model;
if not, creating a RAID card drive path and an operating system path in the preset operating system, and generating the operating system and a drive storage database.
5. The method of claim 1, wherein the comparing the incoming image file to the data in the operating system database comprises:
inputting a preset mirror image file according to requirements;
comparing the preset mirror image file with data in the database of the operating system;
if the comparison is successful, judging that the preset mirror image file does not support a new RAID card;
if the comparison is unsuccessful, judging that the preset mirror image file supports a new RAID card.
6. The method of claim 5, wherein retrieving the preset parameters using the reservation call interface to match the target RAID card drive path and drive information in the drive storage database comprises:
responding to and detecting that the preset mirror image file does not support a new RAID card, and extracting a driving path and driving information of the new RAID card from the driving storage database;
adopting preset parameters in a target file to match a drive path and drive information of the new RAID card;
and in response to the detection of successful matching, extracting the configuration parameters of the image file from the pre-constructed configuration parameter set, establishing a new RAID card driving path and activating the configuration parameters of the image file.
7. The method of claim 6, wherein the process of constructing the configuration parameter set comprises:
installing the operating systems in the demand library respectively, storing configuration parameters in the installation process of all the operating systems, and generating the configuration parameter set.
8. An apparatus for utilizing old data, applied to a server operating system, the apparatus comprising:
the environment construction module is used for constructing a first preset environment of old deployment of the server operating system;
the database generation module is used for creating a target path in the first preset environment according to a preset rule, generating an operating system and a drive storage database, wherein the target path comprises a RAID card drive path and an operating system path;
the comparison module is used for comparing the input image file with the data in the database of the operating system;
the matching module is used for responding to the successful comparison result, and calling preset parameters by utilizing a reserved calling interface to match with a target RAID card driving path and driving information in the driving storage database;
and the installation module is used for responding to a successful matching result, establishing a RAID card driving path and activating configuration parameters of the image file to realize the old installation of the image file.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 7 when the computer program is executed by the processor.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202310277811.5A 2023-03-21 2023-03-21 Old utilization method, device, computer equipment and storage medium Pending CN116301942A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310277811.5A CN116301942A (en) 2023-03-21 2023-03-21 Old utilization method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310277811.5A CN116301942A (en) 2023-03-21 2023-03-21 Old utilization method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116301942A true CN116301942A (en) 2023-06-23

Family

ID=86797518

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310277811.5A Pending CN116301942A (en) 2023-03-21 2023-03-21 Old utilization method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116301942A (en)

Similar Documents

Publication Publication Date Title
CN110008118B (en) Page data testing method and device, computer equipment and storage medium
CN110569035B (en) Code compiling method, device, equipment and storage medium of software development project
CN102422265B (en) Bios image manager
CN102193817B (en) Simplify the management of physics and virtual deployment
US20080040714A1 (en) Method and system for automatic computer and user migration
CN101213517A (en) Decompression technique for generating software image
JP5071372B2 (en) Patch application apparatus and program
CN108418797B (en) Webpage access method and device, computer equipment and storage medium
US20060026463A1 (en) Methods and systems for validating a system environment
US20230333840A1 (en) Systems and methods for updating automatic teller machines
CN103562876A (en) Redirecting requests to secondary location during temporary outage
US10324706B1 (en) Automated software deployment for electromechanical systems
US20090150882A1 (en) System and method for software application installation
JP5352027B2 (en) Computer system management method and management apparatus
CN116301942A (en) Old utilization method, device, computer equipment and storage medium
US20150212866A1 (en) Management system for service of multiple operating environments, and methods thereof
CN115118587A (en) Method and device for creating connector
US9280512B2 (en) Computerized system and method for remote access to a computer program
KR102038802B1 (en) Method for Apparatus for Integration Management of Web Page
US20210256134A1 (en) Apparatus for lan booting environment-based file security and centralization, method therefor, and computer-readable recording medium on which program for performing same method is recorded
CN112541756B (en) Block chain contract upgrading method and device, computer equipment and readable storage medium
CN114281434B (en) Applet user information management method, apparatus, computer device and storage medium
US11979404B2 (en) Information providing method, information providing system, and server
CN111079192B (en) Webpage content self-protection method and server
CN116633554A (en) Firmware image signature method, device, computer equipment and storage medium

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