CN103746833B - PXE-based RAID automatic configuration method and system - Google Patents

PXE-based RAID automatic configuration method and system Download PDF

Info

Publication number
CN103746833B
CN103746833B CN201310724306.7A CN201310724306A CN103746833B CN 103746833 B CN103746833 B CN 103746833B CN 201310724306 A CN201310724306 A CN 201310724306A CN 103746833 B CN103746833 B CN 103746833B
Authority
CN
China
Prior art keywords
program
pxe
image file
memory disk
stage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310724306.7A
Other languages
Chinese (zh)
Other versions
CN103746833A (en
Inventor
王建飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sina Technology China Co Ltd
Original Assignee
Sina Technology China 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 Sina Technology China Co Ltd filed Critical Sina Technology China Co Ltd
Priority to CN201310724306.7A priority Critical patent/CN103746833B/en
Publication of CN103746833A publication Critical patent/CN103746833A/en
Application granted granted Critical
Publication of CN103746833B publication Critical patent/CN103746833B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a PXE-based RAID automatic configuration method and system. The method comprises the following steps: starting a PXE client from a PXE, and after a system core program and a memory disk initialization program are loaded according to a PXE guiding program downloaded by a PXE server, the memory disk initialization program, according to a script code for automatic configuration of a redundant array of inexpensive disk (RAID), which is recorded in a preinstallation module starting a configuration file, executing an execution program and a dependence program which are needed in a preinstallation environment by a RAID chip which is embedded in the memory disk initialization program in advance so as to finish the automatic configuration of the RAID; and afterwards, the memory disk initialization program, according to the script code in an installation module automatically configuring the file, carrying out installation of an operation system. The system comprises a PXE server and multiple PXE clients. By applying the method and the system, the RAID configuration efficiency can be improved.

Description

PXE-based RAID automatic configuration method and system
Technical Field
The invention relates to the Internet technology, in particular to a PXE-based RAID automatic configuration method and system.
Background
PXE (preboot execution environment) was developed by Intel corporation and is currently the dominant technology, which works in C/S (Client/Server) network mode, supports workstations downloading images from remote servers over the network, and thus supports the boot process of operating systems from the network.
The operating system installation method based on the PXE mode is far higher in efficiency than the modes of adopting an optical drive, a 1394 interface, a USB interface and the like, and is particularly suitable for places with a large number of servers, such as machine rooms, websites, laboratories, production lines and the like.
Before installing an operating System, the PXE client (a server to be installed with the operating System) is started from a BIOS (basic input Output System) and enters a RAID (Redundant Array of independent Disks) setting interface, so that a display needs to be connected to display each window in the setting interface for an operator. After an operator selects to create a new virtual disk, selects a configured RAID level, selects a hard disk required by the RAID level, modifies advanced settings, initializes the previously successfully configured virtual disk, and the like, the subsequent downloading and installation can be performed by starting the virtual disk from the PXE.
Thus, when the operating system is installed on a large number of servers at one time, as preparation work before installation, a display needs to be connected to each PXE client, an operator completes configuration RAID operation on each PXE client one by one through the display, and the more servers to be installed, the more time and effort are consumed. There is a need to provide a more efficient and less costly PXE-based RAID configuration method.
Disclosure of Invention
The embodiment of the invention provides a PXE-based RAID automatic configuration method and a PXE-based RAID automatic configuration system, which are used for improving the efficiency of RAID configuration.
According to one aspect of the present invention, a PXE-based RAID automatic configuration method is provided, including:
the method comprises the steps that a PXE client in a pre-starting execution environment is started from a PXE, after a system kernel program and an initialization memory disk program are loaded according to a PXE bootstrap program downloaded from a PXE server, the initialization memory disk program executes an executive program and a dependent program which are required by a RAID chip pre-embedded in the initialization memory disk program under a pre-installation environment according to script codes of an automatic configuration disk array RAID recorded in a pre-installation module of a starting configuration file, and RAID automatic configuration is completed;
then, the initialized memory disk program carries out installation of an operating system according to the script codes in the installation module of the starting configuration file;
wherein the system kernel program provides an installation environment of the operating system for the PXE client.
Further, the initialized memory disk program is loaded after the PXE boot program obtains the image file of the pre-customized initialized memory disk program for decompression, and
the execution program and the dependent program required by the RAID chip in the preinstalled environment are those in which the PXE server is embedded in advance in the image file of the pre-customized initialization memory disk program, and specifically include:
the PXE server decompresses the image file of the original initialized memory disk program to obtain a program package of the original initialized memory disk program;
the PXE server copies a program package integrated with an executive program and a dependent program required by the RAID chip in a preinstalled environment to the root directory of the original program package of the initialized memory disk program to obtain a customized program package of the initialized memory disk program;
and the PXE server takes an image file obtained by compressing the program package of the customized initialization memory disk program as the image file of the customized initialization memory disk program, and replaces the image file of the original initialization memory disk program.
Further, after the PXE boot program loads a system kernel program and initializes a memory disk program, the method further includes:
the initialization memory disk program acquires a mirror image file of a pre-customized installation program, decompresses and loads the mirror image file;
and the initialization memory disk program acquires a pre-customized image file of the stage program in the 2 nd stage to be loaded, decompresses the image file and loads the image file.
Further, the image file of the installer is pre-customized by the PXE server, and specifically includes:
the PXE server decompresses the image file of the original installation program to obtain a program package of the original installation program;
the PXE server copies pre-stored library files in a 6 th version community enterprise operating system (CentOS) to a library file directory of the original program package of the installation program to obtain a customized program package of the installation program;
and the PXE server takes an image file obtained by compressing the program package of the customized installation program as the image file of the customized installation program, and replaces the image file of the original installation program.
Further, the image file of the stage program in the phase 2 is pre-customized by the PXE server, and specifically includes:
the PXE server decompresses the image file of the original stage program in the 2 nd stage which needs to be loaded to obtain a program package of the original stage program in the 2 nd stage which needs to be loaded;
the PXE server copies the library file in the prestored CentOS version 5 to the library file directory of the original program package of the stage program in the 2 nd stage required to be loaded, and then obtains the customized program package of the stage program in the 2 nd stage required to be loaded;
and the PXE server takes an image file obtained by compressing the customized stage program package of the stage program in the 2 nd stage required to be loaded as the image file of the customized stage program in the 2 nd stage required to be loaded, and replaces the original image file of the stage program in the 2 nd stage required to be loaded.
According to another aspect of the present invention, there is also provided a PXE-based RAID auto-configuration system, including: a PXE server, and a plurality of PXE clients; wherein,
the PXE server is used for storing a PXE bootstrap program;
the PXE client is used for starting from the PXE, loading a system kernel program and an initialization memory disk program according to the PXE bootstrap program downloaded from the PXE server, and then executing an executive program and a dependent program which are required by a RAID chip pre-embedded in the initialization memory disk program under a pre-installation environment according to a script code for automatically configuring the RAID recorded in a pre-installation module of a starting configuration file by the initialization memory disk program to complete RAID automatic configuration; then, the initialized memory disk program carries out installation of an operating system according to the script codes in the installation module of the starting configuration file; wherein the system kernel program provides an installation environment of the operating system for the PXE client.
Preferably, the initialization memory disk program is loaded after the PXE boot program obtains the image file of the initialization memory disk program for decompression, and
the PXE server is further configured to embed an execution program and a dependent program, which are required by the RAID chip in a preinstalled environment, into the image file of the initialization memory disk program in advance: the PXE server decompresses the image file of the original initialized memory disk program to obtain a program package of the original initialized memory disk program; copying a program package integrated with an executive program and a dependent program required by the RAID chip in a preinstalled environment to the root directory of the original program package of the initialized memory disk program to obtain a new program package of the initialized memory disk program; and replacing the original image file of the initialization memory disk program with the image file of the initialization memory disk program obtained after compressing the program package of the new initialization memory disk program.
Preferably, the PXE server is further configured to customize an image file of the installer: the PXE server decompresses the image file of the original installation program to obtain a program package of the original installation program; the PXE server copies pre-stored library files in the 6 th edition CentOS to a library file directory of the original program package of the installation program to obtain a customized program package of the installation program; and the PXE server compresses the program package of the customized installation program to obtain an image file of the customized installation program.
Preferably, the PXE server is further configured to customize an image file of a phase 2 stage program to be loaded: the PXE server decompresses the image file of the original stage program in the 2 nd stage which needs to be loaded to obtain a program package of the original stage program in the 2 nd stage which needs to be loaded; the PXE server copies the library file in the prestored CentOS version 5 to the library file directory of the original program package of the stage program in the 2 nd stage required to be loaded, and then obtains the customized program package of the stage program in the 2 nd stage required to be loaded; and the PXE server compresses the program package of the customized stage program in the 2 nd stage which needs to be loaded to obtain the image file of the customized stage program in the 2 nd stage which needs to be loaded.
Preferably, the image file of the customized installation program is used for being acquired and decompressed by the initialized memory disk program and then loaded; and
and the customized image file of the stage program in the 2 nd stage needing to be loaded is used for being acquired and decompressed by the initialization memory disk program and then loaded.
In the technical scheme of the embodiment of the invention, the PXE server embeds the executive program and the dependence program required by the RAID chip in the preinstalled environment into the image file of the initialized memory disk program in advance, so that after a PXE bootstrap program downloaded by the PXE client loads a system kernel program and the initialized memory disk program, the initialized memory disk program executes the executive program and the dependence program according to the script code of the RAID recorded in the preinstalled module of the starting configuration file, the automatic configuration of the RAID is completed, the condition that each PXE client needs to enter an RAID setting interface from the BIOS starting before the PXE client starts is avoided, meanwhile, a display is connected, and an operator manually configures the RAID for each PXE client 102, thereby saving a great deal of time and energy and improving the efficiency of RAID configuration. Preferably, the PXE server may also customize an image file of the installed program and an image file of the stage program in phase 2 that needs to be loaded in advance, so as to implement installation of the PXE client operating system after automatically configuring the RAID.
Drawings
FIG. 1 is a schematic structural diagram of a PXE-based RAID automatic configuration system according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for customizing an image file of an initialized memory disk by a PXE server according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for customizing an image file of an installer by a PXE server according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for customizing an image file of a stage2 program to be loaded by a PXE server according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a PXE-based RAID automatic configuration method according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings by way of examples of preferred embodiments. It should be noted, however, that the numerous details set forth in the description are merely for the purpose of providing the reader with a thorough understanding of one or more aspects of the present invention, which may be practiced without these specific details.
As used in this application, the terms "module," "system," and the like are intended to include a computer-related entity, such as but not limited to hardware, firmware, a combination of hardware and software, or software in execution. For example, a module may be, but is not limited to: a process running on a processor, an object, an executable, a thread of execution, a program, and/or a computer. For example, an application running on a computing device and the computing device may both be a module. One or more modules may reside within a process and/or thread of execution.
The inventor of the invention finds that the automatic configuration of the RAID of the PXE client can be realized by executing the execution program and the dependent program required by the RAID chip in the preinstalled environment by the initialization memory disk program according to the script code of the RAID recorded in the preinstalled module of the start configuration file. Therefore, it is considered that the execution program and the dependent program required by the RAID chip in the preinstalled environment are embedded in the image file of the initialization memory disk program in advance.
Thus, after a PXE boot program downloaded by a PXE client loads a system kernel program and an initialization memory disk program, the initialization memory disk program executes a program and a dependent program according to the script codes of the RAID recorded in a preinstalled module of a start configuration file, completes automatic configuration of the RAID, and then installs an operating system. The situation that before starting the PXE clients from the PXE, the PXE clients need to enter a RAID setting interface from BIOS starting, meanwhile, a display is connected, and an operator manually configures RAID for each PXE client 102 can be avoided. Thereby saving a great deal of time and effort and improving the efficiency of RAID configuration.
The technical scheme of the invention is explained in detail in the following with the accompanying drawings.
The structure of the PXE-based RAID auto-configuration system according to the embodiment of the present invention is shown in fig. 1, and includes: PXE server 101, a plurality of PXE clients 102.
The PXE server 101 is used to embed the executive program and the dependent program required by the RAID chip in the preinstalled environment into the image file of the initialization memory disk program in advance.
The PXE server 101 is used to store PXE boot programs.
The PXE client 102 is used for starting from the PXE, loading a system kernel program and an initialization memory disk program according to a PXE bootstrap program downloaded from the PXE server 102, and then executing an executive program and a dependent program which are required by a RAID chip pre-embedded in the initialization memory disk program in a pre-installation environment by the initialization memory disk program according to a script code for automatically configuring the RAID recorded in a pre-installation module of a start configuration file, thereby completing automatic RAID configuration; then, initializing a memory disk program to install the operating system according to the script code in the installation module of the starting configuration file; the system kernel program provides an installation environment of the operating system for the PXE client 102.
The specific method for embedding the execution program and the dependent program required by the RAID chip in the preinstalled environment into the image file of the customized initialization memory disk program by the PXE server 101 is as shown in fig. 2, and the flow includes:
s201: the PXE server 101 decompresses the image file of the original initialized memory disk program to obtain the original package of the initialized memory disk program.
In this step, the image file of the initialized memory disk program is specifically an initrd.
S202: the PXE server 101 copies the package, in which the executable program and the dependent program required by the RAID chip in the preinstalled environment are integrated, to the root directory of the original package, in which the memory disk program is initialized.
In this step, through a cp-a/opt command, the PXE server 101 copies the program package integrated with the executive program and the dependent program required by the RAID chip in the preinstalled environment to the opt directory under the root directory of the original program package of the initialized memory disk program, and then obtains a customized program package of the initialized memory disk program; the execution program is specifically a Megacli64 program.
S203: the PXE server 101 uses the image file obtained by compressing the customized package of the initialization memory disk program as the image file of the customized initialization memory disk program, and replaces the original image file of the initialization memory disk program.
Specifically, the PXE server 101 uses an image file obtained by compressing a customized package of the initialized memory disk program as the image file of the customized initialized memory disk program, and the code for replacing the image file of the original initialized memory disk program is as follows:
#mv initrd.img initrd.img.xz
#xz--format=lzma initrd.img.xz--decompress
#mkdir initrd-new
#cd initrd-new
#cpio-ivdum<../initrd.img
preferably, the PXE server 101, in addition to embedding the execution program and the dependent program required by the RAID chip in the preinstalled environment into the image file of the initialization memory disk program in advance, prepares for the PXE client to complete the automatic RAID configuration, and also prepares for the PXE client to complete the installation of the operating system.
Further, the PXE server 101 is further configured to customize the image file of the installer in advance, and a specific method for customizing the image file of the installer by the PXE server 101 is shown in fig. 3, and includes:
s301: the PXE server 101 decompresses the image file of the original installer to obtain the package of the original installer.
In this step, the image file of the installation program is specifically an install.
S302: the PXE server 101 copies a library file in a prestored version 6 centros (Community enterprise operating System) to a library file directory of an original installer package, and then obtains a customized installer package.
In this step, the PXE server 101 copies the library files linux-vdso.so.1, libc.so.6, libpthread.so.0 corresponding to the sort command in the original installer package in the previously stored CentOS version 6 to the root/img/lib directory (library file directory) of the original installer package, and copies the library file ld-linux-x86-64.so.2 to the root/img/lib64 directory (library file directory) of the original installer package.
The PXE server 101 copies the library files linux-vdso.so.1, libdl.so.2, libm.so.6 and libc.so.6 corresponding to the awk command in the original installer's package in the prestored CentOS version 6 under the root/img/lib directory of the original installer's package, and copies the library file ld-linux-x86-64.so.2 under the root/img/lib64 directory of the original installer's package.
The PXE server 101 copies the library files linux-vdso.so.1, libselinux.so.1, libroc3.2.8. so, libdl.so.2 and libc.so.6 corresponding to the ps command in the original installer's package in the prestored version 6 CentOS under the root/img/lib directory of the original installer's package, and copies the lib library file ld-linux-x86-64.so.2 under the root/img/lib64 directory of the original installer's package.
S303: the PXE server 101 uses the image file obtained by compressing the package of the customized installer as the image file of the customized installer, and replaces the image file of the original installer.
In this step, the PXE server 101 compresses the package of the customized installer to obtain an image file as an image file of the customized installer through a # mkstwishfs img/install.
Further, the PXE server 101 is further configured to customize, in advance, an image file of the stage program in the phase 2 that needs to be loaded, and a specific method for customizing, by the PXE server 101, an image file of the stage program in the phase 2 that needs to be loaded is shown in fig. 4, and a flow includes:
s401: the PXE server 101 decompresses the image file of the original stage2 program that needs to be loaded, and obtains the original package of the stage2 program that needs to be loaded.
In this step, the image file of the stage program in the 2 nd stage is specifically a stage2.img file.
S402: the PXE server 101 copies the library file in the 5 th version CentOS stored in advance to the library file directory of the original package of the stage2 program that needs to be loaded, and then obtains the customized package of the stage2 program.
In this step, the PXE server 101 copies the library files linux-vdso.so.1, librt.so.1, libc.so.6 and libpthread.so.0 corresponding to the start command in the original package of the 2 nd-stage program to be loaded in the 5 th edition CentOS stored in advance to the root/img/lib directory of the original package of the 2 nd-stage program to be loaded, and copies the library file ld-linux-x86-64.so.2 to the root/img/lib64 directory of the original package of the 2 nd-stage program to be loaded.
The PXE server 101 copies library files linux-vdso.so.1, libdl.so.2, libm.so.6 and libc.so.6 corresponding to an awk command in an original package of a phase 2 stage program to be loaded in a prestored CentOS version 5 to a root/img/lib directory of the original package of the phase 2 stage program to be loaded, and copies the library file ld-linux-x86-64.so.2 to the root/img/lib64 directory of the original package of the phase 2 stage program to be loaded.
The PXE server 101 copies the library files linux-vdso.so.1, libselinux.so.1, libprox 3.2.8.so, libdl.so.2 and libc.so.6 corresponding to the ps command in the original package of the 2 nd-phase stage program to be loaded in the 5 th-version CentOS, and ld-linux-86-64. so.2 are copied to the root/img/lib directory of the original package of the 2 nd-phase stage program to be loaded, and the library files ld-linux-86-64. so.2 are copied to the root/img/lib64 directory of the original package of the 2 nd-phase stage program to be loaded.
S403: the PXE server compresses the customized program package of the stage program in the 2 nd stage needing to be loaded to obtain an image file which is used as the customized image file of the stage program in the 2 nd stage needing to be loaded, and replaces the original image file of the stage program in the 2 nd stage needing to be loaded.
In this step, the PXE server compresses the customized program package of the stage program in stage2 that needs to be loaded to obtain an image file, which is used as the customized image file of the stage program in stage2 that needs to be loaded, and replaces the original image file of the stage program in stage2 that needs to be loaded to obtain the customized image file of the stage program in stage2 that needs to be loaded.
Then, each PXE client 102 does not need to start from the BIOS, enter the RAID setting interface, manually configure the RAID by an operator, but directly start from the PXE, automatically complete its respective RAID configuration by initializing the memory disk program, and complete the specific method of installing the operating system, the flow is as shown in fig. 5, and the method includes the following steps:
s501: the PXE client 102 starts up from the PXE, loads the system kernel and initializes the memory disk based on the PXE boot program downloaded from the PXE server 101.
In this step, the PXE client 102 starts from the PXE, downloads and boots a PXE bootstrap program from the PXE server 101 through TFTP or MTETP (multicast multimedia file transfer protocol), and the bootstrap program automatically loads a kernel program corresponding to the PXE client 102 from the PXE server 101 and initializes a memory disk program; the initialization memory disk program is loaded after being decompressed according to the image file of the initialization memory disk program customized in advance by the PXE server 101 in step S203, and the system kernel program provides an installation environment of the operating system for the PXE client 102.
S502: and the initialization memory disk program executes an executive program and a dependent program which are required by a pre-embedded RAID chip in the initialization memory disk program under a pre-installation environment, so as to complete RAID automatic configuration.
In this step, the initialization memory disk program loaded and run in the PXE client 102 executes the execution program and the dependent program required by the RAID chip pre-embedded in the initialization memory disk program in the pre-installation environment according to the script code of the automatic configuration disk array RAID recorded in the pre-installation module of the start configuration file, thereby completing the automatic RAID configuration.
Thus, the situation that the PXE client 102 is started from BIOS before the PXE client 102 prepares to install the operating system and enters a RAID setting interface is avoided, meanwhile, a display needs to be connected, and an operator manually configures RAID for each PXE client 102 is also avoided. For a plurality of PXE clients 102 needing to configure RAID, by using the RAID configuration method provided in the embodiment of the present invention, the operation of configuring RAID for each PXE client 102 can be avoided, thereby improving the efficiency of RAID configuration.
In fact, the start configuration file may further include an installation module and an installation-completed module; the installation module is recorded with installation steps and installation configuration information script codes; the installation completion module is recorded with script codes which need to be executed after installation is completed.
S503: and the initialized memory disk program carries out installation of the operating system according to the script codes in the installation module of the starting configuration file.
In this step, the initialization memory disk program decompresses and loads the acquired image file of the installer customized by the PXE server 101 in step S303 and the image file of the stage program in phase 2, which is customized by the PXE server 101 in step S403 and needs to be loaded, and installs the operating system according to the script code in the installation module of the start configuration file.
In the technical scheme of the invention, the PXE server embeds the executive program and the dependency program required by the RAID chip in the preinstalled environment into the image file of the initialized memory disk program in advance, so that after a PXE bootstrap program downloaded by the PXE client loads a system kernel program and the initialized memory disk program, the initialized memory disk program executes the executive program and the dependency program according to the script code of the RAID recorded in the preinstalled module of the starting configuration file, and the RAID automatic configuration is completed, thereby avoiding that each PXE client needs to enter an RAID setting interface from BIOS starting before starting the PXE, simultaneously connecting a display, and manually configuring the RAID for each PXE client 102 by an operator, thereby saving a large amount of time and energy and improving the efficiency of RAID configuration. Preferably, the PXE server may also customize an image file of the installed program and an image file of the stage program in phase 2 that needs to be loaded in advance, so as to implement installation of the PXE client operating system after automatically configuring the RAID.
Those skilled in the art will appreciate that all or part of the steps in the method for implementing the above embodiments may be implemented by relevant hardware instructed by a program, and the program may be stored in a computer readable storage medium, such as: ROM/RAM, magnetic disk, optical disk, etc.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be construed as the protection scope of the present invention.

Claims (10)

1. A PXE-based RAID automatic configuration method is characterized by comprising the following steps:
the method comprises the steps that a PXE client in a pre-starting execution environment is started from a PXE, after a system kernel program and an initialization memory disk program are loaded according to a PXE bootstrap program downloaded from a PXE server, the initialization memory disk program executes an executive program and a dependent program which are required by a RAID chip pre-embedded in the initialization memory disk program under a pre-installation environment according to script codes of an automatic configuration disk array RAID recorded in a pre-installation module of a starting configuration file, and RAID automatic configuration is completed;
then, the initialized memory disk program carries out installation of an operating system according to the script codes in the installation module of the starting configuration file;
wherein the system kernel program provides an installation environment of the operating system for the PXE client.
2. The method as claimed in claim 1, wherein the initialization memory disk program is loaded after the PXE boot program obtains the image file of the pre-customized initialization memory disk program for decompression, and
the execution program and the dependent program required by the RAID chip in the preinstalled environment are those in which the PXE server is embedded in advance in the image file of the pre-customized initialization memory disk program, and specifically include:
the PXE server decompresses the image file of the original initialized memory disk program to obtain a program package of the original initialized memory disk program;
the PXE server copies a program package integrated with an executive program and a dependent program required by the RAID chip in a preinstalled environment to the root directory of the original program package of the initialized memory disk program to obtain a customized program package of the initialized memory disk program;
and the PXE server takes an image file obtained by compressing the program package of the customized initialization memory disk program as the image file of the customized initialization memory disk program, and replaces the image file of the original initialization memory disk program.
3. The method as claimed in claim 1 or 2, wherein after the PXE boot loader loads a system kernel and initializes a memory disk, the method further comprises:
the initialization memory disk program acquires a mirror image file of a pre-customized installation program, decompresses and loads the mirror image file;
and the initialization memory disk program acquires the image file of the stage program at the 2 nd stage, which is customized in advance and needs to be loaded, and loads the image file after decompressing the image file.
4. The method as claimed in claim 3, wherein the image file of the installer is pre-customized by the PXE server, specifically comprising:
the PXE server decompresses the image file of the original installation program to obtain a program package of the original installation program;
the PXE server copies pre-stored library files in a 6 th version community enterprise operating system (CentOS) to a library file directory of the original program package of the installation program to obtain a customized program package of the installation program;
and the PXE server takes an image file obtained by compressing the program package of the customized installation program as the image file of the customized installation program, and replaces the image file of the original installation program.
5. The method as claimed in claim 3, wherein the image file of the phase 2 stage program is pre-customized by the PXE server, specifically comprising:
the PXE server decompresses the image file of the original stage program in the 2 nd stage which needs to be loaded to obtain a program package of the original stage program in the 2 nd stage which needs to be loaded;
the PXE server copies the library file in the 5 th edition CentOS stored in advance to the library file directory of the original program package of the 2 nd stage program which needs to be loaded, and then obtains the program package of the customized 2 nd stage program which needs to be loaded;
and the PXE server takes an image file obtained by compressing the customized stage program package of the stage program in the 2 nd stage required to be loaded as the image file of the customized stage program in the 2 nd stage required to be loaded, and replaces the original image file of the stage program in the 2 nd stage required to be loaded.
6. A PXE-based RAID auto-configuration system, comprising: a PXE server, and a plurality of PXE clients; wherein,
the PXE server is used for storing a PXE bootstrap program;
the PXE client is used for starting from the PXE, loading a system kernel program and an initialization memory disk program according to the PXE bootstrap program downloaded from the PXE server, and then executing an executive program and a dependent program which are required by a RAID chip pre-embedded in the initialization memory disk program under a pre-installation environment according to a script code for automatically configuring the RAID recorded in a pre-installation module of a starting configuration file by the initialization memory disk program to complete RAID automatic configuration; then, the initialized memory disk program carries out installation of an operating system according to the script codes in the installation module of the starting configuration file; wherein the system kernel program provides an installation environment of the operating system for the PXE client.
7. The system as recited in claim 6, wherein the initialization memory disk program is loaded after the PXE boot program obtains an image file of the initialization memory disk program for decompression, and
the PXE server is further configured to embed an execution program and a dependent program, which are required by the RAID chip in a preinstalled environment, into the image file of the initialization memory disk program in advance: the PXE server decompresses the image file of the original initialized memory disk program to obtain a program package of the original initialized memory disk program; copying a program package integrated with an executive program and a dependent program required by the RAID chip in a preinstalled environment to the root directory of the original program package of the initialized memory disk program to obtain a new program package of the initialized memory disk program; and replacing the original image file of the initialization memory disk program with the image file of the initialization memory disk program obtained after compressing the program package of the new initialization memory disk program.
8. The system of claim 7,
the PXE server is also used for customizing an image file of the installation program: the PXE server decompresses the image file of the original installation program to obtain a program package of the original installation program; the PXE server copies pre-stored library files in the 6 th edition CentOS to a library file directory of the original program package of the installation program to obtain a customized program package of the installation program; and the PXE server compresses the program package of the customized installation program to obtain an image file of the customized installation program.
9. The system of claim 7,
the PXE server is also used for customizing an image file of a phase 2 stage program needing to be loaded: the PXE server decompresses the image file of the original stage program in the 2 nd stage which needs to be loaded to obtain a program package of the original stage program in the 2 nd stage which needs to be loaded; the PXE server copies the library file in the 5 th edition CentOS stored in advance to the library file directory of the original program package of the 2 nd stage program which needs to be loaded, and then obtains the program package of the customized 2 nd stage program which needs to be loaded; and the PXE server compresses the program package of the customized and to-be-loaded phase 2 program to obtain an image file of the customized and to-be-loaded phase 2 program.
10. The system of claim 8 or 9,
the customized installation program image file is used for being acquired by the initialized memory disk program, decompressed and loaded; and
and the customized and to-be-loaded image file of the stage program in the 2 nd stage is used for being acquired by the initialization memory disk program and being loaded after being decompressed.
CN201310724306.7A 2013-12-25 2013-12-25 PXE-based RAID automatic configuration method and system Active CN103746833B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310724306.7A CN103746833B (en) 2013-12-25 2013-12-25 PXE-based RAID automatic configuration method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310724306.7A CN103746833B (en) 2013-12-25 2013-12-25 PXE-based RAID automatic configuration method and system

Publications (2)

Publication Number Publication Date
CN103746833A CN103746833A (en) 2014-04-23
CN103746833B true CN103746833B (en) 2017-02-01

Family

ID=50503824

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310724306.7A Active CN103746833B (en) 2013-12-25 2013-12-25 PXE-based RAID automatic configuration method and system

Country Status (1)

Country Link
CN (1) CN103746833B (en)

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984575A (en) * 2014-05-28 2014-08-13 浪潮电子信息产业股份有限公司 Rapid deployment method of cluster Linux operation system in cloud-computing environment
CN104360883B (en) * 2014-11-12 2018-03-09 浪潮(北京)电子信息产业有限公司 A kind of configuration Raid method and system
CN105656970A (en) * 2014-11-24 2016-06-08 中国移动通信集团公司 RAID (Redundant Array of Independent Disk) card configuring method and system and relevant device
CN105208006B (en) * 2015-08-25 2018-11-27 浪潮(北京)电子信息产业有限公司 The batch configuration system and method for server virtualization platform host Raid
CN105242875A (en) * 2015-09-17 2016-01-13 浪潮集团有限公司 Server raid batch configuration method
CN106095339A (en) * 2016-06-13 2016-11-09 浪潮(北京)电子信息产业有限公司 A kind of RAID collocation method for server
CN106126223A (en) * 2016-06-22 2016-11-16 浪潮电子信息产业股份有限公司 Method for automatically establishing Raid card array based on K-UX rescue mode
CN107544780B (en) * 2016-06-23 2021-11-30 北京忆恒创源科技股份有限公司 Installation method and installation device of operating system
CN106354430B (en) * 2016-08-27 2019-06-18 浪潮(北京)电子信息产业有限公司 A kind of method and device based on BMC configuration RAID card
CN106201546B (en) * 2016-10-11 2020-01-31 合一网络技术(北京)有限公司 Full-scale formatting method and system for large disks in linux system installation processes
CN108205420A (en) * 2016-12-19 2018-06-26 北京国双科技有限公司 disk configuration tool generation method and device
CN106708579B (en) * 2016-12-27 2021-02-26 曙光信息产业股份有限公司 Method and device for installing operating system
CN106921521B (en) * 2017-02-28 2020-05-08 迈普通信技术股份有限公司 Equipment information loading method and network equipment
CN107391193A (en) * 2017-07-21 2017-11-24 郑州云海信息技术有限公司 A kind of client, the system and method for configuration server
CN107566174A (en) * 2017-09-05 2018-01-09 郑州云海信息技术有限公司 A kind of network interface card identification and the realization method and system of bulk filling system
CN107678696A (en) * 2017-10-20 2018-02-09 郑州云海信息技术有限公司 A kind of RAID creation method and system
CN108008962A (en) * 2017-12-12 2018-05-08 郑州云海信息技术有限公司 The collocation method and system of PXE server under a kind of linux system
CN109144581A (en) * 2018-07-23 2019-01-04 郑州云海信息技术有限公司 A kind of method and system configuring RAID in server system
CN109257186A (en) * 2018-08-23 2019-01-22 郑州云海信息技术有限公司 A kind of method and system making server automatically from PXE network startup
CN110045991B (en) * 2019-03-08 2022-05-20 平安科技(深圳)有限公司 RAID configuration method and device of server, computer equipment and storage medium
CN110413293A (en) * 2019-07-23 2019-11-05 深圳忆联信息系统有限公司 The method and device that system deployment process modifies to standard mirror image
CN112068895B (en) * 2020-08-10 2023-12-19 深圳市鼎盛光电有限公司 Code configuration method, device, video playing equipment and storage medium
CN112328179A (en) * 2020-11-10 2021-02-05 北京明略软件系统有限公司 Configuration method and system of disk array, electronic device and readable storage medium
CN114253609B (en) * 2021-11-10 2023-07-18 苏州浪潮智能科技有限公司 Method and system for installing OS system through network PXE based on Feiteng platform
CN116483468B (en) * 2023-04-19 2024-04-30 合芯科技(苏州)有限公司 Operating system installation method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6230240B1 (en) * 1998-06-23 2001-05-08 Hewlett-Packard Company Storage management system and auto-RAID transaction manager for coherent memory map across hot plug interface
CN101577701A (en) * 2008-05-05 2009-11-11 北京瑞佳晨科技有限公司 Method for initializing disk drive in batches
CN101764846A (en) * 2009-12-18 2010-06-30 西南交通大学 Remote centralized disk array operation monitoring system and implement method thereof
CN101996052A (en) * 2009-08-17 2011-03-30 英业达股份有限公司 Configuration system and method of redundant array of inexpensive disk (RAID)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7363374B2 (en) * 2001-04-27 2008-04-22 International Business Machines Corporation Method and system for fault-tolerant remote boot in the presence of boot server overload/failure with self-throttling boot servers

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6230240B1 (en) * 1998-06-23 2001-05-08 Hewlett-Packard Company Storage management system and auto-RAID transaction manager for coherent memory map across hot plug interface
CN101577701A (en) * 2008-05-05 2009-11-11 北京瑞佳晨科技有限公司 Method for initializing disk drive in batches
CN101996052A (en) * 2009-08-17 2011-03-30 英业达股份有限公司 Configuration system and method of redundant array of inexpensive disk (RAID)
CN101764846A (en) * 2009-12-18 2010-06-30 西南交通大学 Remote centralized disk array operation monitoring system and implement method thereof

Also Published As

Publication number Publication date
CN103746833A (en) 2014-04-23

Similar Documents

Publication Publication Date Title
CN103746833B (en) PXE-based RAID automatic configuration method and system
US7650490B2 (en) Embedded device for implementing a boot process on a host
JP6750108B2 (en) Operating system installation
US7490267B2 (en) System and method for testing computer
US7159106B2 (en) Information handling system manufacture method and system
CN107463388B (en) UEFI diskless starting method
CN103744695A (en) Method and system for operating system remote installation on basis of PXE
CN107766084B (en) Boot loading and installation method and computing system thereof
CN111966423B (en) Method and equipment for realizing memory operating system
US20140052403A1 (en) Test system and test method thereof
US9619340B1 (en) Disaster recovery on dissimilar hardware
US20160306617A1 (en) Methods of updating firmware components, computer systems and memory apparatus
US20200349009A1 (en) Information Handling System And Method To Restore System Firmware To A Selected Restore Point
US11175860B2 (en) Virtual memories to load operating systems
CN107357608A (en) The method, apparatus and system of a kind of automatic installing operating system
CN109471665B (en) Method for automatically installing Windows operating system
US8656149B2 (en) Rapid activation of service management processor subsystem for server device
US8762699B1 (en) System, apparatus, and method for initiating a reboot of a personal computer system by pressing a button on an attached storage device and causing the operating system on the attached storage device to be booted
CN102902554A (en) LINUX operation system mounting method of Loongson platform
US9141419B1 (en) Capturing and restoring an appliance image
US8918630B1 (en) System, apparatus, and method for initiating a reboot of a personal computer system by pressing a button on an attached storage device and causing the operating system on the attached storage device to be booted
JP5619999B2 (en) Method for executing utility program, computer system and computer program product
CN111813337A (en) RAID automatic configuration method and device based on Kickstart installation system
CN112506614B (en) IDV system initialization deployment method supporting multi-architecture terminal
US20240036896A1 (en) Generating installation images based upon dpu-specific capabilities

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230418

Address after: Room 501-502, 5/F, Sina Headquarters Scientific Research Building, Block N-1 and N-2, Zhongguancun Software Park, Dongbei Wangxi Road, Haidian District, Beijing, 100193

Patentee after: Sina Technology (China) Co.,Ltd.

Address before: 100080, International Building, No. 58 West Fourth Ring Road, Haidian District, Beijing, 20 floor

Patentee before: Sina.com Technology (China) Co.,Ltd.

TR01 Transfer of patent right