A PXE filling system method and device for automatically selecting a system disk and a storage medium

By using the PXE system refill method with a self-selected system disk, the system automatically identifies and creates a performance-optimized RAID disk array, solving the problems of low efficiency and poor performance caused by manually creating RAID1 in the existing technology, and achieving efficient system refill.

CN115098121BActive Publication Date: 2026-04-21INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
INSPUR SUZHOU INTELLIGENT TECH CO LTD
Filing Date
2022-06-30
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

When batch installing server systems, existing technologies require manually creating RAID 1 disk arrays, which leads to low efficiency and cannot guarantee performance optimization, affecting system installation efficiency and performance.

Method used

A PXE system refilling method with self-selected system disk is provided. The PXE system identifies the RAID hardware information of the target device, automatically creates a matching RAID disk array, and selects the system disk for refilling according to performance priority, avoiding manual intervention.

Benefits of technology

It enables the automatic selection of the best-performing RAID disk array as the system disk during batch filling, improving system installation efficiency and performance while reducing manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115098121B_ABST
    Figure CN115098121B_ABST
Patent Text Reader

Abstract

The present application relates to a PXE filling system method, device and storage medium of a self-selected system disk, wherein, after the PXE system is started in the memory of a target device of a to-be-filled system, the raid disk array configured in the target device is deleted, the raid hardware information of the raid disk array related hardware in the target device is obtained, the corresponding raid disk array creation strategy is called according to the raid hardware information, different raid disk array creation strategies are adopted for different raid hardware, and the raid disk array creation strategy is executed to create the raid disk array matching the raid hardware in the target device; the PXE system guides the filling process to be executed, the filling process traverses whether the raid disk array configured in the target device of the to-be-filled system exists in a preset order, if yes, the raid disk array obtained through the traversal is used as a system disk to perform system filling, and if not, a preset disk is used as a system disk to perform system filling. The present application can fill the system in the best performance storage device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automated system installation technology, and in particular to a method, apparatus and storage medium for a PXE filling system with a self-selecting system disk. Background Technology

[0002] Currently, server system installation disks come in various forms, including onboard SATA / SAS / SSD hard drives or onboard M.2 drives. Additionally, if the device is equipped with a SAS card or RAID card, the system can be installed onto the disks under that card. For system security reasons, server system installation disks are generally configured as RAID 1 to improve security. Due to the different types of disks and RAID cards, the performance of RAID 1 arrays as system disks varies, and the methods used to create RAID 1 arrays also differ. Therefore, when performing PXE system installation on devices, RAID 1 arrays are typically created manually beforehand, and the system disk is selected during the installation process. This method has little impact on individual devices in a laboratory setting, but it severely impacts system installation efficiency during batch installations or production lines. Furthermore, during automated execution, if the selected RAID array as the system disk is not optimally configured, it limits the performance of the installed system. Therefore, a PXE filling system method, apparatus and storage medium with self-selecting system disk is proposed. When performing PXE filling, the system can intelligently identify the equipment and select the optimal system disk to automatically complete the filling without manual intervention. Summary of the Invention

[0003] In order to solve the above-mentioned technical problems, or at least partially solve the above-mentioned technical problems, the present invention provides a PXE filling system method, apparatus and storage medium for a self-selecting system disk.

[0004] In a first aspect, the present invention provides a PXE system reloading method for a self-selecting system disk, comprising: after booting a PXE system in the memory of a target device to be reloaded, the PXE system deletes the configured RAID disk array in the target device, obtains RAID hardware information of the RAID disk array related hardware in the target device, calls the corresponding RAID disk array creation strategy according to the RAID hardware information, adopts different RAID disk array creation strategies for different RAID hardware, executes the RAID disk array creation strategy to create a RAID disk array matching the RAID hardware in the target device, and the created RAID disk array is RAID1;

[0005] The PXE system guides the execution of the filling process. The filling process traverses the RAID disk array configurations adapted to different RAID hardware in a preset order to see if they exist in the target device of the system to be filled. It determines whether the target device of the system to be filled has a RAID disk array. If it does, the system is filled using the RAID disk array obtained from the traversal as the system disk. Otherwise, the system is filled using the preset disk as the system disk.

[0006] Furthermore, the specified configured RAID disk array is configured to a protected state as required. The RAID disk array in the protected state will not be detected and deleted by the program that deletes the configured RAID disk array in the target device. The RAID hardware information of the RAID disk array in the protected state will not be collected by the RAID hardware information acquisition program. The RAID disk array configuration of the RAID disk array in the protected state will not be traversed by the filling process in a preset order to check whether it exists in the target device of the system to be filled.

[0007] Furthermore, after the PXE system is booted into the memory of the target device to be filled, the PXE system checks whether there is a configured RAID disk array in the target device that is in an unprotected state. If so, the configuration of the configured RAID disk array and its configuration file directory are deleted.

[0008] Furthermore, during the filling process, the RAID disk array configurations adapted to different RAID hardware are traversed in a preset order to detect whether the RAID disk array configuration exists in the target device of the system to be filled. The order of traversing the RAID disk array configurations adapted to different RAID hardware is based on the performance preset of the RAID disk arrays created by different RAID hardware as system disks: the better the performance of a RAID disk array created by a certain type of RAID hardware as a system disk, the earlier the RAID disk array configuration created by it will be in the traversal settings.

[0009] Furthermore, using unique keywords in the RAID disk array configurations of different RAID hardware as identification identifiers, the value of the identification identifier is obtained from its position in the RAID disk array configuration. If the value of the identification identifier is empty, it is determined that the RAID disk array corresponding to the identification identifier does not exist in the target device of the system to be filled. If the value of the identification identifier is not empty, and the RAID disk array configuration corresponding to the RAID disk array with the identification identifier value is in an unprotected state, then the RAID disk array is used as the system disk.

[0010] Furthermore, the preset disks are preset through default configuration and / or specified methods. In the default configuration and specified methods: when no specific disk is specified for the preset disk, the preset disk is the preset default configuration disk; when a specific disk is specified for the preset disk, the preset disk is the specified specific disk.

[0011] Furthermore, the RAID disk array creation strategy includes: obtaining the disk identifiers required when creating a RAID disk array to adapt to different RAID hardware. The disk identifiers represent the disks that constitute the RAID disk array and are used as parameters in the corresponding RAID disk array creation commands adapted to different RAID hardware.

[0012] Secondly, the present invention provides a PXE filling system device based on a self-selected system disk for a PXE filling system method, comprising: a RAID disk array deletion module, wherein the RAID disk array deletion module is used to delete the RAID disks configured in the target device of the system to be filled;

[0013] RAID hardware information acquisition module, the RAID hardware information acquisition module acquires RAID hardware information;

[0014] The RAID disk array creation module calls the corresponding RAID disk array creation strategy based on the RAID hardware information obtained from the RAID hardware information acquisition module to create a RAID disk array that matches the RAID hardware.

[0015] The system disk selection module traverses the RAID disk array configurations adapted to different RAID hardware in a preset order to check if they exist in the target device of the system to be installed. If they do, the RAID disk array obtained from the traversal is used as the system disk for system installation; otherwise, the preset disk is used as the system disk for system installation.

[0016] Furthermore, the RAID disk array deletion module, RAID hardware information acquisition module, and system disk selection module are all coupled to the RAID disk array protection module. The RAID disk array protection module configures the protection status of the specified RAID disk array. RAID disk arrays in the protection status will not be detected and deleted by the RAID disk array deletion module, the hardware information of RAID disk arrays in the protection status will not be acquired by the RAID hardware information acquisition module, and the RAID disk array configuration of RAID disk arrays in the protection status will not be checked by the system disk selection module in a preset order to see if it exists in the target device of the system to be filled.

[0017] Thirdly, the present invention provides a terminal for implementing a PXE filling system method for a custom system disk, comprising at least one processing unit, a storage unit, and an interface unit, wherein the processing unit, the storage unit, and the interface unit are connected via a bus unit; the storage unit stores a computer program, and the processing unit reads from the storage unit and executes the computer program to implement the PXE filling system method for the custom system disk.

[0018] Fourthly, the present invention provides a storage medium for implementing a PXE filling system method for a custom system disk, wherein a computer program is stored thereon, and the computer program, when executed by a processor, implements the PXE filling system method for the custom system disk.

[0019] The technical solutions provided in the embodiments of the present invention have the following advantages compared with the prior art:

[0020] In this invention, after the PXE system boots from the memory of the target device containing the system to be installed, the PXE system deletes the RAID disk array already configured on the target device. For target devices with RAID hardware, it deletes the configured RAID disk array and uses the freed-up RAID hardware to create a RAID disk array as the system disk. This avoids the system being installed onto the disk due to RAID hardware occupancy.

[0021] This invention obtains RAID hardware information of the relevant hardware in the target device, calls the corresponding RAID disk array creation strategy based on the RAID hardware information, and adopts different RAID disk array creation strategies for different RAID hardware. The RAID disk array creation strategy is then executed to create a RAID disk array matching the RAID hardware on the target device. Since the instructions for creating a RAID disk array differ for different RAID hardware, when different RAID hardware exists in the target device, this application creates a RAID disk array by matching the corresponding RAID disk array creation strategy according to the hardware information, thus achieving adaptive and automatic configuration of the RAID disk array for different RAID hardware.

[0022] In this invention, the PXE system guides the installation process. The installation process iterates through the target device of the system to be installed, checking if RAID disk array configurations adapted to different RAID hardware exist in a preset order. If they do, the system is installed using the obtained RAID disk array as the system disk; otherwise, a preset disk is used. This allows the system to choose either a created RAID disk array or a preset disk as the system disk for installation. The order of traversing the RAID disk array configurations adapted to different RAID hardware is based on the performance presets of RAID disk arrays created with different RAID hardware as system disks. Upon encountering a RAID disk array, the process exits and selects that array as the system disk. If no RAID disk array exists, the preset disk is used. This ensures that when the target device has multiple RAID disk arrays, the system is installed in the optimal RAID disk array based on its performance as a system disk. If no RAID hardware exists, the preset disk is used as the system disk. Attached Figure Description

[0023] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0024] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0025] Figure 1 A flowchart of a PXE filling system method for a self-selecting system disk provided in an embodiment of the present invention;

[0026] Figure 2 This is a schematic diagram of a PXE filling system device with a self-selecting system disk, which is provided in an embodiment of the present invention for a PXE filling system method based on a self-selecting system disk.

[0027] Figure 3 This is a schematic diagram of a terminal for implementing a PXE filling system method for a self-selecting system disk, as provided in an embodiment of the present invention. Detailed Implementation

[0028] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0029] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0030] Example 1

[0031] See Figure 1 As shown, this embodiment of the invention provides a PXE filling system method for a self-selecting system disk, comprising:

[0032] S100 specifies the protected state of the RAID disk array already configured in the target device as required.

[0033] One feasible approach is to construct a filter whose filtering condition is set to protected RAID arrays. This filter is configured in the decorators of the program executing the deletion of RAID arrays already configured on the target device, the RAID hardware information acquisition program, and the installation process. This prevents protected RAID arrays from being detected and deleted by the PXE system's program executing the deletion of RAID arrays already configured on the target device, prevents the RAID hardware information acquisition program from collecting the hardware information of protected RAID arrays, and prevents the installation process from iterating through the RAID array configurations of different RAID hardware on the target device in a preset order to check if they exist. If the target device already has a RAID array containing data that needs protection, configuring the specified RAID array to protected state protects the data in the existing RAID array.

[0034] After the S200 PXE system boots into the memory of the target device to be filled, the PXE system deletes the unprotected configured RAID disk array from the target device.

[0035] After the PXE system boots into the memory of the target device to be filled, it specifically filters all configured RAID disk arrays through a filter to remove those configured RAID disk arrays in a protected state on the target device. Then, the PXE system executes a program to check whether a configured RAID disk array already exists on the target device. If a configured RAID disk array exists, it deletes the configuration of the configured RAID disk array and its configuration file directory.

[0036] S300: Obtain RAID hardware information for the RAID disk array hardware in the target device that is in an unprotected state. Specifically, one feasible method is to filter the RAID hardware of the RAID disk array through a filter to remove the RAID hardware in a protected state, and then have the PXE system collect the RAID hardware information of the filtered RAID hardware.

[0037] The S400 executes the corresponding RAID disk array creation strategy based on the acquired RAID hardware information.

[0038] Different RAID disk array creation strategies are employed for different RAID hardware. Executing the RAID disk array creation strategy creates a RAID disk array matching the RAID hardware on the target device, and the created RAID disk array is designated as RAID 1. Specifically, the RAID disk array creation strategy includes: obtaining the disk identifiers required for creating RAID disk arrays adapted to different RAID hardware. Preferably, the RAID disk array used as the system disk is designated as RAID 1, meaning it requires two disks to form the array. Therefore, constructing the RAID disk array requires the disk identifiers of the two disks under the RAID card. These disk identifiers represent the disks constituting the RAID disk array and are used as parameters in the corresponding RAID disk array creation commands adapted to different RAID hardware.

[0039] In real-world scenarios, the commands for creating RAID disk arrays differ depending on the RAID hardware. For example, when the RAID hardware is Intel RAID, the command to create a RAID disk array includes querying the drive letters sda and adb of the two disks connected to the Intel RAID hardware, using the drive letters as disk identifiers, and adding the drive letters of the two queried disks as parameters to the Intel RAID disk array creation command: "mdadm -C / dev / md / imsm0 / dev / sd[ab](disk drive letter) -n2 -e imsm; mdadm -C / dev / md126 / dev / md / imsm0 -n 2 -L 1".

[0040] When the RAID hardware is LSI RAID, query the disk identifiers LD1 and LD2 of the two disks connected to the LSI RAID hardware, and add the queried disk identifiers LD1 and LD2 as parameters to the LSI RAID disk array creation command: "storcli64 / c0add vd type=raid1 drives=$LD1,$LD2".

[0041] When the RAID hardware is PMC RAID, query the slot numbers of the two disks connected to the PMC RAID hardware and use the slot numbers as disk identifiers; add the queried slot numbers of the two disks to the RAID disk array creation command of PMC RAID: "Arcconf create 1logicaldrive max 1slot0 slot1 noprompt" where slot0 and slot1 are the disk slots.

[0042] S500: The PXE system boots the filling process. The filling process iterates through the RAID disk array configurations adapted to different RAID hardware in a preset order to see if they exist in the target device of the system to be filled. If they do, proceed to S600; otherwise, proceed to S700.

[0043] Specifically, during the filling process, the RAID disk array configurations adapted to different RAID hardware are traversed in a preset order to detect whether the RAID disk array configuration exists in the target device of the system to be filled. The order of traversing the RAID disk array configurations adapted to different RAID hardware is based on the performance preset of the RAID disk arrays created by different RAID hardware as system disks: the better the performance of a RAID disk array created by a certain type of RAID hardware as a system disk, the earlier the RAID disk array configuration created by it will be in the traversal settings.

[0044] Specifically, unique keywords in the RAID disk array configuration of different RAID hardware are used as identification identifiers. The identification identifier is obtained from the position of the identification identifier in the RAID disk array configuration. If the obtained identifier is empty, it is determined that the RAID disk array corresponding to the identification identifier does not exist in the target device of the system to be filled.

[0045] If a RAID array built with Type 1 RAID hardware offers the best performance as a system disk, followed by Type 2 RAID arrays, and then Type 3 RAID arrays offer the worst performance, the traversal order is: the first key unique to the Type 1 RAID array configuration, the second key unique to the Type 2 RAID array configuration, and the third key unique to the Type 3 RAID array configuration. For each identifier, the value of the identifier is retrieved from its position in the RAID array configuration. If the value is empty, it is determined that the RAID array corresponding to that identifier does not exist in the target device of the system to be filled.

[0046] S600 uses the RAID disk array obtained through traversal as the system disk for system installation. In the specific implementation process, if the RAID disk array obtained through traversal exists in the target device, the traversal is skipped, and the RAID disk array obtained through traversal is the optimal choice for system disk performance.

[0047] The S700 uses a preset disk as the system disk for system installation. In practice, the preset disk is configured using default settings or specified settings. In the default settings and specified settings, if no specific disk is specified for the preset disk, the preset disk is the default configuration disk; if a specific disk is specified for the preset disk, the preset disk is the specified disk.

[0048] Example 2

[0049] See Figure 2 As shown, this embodiment of the invention provides a PXE filling system apparatus based on a self-selecting system disk, comprising:

[0050] The RAID disk array protection module is coupled to the RAID disk array deletion module, the RAID hardware information acquisition module, and the system disk selection module. The RAID disk array protection module configures the protection status of a specified RAID disk array on the target device. A RAID disk array in the protected state will not be detected and deleted by the RAID disk array deletion module, its hardware information will not be collected by the RAID hardware information acquisition module, and its configuration will not be traversed and assigned identification identifiers by the system disk selection module.

[0051] The RAID disk array deletion module is used to detect configured RAID disk arrays in an unprotected state in the target device of the system to be filled, and delete the detected configured RAID disk arrays in the target device of the system to be filled.

[0052] The RAID hardware information acquisition module collects RAID hardware information of the RAID disk array in the target device of the system to be filled after deleting the configured RAID disk array.

[0053] The RAID disk array creation module executes the corresponding RAID disk array creation strategy based on the RAID hardware information obtained from the RAID hardware information acquisition module to create a RAID disk array that matches the RAID hardware. If no RAID hardware information is available, the RAID disk array creation strategy will not be executed to create the RAID disk array.

[0054] The system disk selection module, after creating the RAID disk array, traverses the RAID disk array configurations adapted to different RAID hardware in a preset order to check if they exist in the target device of the system to be installed. If they do, the RAID disk array obtained through the traversal is used as the system disk for system installation; otherwise, the preset disk is used as the system disk for system installation.

[0055] Example 4

[0056] See Figure 3 As shown, the present invention provides a terminal for implementing a PXE filling system method for a custom system disk, comprising at least one processing unit, a storage unit, and an interface unit. The processing unit, the storage unit, and the interface unit are connected via a bus unit. The storage unit stores a computer program, and the processing unit reads and executes the computer program from the storage unit to implement the PXE filling system method for the custom system disk.

[0057] Example 5

[0058] This invention provides a storage medium for implementing a PXE filling system method for a custom system disk, wherein a computer program is stored thereon, and when the computer program is executed by a processor, the PXE filling system method for the custom system disk is implemented.

[0059] In this invention, the RAID disk arrays already configured in the target device are set to a protected state as required. RAID disk arrays in this protected state will not be detected and deleted by the PXE system's program for deleting RAID disk arrays already configured in the target device. The hardware information of the protected RAID disk arrays will not be collected, and their configurations will not be traversed by the installation process in a preset order to check whether RAID disk array configurations adapted to different RAID hardware exist in the target device of the system to be installed. This prevents protected RAID disk arrays and their RAID hardware from being used as the system disk of the system to be installed.

[0060] In this invention, after the PXE system boots from the memory of the target device containing the system to be installed, the PXE system deletes the RAID disk array already configured on the target device. For target devices with RAID hardware, it deletes the configured RAID disk array and uses the freed-up RAID hardware to create a RAID disk array as the system disk. This avoids the system being installed onto the disk due to RAID hardware occupancy.

[0061] This invention obtains RAID hardware information of the relevant hardware in the target device, calls the corresponding RAID disk array creation strategy based on the RAID hardware information, and adopts different RAID disk array creation strategies for different RAID hardware. The RAID disk array creation strategy is then executed to create a RAID disk array matching the RAID hardware on the target device. Since the instructions for creating a RAID disk array differ for different RAID hardware, when different RAID hardware exists in the target device, this application creates a RAID disk array by matching the corresponding RAID disk array creation strategy according to the hardware information, thus achieving adaptive and automatic configuration of the RAID disk array for different RAID hardware.

[0062] In this invention, the PXE system guides the installation process. The installation process iterates through the target device of the system to be installed, checking if RAID disk array configurations adapted to different RAID hardware exist in a preset order. If they do, the system is installed using the obtained RAID disk array as the system disk; otherwise, a preset disk is used. This allows the system to choose either a created RAID disk array or a preset disk as the system disk for installation. The order of traversing the RAID disk array configurations adapted to different RAID hardware is based on the performance presets of RAID disk arrays created with different RAID hardware as system disks. Upon encountering a RAID disk array, the process exits and selects that array as the system disk. If no RAID disk array exists, the preset disk is used. This ensures that when the target device has multiple RAID disk arrays, the system is installed in the optimal RAID disk array based on its performance as a system disk. If no RAID hardware exists, the preset disk is used as the system disk.

[0063] In the embodiments provided by this invention, it should be understood that the disclosed structures can be implemented in other ways. For example, the structural embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, structures, or units, and may be electrical, mechanical, or other forms.

[0064] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0065] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0066] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A PXE provisioning system method of self-selecting a system disk, characterized by, The application comprises the following steps: According to the demand, the specified configured raid disk array is configured to the protection state, so that the raid disk array in the protection state will not be detected and deleted by the program for deleting the configured raid disk array in the target device, the raid hardware information of the raid hardware of the raid disk array in the protection state will not be collected by the raid hardware information collection program, and the raid disk array configuration of the raid disk array in the protection state will not be traversed by the preset order in the target device of the system to be installed to determine whether it exists or not; After booting the PXE system in the memory of the target device of the system to be installed, the PXE system detects whether the configured raid disk array in the non-protection state exists in the target device, and if it exists, the configuration of the configured raid disk array and the configuration file directory thereof are deleted; The raid hardware information of the raid disk array in the non-protection state in the target device is obtained, the corresponding raid disk array creation strategy is called according to the raid hardware information, different raid disk array creation strategies are adopted for different raid hardware, the raid disk array creation strategy is executed to create the raid disk array matching the raid hardware in the target device, and the created raid disk array is raid1; wherein the raid disk array creation strategy comprises obtaining the disk identifier required for creating the raid disk array adapted to different raid hardware, the disk identifier representing the disk constituting the raid disk array, and being substituted into the corresponding raid disk array creation command adapted to different raid hardware as a parameter; The PXE system guides the execution of the installation process, the installation process traverses whether the raid disk array configuration adapted to different raid hardware exists in the target device of the system to be installed according to the preset order, if it exists, the first raid disk array obtained by the traversal is used as the system disk for system installation, otherwise the preset disk is used as the system disk for system installation; wherein the order of the raid disk array configuration adapted to different raid hardware is preset according to the performance of the raid disk array created by different raid hardware as the system disk: the better the performance of the raid disk array created by the raid hardware of a certain type as the system disk, the earlier the order of the raid disk array configuration of the raid disk array created by the raid hardware in the traversal setting; wherein the unique keyword in the raid disk array configuration of different raid hardware is used as the identification mark, the assignment of the identification mark is obtained from the position of the identification mark in the raid disk array configuration, if the assignment of the identification mark is empty, it is judged that the raid disk array corresponding to the identification mark does not exist in the target device of the system to be installed, if the assignment of the identification mark is non-empty and the raid disk array corresponding to the raid disk array configuration of the identification mark value is in the non-protection state, the raid disk array is used as the system disk.

2. The PXE provisioning system method of self-selecting a system disk of claim 1, wherein, The preset disk is implemented by a default configuration and / or a specified manner, wherein, when no specific disk is specified for the preset disk, the preset disk is a preset default configuration disk, and when a specific disk is specified for the preset disk, the preset disk is the specified specific disk.

3. A PXE boot system device for a self-selected system disk based on the PXE boot system method of the self-selected system disk according to any one of claims 1 or 2, characterized in that, Comprise: A raid disk array deletion module is configured to detect a configured raid disk array in a non-protected state in a target device of a system to be installed on demand and delete the configured raid disk array detected in the target device of the system to be installed, wherein, after booting a PXE system in the memory of the target device of the system to be installed, the raid disk array deletion module detects whether the configured raid disk array in the non-protected state exists in the target device, and if so, deletes the configuration of the configured raid disk array and a configuration file directory thereof; wherein, a specified configured raid disk array is configured to a protected state on demand, so that the raid disk array in the protected state is not detected and deleted by a program for deleting the configured raid disk array in the target device, raid hardware information of the raid disk array in the protected state is not collected by a raid hardware information collection program, and whether the raid disk array configuration of the raid disk array in the protected state exists in the target device of the system to be installed is not traversed by an installation process in a preset order; A raid hardware information collection module is configured to collect raid hardware information of raid hardware in a non-protected state in the target device of the system to be installed; A raid disk array creation module is configured to create a raid disk array matching the raid hardware according to a raid disk array creation strategy corresponding to the raid hardware information obtained from the raid hardware information collection module; wherein, the raid disk array creation strategy comprises: obtaining disk identifiers required for creating raid disk arrays adapted to different raid hardware, wherein the disk identifiers represent disks constituting the raid disk arrays and are substituted into corresponding raid disk array creation commands adapted to different raid hardware as parameters. The system disk selection module traverses in a preset order whether a raid disk array configuration adapted to different raid hardware exists in a target device of a system to be installed, and if so, performs system installation with the obtained raid disk array as a system disk, otherwise, performs system installation with a preset disk as a system disk, wherein the order of the raid disk array configuration adapted to different raid hardware is preset according to the performance of the raid disk array created by different raid hardware as a system disk: the better the performance of the raid disk array created by a type of raid hardware as a system disk, the earlier the order of the raid disk array configuration of the raid disk array created by the raid hardware in the traversal setting; wherein a unique keyword in the raid disk array configuration of different raid hardware is used as an identification mark, the assignment of the identification mark is obtained from the position of the identification mark in the raid disk array configuration, if the assignment of the identification mark is empty, it is judged that the raid disk array corresponding to the identification mark does not exist in the target device of the system to be installed, if the assignment of the identification mark is non-empty, and the raid disk array corresponding to the raid disk array configuration of the identification mark value is in a non-protection state, the raid disk array is taken as a system disk.

4. A terminal for implementing a PXE boot system method of a self-selecting system disk, characterized by, The system comprises at least one processing unit, a storage unit and an interface unit, the processing unit, the storage unit and the interface unit are connected through a bus unit; the storage unit stores a computer program, the processing unit reads and executes the computer program from the storage unit to realize the PXE installation system method of the self-selected system disk according to any one of claims 1 or 2.

5. A storage medium having stored thereon a computer program implementing a PXE boot system method of a self-selecting system disk, characterized in that, The computer program is executed by the processor to realize the PXE installation system method of the self-selected system disk according to any one of claims 1 or 2.

Citation Information

Patent Citations

  • Method, device and equipment for automatically creating disk array, and storage medium

    CN108762689A

  • System installation method and device

    CN109933343A