Program method, system and device applied to the management of domestic server array card

By compiling and installing domestically produced servers, as well as self-compiling and installing them, the problem of inconsistent tools across multiple architecture platforms was solved, enabling unified operation of RAID card management and improving work efficiency.

CN115857950BActive Publication Date: 2026-11-24TONGFANG COMP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211698453.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-28
Publication Date
2026-11-24
Estimated Expiration
2042-12-28

AI Technical Summary

Technical Problem

Domestic servers suffer from low efficiency in research and development and later maintenance due to the lack of standardized tools across multiple architecture platforms. In particular, RAID card management is complex and after-sales service is inefficient in multi-operating system environments.

Method used

By compiling and installing the current server architecture, the corresponding operating system is obtained, and key information is distributed to the corresponding RAID card management tool for self-compilation and installation, outputting binary files and unifying the output format to simplify operation commands, supporting RAID card management in multi-architecture and multi-system environments.

Benefits of technology

It enables unified compilation and installation of RAID card management in multi-architecture and multi-system environments, simplifying the workload in the early stages of development, improving work efficiency, and reducing dependence on R&D resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115857950B_ABST
    Figure CN115857950B_ABST
Patent Text Reader

Abstract

This invention relates to the field of RAID card management technology, specifically to a program method, system, and device for managing RAID cards in domestically produced servers. The invention compiles and installs the corresponding operating system for the current server architecture, obtains key information about the server architecture (e.g., ARM, X86, MIPS, ALPHA) based on the operating system, and then routes this information to the corresponding RAID card management tool for self-compilation and installation, outputting a binary file. , It also initiates the operation path and configuration under the current server architecture, enabling users to complete the operation instructions corresponding to the binary files in the current directory. This invention compiles and installs a unified output format for multiple architectures and systems in domestic servers, and configures array card management tools separately for both operating system and non-operating system scenarios, simplifying the workload in the early stages of development and improving work efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of RAID card management technology, and specifically to a program method, system, and device for managing domestically produced server RAID cards. Background Technology

[0002] In recent years, with the development of enterprise informatization and government e-government in China, large and medium-sized enterprises and government agencies have become increasingly reliant on information systems to carry out their business operations, leading to the rapid development of domestic servers. As customers accelerate the process of application migration and replacement, the requirements for data security and stability are becoming increasingly higher.

[0003] One of the hardware components related to data security is the RAID card, which is a core component. However, due to the diverse architectures of domestically produced servers, primarily including ARM, x86, MIPS, and ALPHA, the tools used for these platforms are inconsistent. For example, ARM architectures often use deb packages managed via Megacli, while x86 architectures mostly use rpm packages managed via Storcli. Furthermore, the availability of multiple operating system versions necessitates manual RAID card management during product development, resulting in a relatively complex environment setup. Customers frequently encounter issues such as reconfiguring RAID and installing the operating system, requiring after-sales service teams to utilize development resources for maintenance, leading to low work efficiency. Summary of the Invention

[0004] In view of this, the purpose of the present invention is to provide a program method, system and device for managing domestic server array cards, so as to solve the problems of inconsistent architectures and systems in domestic servers and low work efficiency caused by the product development and later maintenance process.

[0005] According to a first aspect of the present invention, a program method for managing domestically produced server RAID cards is provided, comprising:

[0006] Compile and install the operating system corresponding to the current server architecture to obtain the server architecture;

[0007] Based on the operating system, key information about the current server architecture is obtained, and this key information is then routed to the corresponding RAID card management tool for self-compilation and installation, outputting binary files. , It also initiates the operation path and configuration under the current server architecture, enabling users to complete the operation instructions corresponding to the binary file in the current directory; wherein, the key information includes at least: ARM, X86, MIPS, ALPHA.

[0008] Preferably, before compiling and installing the operating system corresponding to the current server architecture to obtain the operating system for the server architecture, the following steps are included:

[0009] Based on the server architecture, the preset parameters are retrieved in the background to determine whether the user and the current server architecture are within the whitelist range;

[0010] If so, then compile and install according to the current server architecture;

[0011] If not, terminate and exit the current program.

[0012] Preferably, the step of obtaining key information about the current server architecture based on the operating system and then routing the key information to the corresponding RAID card management tool for self-compilation and installation includes:

[0013] Cross-support verification is performed based on the current server kernel version and server architecture information;

[0014] If the verification passes, run the RAID card management tool;

[0015] If verification fails, relevant log information will be collected and analyzed.

[0016] Preferably, if the verification passes, the RAID card management tool is run, specifically as follows:

[0017] If the verification is successful, tools from different server architecture platforms will be centrally managed and recompiled for secondary development.

[0018] Preferably, the cross-support verification based on the current server kernel version and server architecture information specifically includes:

[0019] First, based on the identification of the current server architecture, confirm whether there is an operating system compatible with the server architecture; second, when identifying the operating system kernel version, confirm whether the operating system vendor has released a version update corresponding to the server architecture platform.

[0020] Preferably, the centralized management and secondary development and compilation of tools for different server architecture platforms specifically refers to: using qemu for the ALPAH platform, MegaCli for the ARM platform, and Storcli for the X86 platform.

[0021] Preferably, the method can be used as a separate archive file, embedded for use by third-party platforms.

[0022] According to a second aspect of the present invention, a system for managing domestically produced server RAID cards is provided, comprising:

[0023] The compilation and installation module is used to compile and install the current server architecture to obtain the operating system corresponding to the server architecture;

[0024] The startup module is used to obtain key information about the current server architecture based on the operating system, and then distribute this key information to the corresponding RAID card management tool for self-compilation and installation, outputting binary files. , It also initiates the operation path and configuration under the current server architecture, enabling users to complete the operation instructions corresponding to the binary file in the current directory; wherein, the key information includes at least: ARM, X86, MIPS, ALPHA.

[0025] According to a third aspect of the present invention, an apparatus for managing domestically produced server RAID cards is provided, including the method described above.

[0026] According to a fourth aspect of the present invention, a computer-readable storage medium is provided having an erasable and rewritable computer program stored thereon.

[0027] When the computer program is run on a computer device, the computer device performs the above-described method.

[0028] The technical solutions provided by the embodiments of the present invention may include the following beneficial effects:

[0029] This invention compiles and installs the corresponding operating system for the current server architecture. Based on the operating system, it obtains key information about the current server architecture, such as ARM, X86, MIPS, ALPHA, etc., and distributes this information to the corresponding RAID card management tool for self-compilation and installation, outputting binary files. , It also initiates the operation path and configuration under the current server architecture, enabling users to complete the operation instructions corresponding to the binary files in the current directory. This invention compiles and installs a unified output format for multiple architectures and systems in domestic servers, and configures array card management tools separately for both operating system and non-operating system scenarios, simplifying the workload in the early stages of development and improving work efficiency.

[0030] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Attached Figure Description

[0031] 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.

[0032] Figure 1 This is a flowchart illustrating a program method for managing domestically produced server array cards according to an exemplary embodiment;

[0033] Figures 2(a) and (b) are flowcharts illustrating the steps of a program method for managing domestically produced server array cards according to an embodiment;

[0034] Figure 3 This is a system diagram illustrating the management of a domestically produced server array card according to an exemplary embodiment. Detailed Implementation

[0035] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended claims.

[0036] Example 1

[0037] In one embodiment, see Figure 1 , Figure 1 This is a flowchart illustrating a program method for managing domestically produced server RAID cards according to an exemplary embodiment, such as... Figure 1 As shown, the method includes:

[0038] S01. Compile and install the current server architecture to obtain the operating system corresponding to the server architecture;

[0039] S02. Obtain key information about the current server architecture based on the operating system, and distribute the key information to the corresponding RAID card management tool for self-compilation and installation, outputting binary files. , It also initiates the operation path and configuration under the current server architecture, enabling users to complete the operation instructions corresponding to the binary file in the current directory; wherein, the key information includes at least: ARM, X86, MIPS, ALPHA.

[0040] It should be noted that the technical solution provided in this embodiment is applicable to situations where domestically produced servers have multiple operating systems, multiple architecture platforms, and inconsistent tools.

[0041] It should be noted that the technical solution provided in this embodiment obtains the corresponding operating system by compiling and installing the current server architecture. Based on the operating system, key information about the current server architecture, such as ARM, X86, MIPS, ALPHA, etc., is obtained (the purpose being to prepare for the next step of routing instructions. For example: if [$hw == "x86_64"]; then...).

[0042] echo "Your current hardware platform is: $hw"

[0043] sleep 5

[0044] The `sw_check` function (the operating system entry point) then routes the data to the corresponding RAID controller management tool for self-compilation and installation, outputting binary files. , It also initiates the operation path and configuration under the current server architecture, enabling users to complete the operation instructions corresponding to the binary files in the current directory. This invention compiles and installs a unified output format for multiple architectures and systems in domestic servers, and configures array card management tools separately for both operating system and non-operating system scenarios, simplifying the workload in the early stages of development and improving work efficiency.

[0045] It should be noted that, please refer to Figure 2, which is a diagram of the working environment of a program method for managing domestic server array cards according to an embodiment. The compilation and installation of the current server architecture refers to the target object written according to the software tool of this embodiment, specifically "XC_Server_RaidConfig_Utility_AllinOne_V0.5_20220723" as shown in Figure 2.

[0046] It should be noted that the technical solution provided in this embodiment checks whether the current domestic server architecture is a type supported by the current domestic server architecture, such as: X86, ARM, ALPHA, MIPS, etc. If supported, it will automatically redirect to the corresponding array card management tool for self-compilation and installation, and determine whether the operating system version is the currently adapted and compatible version. The fundamental principle is to centrally manage and perform secondary development and compilation of tools for different architecture platforms. For example, qemu is used for the ALPHA platform, MegaCli is often used for the ARM platform, and Storcli is often used for the X86 platform.

[0047] In practical applications, before compiling and installing the operating system corresponding to the current server architecture, the following steps are included:

[0048] Based on the server architecture, the preset parameters are retrieved in the background to determine whether the user and the current server architecture are within the whitelist range;

[0049] If so, then compile and install according to the current server architecture;

[0050] If not, terminate and exit the current program.

[0051] It should be noted that the preset parameters refer to a series of instructions that need to be executed during the specific software implementation. These instructions are ordered to determine the current server hardware architecture type. For example, by executing a query command to find the current architecture under the operating system, the system returns values ​​such as X86 and ARM based on its key information, preparing for the next step of traffic routing. For example, "hw=`lscpu|grep -iarchitecture".

[0052] It should be noted that the purpose of this embodiment is mainly to protect intellectual property rights for information retrieval. If the software background detects that the domestic server architecture currently being used is no longer in the whitelist or authorized scope, it will terminate and exit the current program.

[0053] It should be noted that key information about the current server architecture is obtained based on the operating system. Specifically, this means obtaining key information about the current server architecture based on the associated operating system. The associated operating system mainly refers to those that have already undergone adaptation and testing, such as the mainstream domestic operating systems like UnionTech UOS V20 and Kylin V10. Given the current situation, if vendors supporting mainstream domestic operating systems encounter incompatibility issues during later use, separate adaptation will be required. Therefore, the mechanism considered is also a whitelist management of operating systems. Those that have already undergone adaptation can be accessed via background commands, for example:

[0054] "if["$sw"=="20UOS"]; then

[0055] The echo message reads: "Your current operating system information is: UnionTech UOS V20".

[0056] sleep 5

[0057] elif["$sw"=="kylin V10"]; then

[0058] The program will use the echo message "Your current operating system information is: Galaxy Kylin V10..." to determine compatibility and proceed to the next step. If no compatibility is found, a warning will be given and the program will terminate.

[0059] In practical applications, the step of obtaining key information about the current server architecture based on the operating system and then routing that key information to the corresponding RAID card management tool for self-compilation and installation includes:

[0060] Cross-support verification is performed based on the current server kernel version and server architecture information;

[0061] If the verification passes, run the RAID card management tool;

[0062] If verification fails, relevant log information will be collected and analyzed.

[0063] In practical applications, if the verification passes, the array card management tool is run, specifically as follows:

[0064] If the verification is successful, tools from different server architecture platforms will be centrally managed and recompiled for secondary development.

[0065] The cross-support verification based on the current server kernel version and server architecture information specifically includes:

[0066] First, based on the identification of the current server architecture, confirm whether there is an operating system compatible with the server architecture; second, when identifying the operating system kernel version, confirm whether the operating system vendor has released a version update corresponding to the server architecture platform.

[0067] In practical applications, the centralized management and secondary development and compilation of tools for different server architecture platforms are as follows: qemu for ALPAH platform, MegaCli for ARM platform, and Storcli for X86 platform.

[0068] It should be noted that the RAID card management tool performs self-compilation and installation, and the output binary file is, based on practical experience, automatically converted into a binary file (computer executable instruction) through software background commands. For example, please refer to Figure 2 to run the software. In this example, "XC-Server_RAIDConfig_Utility_AllInOne" indicates that the architecture platform is ARM-VI.

[0069] It should be noted that cross-support verification refers to initially confirming whether a compatible operating system is available by identifying the architecture of domestically produced servers; when proceeding to the second step of operating system kernel version identification, it further confirms whether the operating system vendor has released a corresponding version for this architecture platform. After verification, the next step is to proceed to the background self-compilation and installation program of the RAID tool.

[0070] It should be noted that the main purpose of collecting and analyzing relevant log information is to provide reports and feedback to users later, and to enable software engineers to locate and analyze problems and maintain versions. For example, during the tool installation process, an install.log file is automatically generated and later used to analyze the logs of problems that occur during the installation process.

[0071] It should be noted that the method described in this implementation can be archived separately and embedded for use by third-party platforms. If it is not needed, it can be removed in a timely manner without affecting the normal operation of the original business.

[0072] Example 2

[0073] In one embodiment, see Figure 3 , Figure 3 It is based on a system 300 for managing domestically produced server RAID cards, including:

[0074] The compilation and installation module 301 is used to compile and install the current server architecture to obtain the operating system corresponding to the server architecture;

[0075] The startup module 302 is used to obtain key information about the current server architecture based on the operating system, and to distribute the key information to the corresponding RAID card management tool for self-compilation and installation, outputting binary files. , It also initiates the operation path and configuration under the current server architecture, enabling users to complete the operation instructions corresponding to the binary file in the current directory; wherein, the key information includes at least: ARM, X86, MIPS, ALPHA.

[0076] It should be noted that the technical solution provided in this embodiment is applicable to situations where domestic servers have multiple operating systems, multiple architecture platforms, and inconsistent tools.

[0077] It is understood that the technical solution provided in this embodiment uses the compilation and installation module 301 to compile and install the current server architecture to obtain the corresponding operating system, and the startup module 302 to obtain key information about the current server architecture, such as ARM, X86, MIPS, ALPHA, etc., based on the operating system, and then distributes the information to the corresponding RAID card management tool for self-compilation and installation, outputting binary files. , It also initiates the operation path and configuration under the current server architecture, enabling users to complete the operation instructions corresponding to the binary files in the current directory. This invention compiles and installs a unified output format for multiple architectures and systems in domestic servers, and configures array card management tools separately for both operating system and non-operating system scenarios, simplifying the workload in the early stages of development and improving work efficiency.

[0078] Example 3

[0079] In one embodiment, an apparatus for managing domestically produced server RAID cards is provided, comprising the method described above.

[0080] It should be noted that the technical solution provided in this embodiment is applicable to situations where domestic servers have multiple operating systems, multiple architecture platforms, and inconsistent tools.

[0081] It should be noted that the implementation methods and beneficial effects of each module in this embodiment can be found in the description of the relevant steps in Embodiment 1, and will not be repeated in this embodiment.

[0082] Example 4

[0083] A computer-readable storage medium is shown according to an exemplary embodiment, on which an erasable and rewritable computer program is stored;

[0084] When the computer program is run on a computer device, the computer device performs the above-described heterogeneous data aggregation query device method.

[0085] It should be noted that the implementation methods and beneficial effects of each module in this embodiment can be found in the description of the relevant steps in Embodiment 1, and will not be repeated in this embodiment.

[0086] The computer-readable storage media disclosed in this embodiment include, but are not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatuses, or devices, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0087] It is understood that the same or similar parts in the above embodiments can be referred to each other, and the contents not described in detail in some embodiments can be referred to the same or similar contents in other embodiments.

[0088] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of the invention pertain.

[0089] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0090] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.

[0091] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0092] The storage media mentioned above can be read-only memory, disk, or optical disk, etc.

[0093] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0094] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.

Claims

1. A program method for managing domestically produced server RAID cards, characterized in that, include: Based on the server architecture, the system performs background information retrieval based on preset parameters to determine whether the user and the current server architecture are within the whitelist range. If so, then compile and install the current server architecture to obtain the operating system corresponding to the server architecture; If not, terminate and exit the current program; The system obtains key information about the current server architecture based on the operating system, and distributes this key information to the corresponding RAID card management tool for self-compilation and installation, outputting binary files and initiating the operation path and configuration under the current server architecture, so that the user can complete the operation instructions corresponding to the binary files in the current directory; wherein, the key information includes at least: ARM, X86, MIPS, ALPHA; Cross-support verification is performed based on the current server kernel version and server architecture information; if the verification passes, the RAID card management tool is run; if the verification fails, relevant log information is collected and analyzed. The cross-support verification based on the current server kernel version and server architecture information specifically involves: first, confirming whether there is an operating system compatible with the current server architecture based on the identification of the current server architecture; second, when identifying the operating system kernel version, confirming whether the operating system vendor has released a version update corresponding to the server architecture platform.

2. The method according to claim 1, characterized in that, If the verification passes, the RAID card management tool will be run, specifically as follows: If the verification is successful, tools from different server architecture platforms will be centrally managed and recompiled for secondary development.

3. The method according to claim 2, characterized in that, The centralized management and secondary development and compilation of tools for different server architecture platforms are as follows: qemu for ALPAH platform, MegaCli for ARM platform, and Storcli for X86 platform.

4. The method according to any one of claims 1-3, characterized in that, The method can be used as a separate archive file and embedded for third-party platforms to call.

5. A system for managing domestically produced server RAID cards, characterized in that, include: The compiled installation module is used to perform background information retrieval based on the server architecture and preset parameters to determine whether the user and the current server architecture are within the whitelist range. If yes, then compile and install the operating system corresponding to the current server architecture to obtain the operating system corresponding to the server architecture; if no, then terminate and exit the current program. The startup module is used to obtain key information about the current server architecture based on the operating system, and then distribute this key information to the corresponding RAID card management tool for self-compilation and installation, outputting a binary file and starting the operation path and configuration under the current server architecture, so that the user can complete the operation instructions corresponding to the binary file in the current directory. The key information includes at least: ARM, X86, MIPS, and ALPHA. Furthermore, it performs cross-support verification based on the current server kernel version and server architecture information. If the verification passes, the RAID card management tool is run; if the verification fails, relevant log information is collected and analyzed. Specifically, the cross-support verification based on the current server kernel version and server architecture information involves: first, confirming whether there is an operating system compatible with the server architecture based on the identification of the current server architecture; second, when identifying the operating system kernel version, confirming whether the operating system vendor has released a version update corresponding to the server architecture platform.

6. A device for managing domestically produced server RAID cards, characterized in that, The method comprising any one of claims 1-4 above.

7. A computer-readable storage medium, characterized in that, It contains erasable and rewritable computer programs; When the computer program is run on a computer device, it causes the computer device to perform the method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Method for realizing FW upgrading of LSI RAID card under Linux system without restarting system

    CN106201583A

  • System installation method, server, client and storage medium

    CN112148375A