A method, system, device, and storage medium for configuring RAID

By setting the NFS mount path and liveCD boot in the out-of-band network, RAID information is collected and encrypted, enabling secure and controllable RAID configuration. This solves the security and machine compatibility issues of existing RAID configurations, and improves the scientific nature of the configuration and user experience.

CN115543205BActive Publication Date: 2026-05-26JINAN INSPUR DATA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
JINAN INSPUR DATA TECH CO LTD
Filing Date
2022-10-14
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

Existing RAID configuration methods have security issues, require additional network environment configuration, rely on BMC functionality and have complex device compatibility, and cannot achieve advanced configuration functions in out-of-band networks.

Method used

By setting the NFS mount path, the server is booted from the liveCD, RAID information is collected, a plaintext configuration file is generated and encrypted, and the configuration script is mounted and executed using the out-of-band network to achieve RAID configuration.

Benefits of technology

Without relying on the business network and BMC, a secure and controllable RAID configuration was achieved, supporting multi-executor task sharing and device selection, thus improving the scientific rationality of the configuration and the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115543205B_ABST
    Figure CN115543205B_ABST
Patent Text Reader

Abstract

This application provides a method, system, device, and storage medium for configuring RAID, which can help users configure RAID in large-scale batches in out-of-band network environments. The method includes: setting the NFS mount path of the server to be configured; booting the server from the mounted liveCD based on the mount path; collecting the RAID information of the server to be configured; processing the RAID information to obtain a plaintext RAID configuration file and reporting it; obtaining a configuration script image based on the plaintext RAID configuration file; mounting the configuration script image to the server to be configured; copying the configuration script after Extra is ready, granting permissions to run, and executing the RAID configuration. The method proposed in this application can distribute the task evenly across multiple executors according to the number of servers to be configured, and can collect the results obtained by the executors in executing the tasks. It can screen devices according to the configuration model, improving the scientific rationality of RAID configuration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of server management technology, and in particular to a method, system, device and storage medium for configuring RAID. Background Technology

[0002] For server manufacturers and server management software, batch configuration of RAID (Redundant Arrays of Independent Disks) is an unavoidable requirement. Currently, there are two main methods for batch RAID configuration, depending on the network: one is in-band RAID configuration using the business network, and the other is out-of-band RAID configuration using the network.

[0003] However, both of these RAID configuration methods have significant drawbacks: in-band RAID configuration using the business network requires the business network itself, which is insecure, and the account passwords for the servers being configured are different, making the statistical work extremely complex. Using an out-of-band network, on the other hand, is highly dependent on the BMC's functionality; if the BMC does not support out-of-band RAID configuration, this solution is not feasible. Secondly, it faces equipment compatibility issues. Based on the existing solutions and their shortcomings, there is an urgent need to propose a new out-of-band network-based RAID configuration solution. This solution requires no additional network environment configuration, does not occupy the business network, relies solely on the existing management network, can achieve batch RAID configuration, and does not need to worry about equipment compatibility issues, supporting all advanced configuration functions within the out-of-band network. In conclusion, currently, there is a lack of an effective method for configuring RAID. Summary of the Invention

[0004] This application provides a method, system, device, and storage medium for configuring RAID to solve the above-mentioned technical problems.

[0005] On one hand, embodiments of this application provide a method for configuring RAID, the method comprising:

[0006] Set the NFS mount path for the server to be configured;

[0007] Based on the mount path, the server to be configured is guided to boot from the mounted liveCD;

[0008] Collect the RAID information of the server to be configured;

[0009] The RAID information is processed to obtain a plaintext RAID configuration file, which is then reported.

[0010] Based on the plaintext RAID configuration file, a configuration script image is obtained;

[0011] Mount the configuration script image to the server to be configured. After Extra is ready, copy the configuration script, grant permissions to run it, and execute the RAID configuration.

[0012] In one implementation of this application, before setting the NFS mount path of the server to be configured, the method further includes:

[0013] Deploy the network environment;

[0014] Connect the platform to the out-of-band network of the server to be configured;

[0015] The server to be configured is scanned into the main program and stored.

[0016] In one implementation of this application, after scanning the server to be configured into the main program and storing it, the method further includes:

[0017] Read the Board Extra field of the FRU of all servers to be configured. If data exists, read the data and set it to empty.

[0018] The collected RAID information is compressed and written to the Board Extra field of the FRU in multiple parts, with 60 characters written each time.

[0019] In one implementation of this application, the process of processing the RAID information to obtain a plaintext RAID configuration file and reporting it specifically includes:

[0020] Parse the RAID information to obtain the original string;

[0021] The original string is Base64 encrypted n times to obtain an encrypted string ending with n; where n is a random number between 1 and 9;

[0022] The encrypted string is decrypted n times to obtain the plaintext RAID configuration file.

[0023] In one implementation of this application, the step of collecting the RAID information of the server to be configured specifically includes:

[0024] Collect user configuration requirements information;

[0025] Based on the configuration requirements, a configuration template is generated and stored in JSON encoded form; wherein, the configuration template contains an identifier ID.

[0026] In one implementation of this application, before obtaining the configuration script image based on the plaintext RAID configuration file, the method further includes:

[0027] Based on the identifier ID in the configuration template, determine the server to be configured that is applicable to the identifier ID.

[0028] In one implementation of this application, after configuring RAID, the method further includes:

[0029] Generate all log information during the RAID configuration process and write it to Extra;

[0030] Monitor the fields in the log information and report them;

[0031] After the RAID configuration is complete, the liveCD writes the configuration results to Extra.

[0032] This application embodiment also provides a system for configuring RAID, the system comprising:

[0033] The path setting module is used to set the NFS mount path of the server to be configured.

[0034] The startup module is used to guide the server to be configured to boot from the mounted liveCD based on the mount path;

[0035] A RAID information acquisition module is used to acquire the RAID information of the server to be configured.

[0036] The decryption module is used to process the RAID information, obtain the plaintext RAID configuration file and report it, and obtain a configuration script image based on the plaintext RAID configuration file;

[0037] The configuration execution module is used to mount the configuration script image to the server to be configured. After the extra is ready, it copies the configuration script, grants permissions to run it, and executes the RAID configuration.

[0038] This application embodiment also provides a device for configuring RAID, the device comprising:

[0039] At least one processor; and,

[0040] A memory communicatively connected to the at least one processor; wherein,

[0041] The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enable the at least one processor to:

[0042] Set the NFS mount path for the server to be configured;

[0043] Based on the mount path, the server to be configured is guided to boot from the mounted liveCD;

[0044] Collect the RAID information of the server to be configured;

[0045] The RAID information is processed to obtain a plaintext RAID configuration file, which is then reported.

[0046] Based on the plaintext RAID configuration file, a configuration script image is obtained;

[0047] Mount the configuration script image to the server to be configured. After Extra is ready, copy the configuration script, grant permissions to run it, and execute the RAID configuration.

[0048] This application embodiment also provides a non-volatile computer storage medium configured with RAID, storing computer-executable instructions, wherein the computer-executable instructions are configured as follows:

[0049] Set the NFS mount path for the server to be configured;

[0050] Based on the mount path, the server to be configured is guided to boot from the mounted liveCD;

[0051] Collect the RAID information of the server to be configured;

[0052] The RAID information is processed to obtain a plaintext RAID configuration file, which is then reported.

[0053] Based on the plaintext RAID configuration file, a configuration script image is obtained;

[0054] Mount the configuration script image to the server to be configured. After Extra is ready, copy the configuration script, grant permissions to run it, and execute the RAID configuration.

[0055] This application provides a method, system, device, and storage medium for configuring RAID. It achieves precise RAID configuration within the out-of-band network by connecting a system to the server's out-of-band management network. The system can distribute tasks across multiple executors based on the number of servers to be configured and collect the results from each executor. It can also filter devices based on a configuration model, improving the scientific rationality of RAID configuration. This application employs a reversible encryption algorithm to encrypt and decrypt the data to be exchanged. It can also collect RAID configuration information through relevant fields and read configuration logs and results. Furthermore, it allows real-time access to logs generated during the configuration process and the final configuration results, preventing situations where control is lost after mirroring is installed. The configuration process is controllable and interactive, resulting in a better user experience. Attached Figure Description

[0056] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0057] Figure 1 A flowchart illustrating a method for configuring RAID as provided in this application embodiment;

[0058] Figure 2 A system architecture diagram for configuring RAID is provided in an embodiment of this application;

[0059] Figure 3 This is a schematic diagram of a device configured with RAID, provided as an embodiment of this application. Detailed Implementation

[0060] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0061] For server manufacturers and server management software, there are currently two main methods for batch RAID configuration, depending on the network. One is in-band RAID configuration using the business network. This method is simple to operate, efficient, and fast, making it a common configuration solution. However, its main drawback is the requirement to use the business network. Depending on whether the servers being tested have operating systems, there are two other methods: configuring directly using the existing system and configuring using a PXE-distributed LiveCD. Using the existing system requires knowing the username and password for each server to be configured. This is insecure, and since the usernames and passwords for each server are different, the statistical work becomes extremely complex and labor-intensive, resulting in low efficiency. Thirdly, if the operating systems of the servers being configured do not have RAID configuration tools, or if the systems are inconsistent (e.g., some use Ubuntu, some CentOS, and some Windows), it is necessary to distribute configuration tools for different systems, which is very troublesome.

[0062] Theoretically, using a network PXE (Preboot Execute Environment) distribution method can solve the above three problems, and this configuration method is quite common in practice. However, it still cannot solve the problem of having to use the business network. At the same time, introducing a PXE server requires integrating a host of services such as DNS (Domain Name Server), DHCP (Dynamic Host Configuration Protocol), TFTP (Trivial File Transfer Protocol), and HTTP. Not to mention the complexity of the environment configuration, introducing DHCP service into the existing network may conflict with the DHCP in the customer's existing business network, causing network chaos, which users are resistant to. Some data-sensitive customers also have security concerns about the configuration tool directly accessing the business network. Therefore, the in-band RAID configuration solution, although more efficient and faster, has the disadvantages of insecurity, high threshold, and the need to set up additional network services, and is not suitable for use in existing network environments.

[0063] The second method for configuring RAID utilizes out-of-band networks and leverages the BMC (Baseboard Management Controller) interface. This method is simple, easy to use, and the most widely adopted, making it a common out-of-band RAID configuration approach. However, this solution has drawbacks. First, it is highly dependent on the BMC's functionality; if the BMC does not support out-of-band RAID configuration, this method is not feasible. Second, it faces device compatibility issues; different device models have different BMC support for RAID configuration, resulting in different interfaces, making device compatibility a complex matter. Third, the BMC's RAID configuration capabilities are limited; some advanced configurations, such as boot disks, partial hot spares, and global hot spares, are not supported by the BMC, which also limits the ability to configure RAID in batches. Therefore, while this out-of-band configuration method solves the business network problem, it still has significant shortcomings and needs improvement.

[0064] This application provides a method, system, device, and storage medium for configuring RAID to solve the above-mentioned technical problems.

[0065] The technical solutions proposed in the embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0066] Figure 1 This is a flowchart illustrating a method for configuring RAID as provided in an embodiment of this application. Figure 1 As shown, the method mainly includes the following steps:

[0067] Step 101: Set the NFS mount path for the server to be configured.

[0068] In this embodiment of the application, before performing batch configuration of server RAID, a network environment must first be deployed to connect the platform to the out-of-band network of the server to be configured.

[0069] The server to be configured is then scanned into the main program and permanently stored for later use.

[0070] In this embodiment of the application, after scanning the servers to be configured into the main program and storing them, the Board Extra field of the FRU of all servers to be configured is read. If data exists, the data is read and set to empty.

[0071] The collected RAID information is compressed and written to the Board Extra field of the FRU in multiple parts, with 60 characters written each time.

[0072] In this embodiment of the application, for all servers to be configured, the main program divides them into batches of 50 per executor and sets the NFS mount path of the servers to be configured to the divided executor path and address.

[0073] Step 102: Based on the mount path, guide the server to be configured to boot from the mounted liveCD.

[0074] In this embodiment, the system will handle the data collection work of the 50 distributed servers, restart the servers uniformly, set CD-ROM boot, and guide the servers to be configured to boot from the mounted liveCD.

[0075] Step 103: Collect the RAID information of the server to be configured.

[0076] In this embodiment, user configuration requirement information is collected. Then, based on the configuration requirement information, a configuration template is generated and stored in JSON encoded form; wherein, the configuration template contains an identifier ID.

[0077] Specifically, users perform graphical RAID configuration based on the configuration model, such as forming a RAID5 array with several hard drives and equipping a local hot spare disk. The main program collects the user's configuration requirements, generates a configuration template, and stores it in the database as a JSON string. The template will contain the identifier ID of the configuration model.

[0078] In this embodiment, based on the identifier ID in the configuration template, the server to be configured with the applicable identifier ID is determined, thereby completing the server selection.

[0079] Specifically, after the liveCD boots from the server to be configured, it uses built-in tools to collect RAID information and assemble it into JSON format. In a typical format: id: 9088874512305412, c: 100, u: G, s: UG.

[0080] The `id` string is a compressed number containing four sub-IDs, representing basic information such as manufacturer and model, uniquely identifying the RAID card type and manufacturer. `b` stands for "board," indicating the backplane; a RAID controller contains multiple backplanes. `d` represents the physical hard drives under the backplane, `c` represents the capacity, `u` is the capacity unit, and `s` indicates the physical disk status. This string describes the RAID information of the device under test.

[0081] Step 104: Process the RAID information to obtain a plaintext RAID configuration file and report it. Based on the plaintext RAID configuration file, obtain a configuration script image.

[0082] In this embodiment, the RAID information is first parsed to obtain the original string. Then, the original string is Base64 encoded n times to obtain an encrypted string ending with 'n', where 'n' is a random number between 1 and 9. Next, the encrypted string is decrypted n times to obtain the plaintext RAID configuration file.

[0083] For example, after compressing the data in the aforementioned process and writing it to the Board Extra field of FRU in multiple parts, with each part containing 60 characters, the data format can be agreed upon using the following method.

[0084]

[0085] Considering that the data may be too long to write at once, the total number of batches can be marked at the beginning of the string. For example, if it is written in 3 batches, this is the first batch, and the following 2-59 bits are the specific encrypted data. Since the main program will clear the entire Extra area after each read, when the liveCD finds that this position is empty, it can continue to write other batches until the last batch.

[0086] It should be noted that, since the Extra field is best limited to 60 characters due to space constraints, and because the encrypted string written to the liveCD needs to be restored on the main program, a reversible encryption algorithm was used. The specific steps are as follows:

[0087] Assume the original data is:

[0088] [{"id":9088876512305412,"b":[{"d":[{"c":"100","u":"G","s":"ON"},{"c":"300","u":"G","s":"UG"}]}]}], take a random number between 1 and 9, for example, 3, and perform Base64 encryption three times on the original string. The encrypted data is:

[0089] W3siaWQiOjkwODg4NzY1MTIzMDU0MTIsIsInMiOiJPTiJ9LHsiYyI6IjMwMCIsInUiOiJHIiwicyI6IlVHIn1dfV19XSA=.

[0090] Add the 3 to the end of the string to generate the final string.

[0091] W3siaWQiOjkwODg4NzY1MTIzMDU0MTIsIsInMiOiJPTiJ9LHsiYyI6IjMwMCIsInUiOiJHIiwicyI6IlVHIn1dfV19XSA=3.

[0092] After the executor obtains the complete encrypted string, it decrypts it three times based on the last digit's encryption count of 3, finally obtaining the plaintext RAID configuration information and reporting it to the main program.

[0093] Step 105: Mount the configuration script image to the server to be configured. After Extra is ready, copy the configuration script, grant permissions to run it, and execute the RAID configuration.

[0094] In this embodiment, the device to be tested is selected according to the configuration template. Since the configuration template contains a model identifier ID and the device also contains an identifier ID, it is possible to quickly filter out which devices are suitable for this template. After the device is selected, the main program will generate a configuration script based on the configuration information of the configuration template, and then package the configuration script into an ISO image file. The executor will then mount the ISO image file on the configuration server and write ready information in the Extra field. The liveCD client will continuously poll the Extra field. Once it finds that the data ISO is ready, it will start mounting the data ISO, copy the script, grant permissions to run it, and execute the command to configure RAID.

[0095] In this embodiment of the application, during the configuration process, all log information of the RAID configuration process is generated in real time and written to Extra. Then, the fields in the log information are monitored and reported. After the RAID configuration is completed, the liveCD writes the configuration result to Extra.

[0096] It should be noted that after the main program collects all configuration results, it summarizes and organizes them, counts the number of successes and failures, and displays them to the user. To avoid errors that could cause the program to freeze, the default startup time for the liveCD is 20 minutes. If no configuration command is received within 20 minutes, the configuration is considered to have failed.

[0097] This application provides a method for configuring RAID, which achieves precise RAID configuration within the out-of-band network by connecting a system to a server's out-of-band management network. It can distribute tasks across multiple executors based on the number of servers to be configured and collect the results obtained from task execution. It can also filter devices based on a configuration model, improving the scientific rationality of RAID configuration. This application employs a reversible encryption algorithm to encrypt and decrypt the data to be exchanged, and can also collect RAID configuration information through corresponding fields, and read configuration logs and results. Furthermore, it can obtain logs generated during the configuration process and the final configuration results in real time, preventing situations where control is lost after mounting a mirror. The configuration process is controllable and interactive, resulting in a better user experience.

[0098] The above is a method for configuring RAID provided by an embodiment of this application. Based on the same inventive concept, an embodiment of this application also provides a system for configuring RAID, such as... Figure 2 As shown, Figure 2 This application provides a system architecture diagram for configuring RAID, in which... Figure 2 The system includes:

[0099] The path setting module 201 is used to set the NFS mount path of the server to be configured.

[0100] The startup module 202 is used to guide the server to be configured to boot from the mounted liveCD based on the mount path;

[0101] RAID information acquisition module 203 is used to acquire RAID information of the server to be configured;

[0102] The decryption module 204 is used to process the RAID information, obtain and report the plaintext RAID configuration file, and obtain a configuration script image based on the plaintext RAID configuration file.

[0103] The configuration execution module 205 is used to mount the configuration script image to the server to be configured. After the extra is ready, it copies the configuration script, grants permissions to run it, and executes the RAID configuration.

[0104] In this embodiment, the RAID information acquisition module 203 specifically collects the user's configuration requirement information. Then, based on the configuration requirement information, a configuration template is generated and stored in JSON encoded form; wherein the configuration template contains an identifier ID. Specifically, the user performs graphical RAID configuration according to the configuration model, such as several hard drives forming a RAID5 array, and simultaneously equipping a local hot spare disk, etc. The main program collects the user's configuration requirements, generates a configuration template, and stores it in the database as a JSON string, with the template containing the identifier ID of the configuration model. In this embodiment, based on the identifier ID in the configuration template, the server to be configured with the applicable identifier ID is determined, thereby completing the server selection. Specifically, after the liveCD boots from the server to be configured, it uses built-in tools to collect RAID information and assembles it into JSON format. In a typical format: id: 9088874512305412, c: 100, u: G, s: UG. The `id` string is a compressed number containing four sub-IDs, representing basic information such as manufacturer and model, uniquely identifying the RAID card type and manufacturer. `b` stands for "board," indicating the backplane; a RAID controller contains multiple backplanes. `d` represents the physical hard drives under the backplane, `c` represents the capacity, `u` is the capacity unit, and `s` indicates the physical disk status. This string describes the RAID information of the device under test.

[0105] In this embodiment, the decryption module 204 first parses the RAID information to obtain the original string. Then, it performs Base64 encryption n times on the original string to obtain an encrypted string ending with n, where n is a random number between 1 and 9. Next, it decrypts the encrypted string n times to obtain the plaintext RAID configuration file.

[0106] This application provides a RAID configuration system that connects to a server's out-of-band management network, enabling precise RAID configuration within the out-of-band network. It can distribute tasks across multiple executors based on the number of servers to be configured and collect the results from each executor's task execution. It can also filter devices based on a configuration model, improving the scientific rationality of RAID configuration. This application employs a reversible encryption algorithm to encrypt and decrypt the data to be exchanged, and can also collect RAID configuration information through relevant fields, as well as read configuration logs and results. Furthermore, it can obtain logs generated during the configuration process and the final configuration results in real time, preventing situations where control is lost after mirroring is installed. The configuration process is controllable and interactive, resulting in a better user experience.

[0107] The above describes a system for configuring RAID according to an embodiment of this application. Based on the same inventive concept, this application also provides a device for configuring RAID. Figure 3 This application provides a schematic diagram of a device configured with RAID, as shown in the embodiment of the present application. Figure 3 As shown, the device mainly includes: at least one processor 301; and a memory 302 communicatively connected to at least one processor; wherein, the memory 302 stores instructions that can be executed by at least one processor 301, and the instructions are executed by at least one processor 301 to enable at least one processor 301 to complete: setting the NFS mount path of the server to be configured;

[0108] Based on the mount path, the server to be configured is guided to boot from the mounted liveCD;

[0109] Collect the RAID information of the server to be configured;

[0110] The RAID information is processed to obtain a plaintext RAID configuration file, which is then reported.

[0111] Based on the plaintext RAID configuration file, a configuration script image is obtained;

[0112] Mount the configuration script image to the server to be configured. After Extra is ready, copy the configuration script, grant permissions to run it, and execute the RAID configuration.

[0113] In addition, embodiments of this application also provide a non-volatile computer storage medium configured with RAID, storing computer-executable instructions, wherein the computer-executable instructions are configured as follows:

[0114] Set the NFS mount path for the server to be configured;

[0115] Based on the mount path, the server to be configured is guided to boot from the mounted liveCD;

[0116] Collect the RAID information of the server to be configured;

[0117] The RAID information is processed to obtain a plaintext RAID configuration file, which is then reported.

[0118] Based on the plaintext RAID configuration file, a configuration script image is obtained;

[0119] Mount the configuration script image to the server to be configured. After Extra is ready, copy the configuration script, grant permissions to run it, and execute the RAID configuration.

[0120] The solution proposed in this application allows for RAID configuration using existing out-of-band management networks without the need for a dedicated service network. This approach offers lower network costs, faster setup, simpler configuration, and greater operational security. Using this invention eliminates limitations related to whether the BMC has a RAID configuration interface, and removes concerns about complex factors such as device model, manufacturer, BMC version, and RAID card manufacturer and version. Even if the BMC does not support an out-of-band configuration interface, the out-of-band RAID configuration described in this invention remains effective, resulting in broader applicability. Furthermore, the solution provides real-time access to logs generated during the configuration process and the final configuration results, preventing situations where users are unaware of the configuration process after mounting the image and lack control over the system. The configuration process is controllable, interactive, and offers a superior user experience.

[0121] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0122] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0123] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0124] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0125] The various embodiments in this application are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0126] It should also be noted that 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. Without further limitation, 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.

[0127] The above description is merely an embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of this application should be included within the scope of the claims of this application.

Claims

1. A method of configuring a RAID, characterized by, The method includes: Deploy the network environment; Connect the platform to the out-of-band network of the server to be configured; The server to be configured is scanned into the main program and stored; Read the Board Extra field of the FRU of all servers to be configured. If data exists, read the data and set it to empty. The collected RAID information is compressed and written to the Board Extra field of the FRU in multiple parts, with 60 characters written each time. Set the NFS mount path for the server to be configured; Based on the mount path, the server to be configured is guided to boot from the mounted liveCD; Collect the RAID information of the server to be configured; The RAID information is processed to obtain a plaintext RAID configuration file, which is then reported. Parse the RAID information to obtain the original string; The original string is Base64 encoded n times to obtain an encrypted string ending with n; where n is a random number between 1 and 9. Decrypt the encrypted string n times to obtain the plaintext RAID configuration file; Based on the plaintext RAID configuration file, a configuration script image is obtained; Mount the configuration script image to the server to be configured. After Extra is ready, copy the configuration script, grant permissions to run it, and execute the RAID configuration.

2. The method of configuring a RAID of claim 1, wherein, The collection of the RAID information of the server to be configured specifically includes: Collect user configuration requirements information; Based on the configuration requirements, a configuration template is generated and stored in JSON encoded form; wherein, the configuration template contains an identifier ID.

3. A method for configuring RAID according to claim 2, characterized in that, Before obtaining the configuration script image based on the plaintext RAID configuration file, the method further includes: Based on the identifier ID in the configuration template, determine the server to be configured that is applicable to the identifier ID.

4. A method for configuring RAID according to claim 1, characterized in that, After configuring RAID, the method further includes: Generate all log information during the RAID configuration process and write it to Extra; Monitor the fields in the log information and report them; After the RAID configuration is complete, the liveCD writes the configuration results to Extra.

5. A system for configuring RAID, applied to the method for configuring RAID as described in claim 1, characterized in that, The system includes: The path setting module is used to set the NFS mount path of the server to be configured. The startup module is used to guide the server to be configured to boot from the mounted liveCD based on the mount path; A RAID information acquisition module is used to acquire the RAID information of the server to be configured. The decryption module is used to process the RAID information, obtain the plaintext RAID configuration file and report it, and obtain a configuration script image based on the plaintext RAID configuration file; The configuration execution module is used to mount the configuration script image to the server to be configured. After the extra is ready, it copies the configuration script, grants permissions to run it, and executes the RAID configuration.

6. A device for configuring RAID, applied to the method for configuring RAID as described in claim 1, characterized in that, The device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Set the NFS mount path for the server to be configured; Based on the mount path, the server to be configured is guided to boot from the mounted liveCD; Collect the RAID information of the server to be configured; The RAID information is processed to obtain a plaintext RAID configuration file, which is then reported. Based on the plaintext RAID configuration file, a configuration script image is obtained; Mount the configuration script image to the server to be configured. After Extra is ready, copy the configuration script, grant permissions to run it, and execute the RAID configuration.

7. A non-volatile computer storage medium configured for RAID, applied to the RAID configuration method of claim 1, storing computer-executable instructions, characterized in that, The computer-executable instructions are set as follows: Set the NFS mount path for the server to be configured; Based on the mount path, the server to be configured is guided to boot from the mounted liveCD; Collect the RAID information of the server to be configured; The RAID information is processed to obtain a plaintext RAID configuration file, which is then reported. Based on the plaintext RAID configuration file, a configuration script image is obtained; Mount the configuration script image to the server to be configured. After Extra is ready, copy the configuration script, grant permissions to run it, and execute the RAID configuration.