CN116339642A - Onboard RAID creation method, device, computer equipment and storage medium - Google Patents

Onboard RAID creation method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN116339642A
CN116339642A CN202310416070.4A CN202310416070A CN116339642A CN 116339642 A CN116339642 A CN 116339642A CN 202310416070 A CN202310416070 A CN 202310416070A CN 116339642 A CN116339642 A CN 116339642A
Authority
CN
China
Prior art keywords
target
raid
onboard
onboard raid
tool
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310416070.4A
Other languages
Chinese (zh)
Inventor
徐立华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202310416070.4A priority Critical patent/CN116339642A/en
Publication of CN116339642A publication Critical patent/CN116339642A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0683Plurality of storage devices
    • G06F3/0689Disk arrays, e.g. RAID, JBOD
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明涉及计算机技术领域,具体涉及板载RAID的创建方法、装置、计算机设备及存储介质。该方法包括:获取计算机设备中各个硬盘对应的属性信息;根据各个硬盘对应的属性信息,从各个硬盘中确定用于创建板载RAID的至少两个目标硬盘;利用目标工具,将至少两个目标硬盘创建为板载RAID。实现了在BIOS界面不能实现RAID的情况下,创建了板载RAID。一方面解决了难题,完成项目开发,另一方面又可以优化工厂作业方式,减少人力投入,完成自动化作业过程,提升工厂生产效率。

Figure 202310416070

The invention relates to the technical field of computers, in particular to a method, a device, a computer device and a storage medium for creating an onboard RAID. The method includes: obtaining attribute information corresponding to each hard disk in the computer device; determining at least two target hard disks for creating onboard RAID from each hard disk according to the attribute information corresponding to each hard disk; Hard drives are created as onboard RAID. Implemented the creation of onboard RAID when the BIOS interface cannot implement RAID. On the one hand, it solves the problem and completes the project development. On the other hand, it can optimize the factory operation mode, reduce manpower input, complete the automatic operation process, and improve the factory production efficiency.

Figure 202310416070

Description

板载RAID的创建方法、装置、计算机设备及存储介质Onboard RAID creation method, device, computer equipment and storage medium

技术领域technical field

本发明涉及计算机技术领域,具体涉及板载RAID的创建方法、装置、计算机设备及存储介质。The invention relates to the technical field of computers, and in particular to a method, a device, a computer device and a storage medium for creating an onboard RAID.

背景技术Background technique

面对各种可能的灾难,企业需要方便、灵活地同步基于异构环境下驻留在不同数据库中的数据,因此需要建设一个对各种情况都可以抵御或者化解的本地和异地的容灾系统。在传统的单节点服务器的音视频数据存储的应用环境下,通常需要依赖专业的RAID(Redundant Array of Independent Disk,独立冗余磁盘阵列)硬件资源来提供多等级的灾备能力,比如采用RAID5或RAID6,但是传统的硬RAID方案需要牺牲硬件资源提供高可用的灾备能力,难以同时满足降低硬件资源成本和提高灾备能力的需求。In the face of various possible disasters, enterprises need to conveniently and flexibly synchronize data residing in different databases based on heterogeneous environments, so it is necessary to build a local and remote disaster recovery system that can resist or resolve various situations . In the application environment of traditional single-node server audio and video data storage, it usually needs to rely on professional RAID (Redundant Array of Independent Disk, Independent Redundant Disk Array) hardware resources to provide multi-level disaster recovery capabilities, such as using RAID5 or RAID6, but the traditional hard RAID solution needs to sacrifice hardware resources to provide high-availability disaster recovery capabilities, and it is difficult to meet the needs of reducing hardware resource costs and improving disaster recovery capabilities at the same time.

因此,板载RAID(Redundant Array of Inexpensive Disks,廉价磁盘冗余阵列)应运而生。板载RAID是一种由多块硬盘(由磁盘拼装而成)构成的冗余阵列。现有技术中,板载RAID的实现一般在BIOS界面手动操作完成,而一些服务器的BIOS系统无此功能暂不支持,且BIOS系统厂商对于开发相应功能也暂未排入计划,导致很多服务器不能实现板载RAID。Therefore, onboard RAID (Redundant Array of Inexpensive Disks, Redundant Array of Inexpensive Disks) came into being. Onboard RAID is a redundant array composed of multiple hard disks (assembled from disks). In the prior art, the implementation of onboard RAID is generally completed manually in the BIOS interface, but some server BIOS systems do not support this function for the time being, and the BIOS system manufacturers have not yet entered into the plan for the development of corresponding functions, resulting in many servers not being able to Implement onboard RAID.

因此,在BIOS系统不能实现RAID的情况下,如何创建板载RAID成为了亟待解决的问题。Therefore, in the case that the BIOS system cannot realize the RAID, how to create the onboard RAID becomes an urgent problem to be solved.

发明内容Contents of the invention

有鉴于此,本发明提供了一种板载RAID的创建方法、装置、计算机设备及存储介质,以解决在BIOS界面不能实现RAID的情况下,如何创建板载RAID的问题。In view of this, the present invention provides an onboard RAID creation method, device, computer equipment and storage medium to solve the problem of how to create an onboard RAID when the RAID cannot be implemented on the BIOS interface.

第一方面,本发明提供了一种板载RAID的创建方法,该方法包括:In a first aspect, the present invention provides a method for creating an onboard RAID, the method comprising:

获取计算机设备中各个硬盘对应的属性信息;Obtain attribute information corresponding to each hard disk in the computer device;

根据各个硬盘对应的属性信息,从各个硬盘中确定用于创建板载RAID的至少两个目标硬盘;According to the attribute information corresponding to each hard disk, at least two target hard disks for creating onboard RAID are determined from each hard disk;

利用目标工具,将至少两个目标硬盘创建为板载RAID。Using the target tool, create at least two target hard drives as an onboard RAID.

本申请实施例提供的板载RAID的创建方法,获取计算机设备中各个硬盘对应的属性信息;根据各个硬盘对应的属性信息,从各个硬盘中确定用于创建板载RAID的至少两个目标硬盘,保证了从各个硬盘中确定用于创建板载RAID的至少两个目标硬盘的准确性。然后,利用目标工具,将至少两个目标硬盘创建为板载RAID,从而实现了在BIOS界面不能实现RAID的情况下,创建了板载RAID。一方面解决了难题,完成项目开发,另一方面又可以优化工厂作业方式,减少人力投入,完成自动化作业过程,提升工厂生产效率。The creation method of onboard RAID provided by the embodiment of the present application obtains the attribute information corresponding to each hard disk in the computer device; according to the attribute information corresponding to each hard disk, at least two target hard disks for creating the onboard RAID are determined from each hard disk, The accuracy of determining at least two target hard disks for creating the onboard RAID from each hard disk is guaranteed. Then, use the target tool to create at least two target hard disks as the onboard RAID, thereby realizing the creation of the onboard RAID when the BIOS interface cannot implement the RAID. On the one hand, it solves the problem and completes the project development. On the other hand, it can optimize the factory operation mode, reduce manpower input, complete the automatic operation process, and improve the factory production efficiency.

在一种可选的实施方式中,利用目标工具,将至少两个目标硬盘创建为板载RAID之前,方法还包括:In an optional implementation manner, before using the target tool to create at least two target hard disks as onboard RAID, the method further includes:

获取计算机设备对应的BIOS系统的sSATA接口的当前模式;Obtain the current mode of the sSATA interface of the BIOS system corresponding to the computer device;

将sSATA接口的当前模式修改为目标模式。Change the current mode of the sSATA interface to the target mode.

本申请实施例提供的板载RAID的创建方法,获取计算机设备对应的BIOS系统的sSATA接口的当前模式,然后,将sSATA接口的当前模式修改为目标模式,从而保证了计算机设备可以成功创建板载RAID,在创建板载RAID的过程中不会报错。The method for creating onboard RAID provided by the embodiment of the present application obtains the current mode of the sSATA interface of the BIOS system corresponding to the computer device, and then modifies the current mode of the sSATA interface to the target mode, thereby ensuring that the computer device can successfully create the onboard RAID. RAID, no error will be reported during the process of creating onboard RAID.

在一种可选的实施方式中,sSATA接口的当前模式为AHCI模式,目标模式为RAID模式,将sSATA接口的当前模式修改为目标模式,包括:In an optional embodiment, the current mode of the sSATA interface is AHCI mode, and the target mode is RAID mode, and the current mode of the sSATA interface is modified to the target mode, including:

在OS系统下,利用SCELNX_64工具将BIOS系统对应的Setup导出到文件;Under the OS system, use the SCELNX_64 tool to export the Setup corresponding to the BIOS system to a file;

将sSATA接口的当前模式从AHCI模式修改成RAID模式;Change the current mode of the sSATA interface from AHCI mode to RAID mode;

利用SCELNX_64工具将BIOS系统对应的修改后的Setup写入BIOS的配置文件。Use the SCELNX_64 tool to write the modified Setup corresponding to the BIOS system into the BIOS configuration file.

本申请实施例提供的板载RAID的创建方法,在OS系统下,利用SCELNX_64工具将BIOS系统对应的Setup导出到文件,从而便于对sSATA接口的当前模式的修改。然后,将sSATA接口的当前模式从AHCI模式修改成RAID模式,利用SCELNX_64工具将BIOS系统对应的修改后的Setup写入BIOS的配置文件。从而保证了计算机设备可以成功创建板载RAID,在创建板载RAID的过程中不会报错。The onboard RAID creation method provided by the embodiment of the present application uses the SCELNX_64 tool to export the Setup corresponding to the BIOS system to a file under the OS system, so as to facilitate modification of the current mode of the sSATA interface. Then, modify the current mode of the sSATA interface from AHCI mode to RAID mode, and use the SCELNX_64 tool to write the modified Setup corresponding to the BIOS system into the BIOS configuration file. Therefore, it is ensured that the computer equipment can successfully create the onboard RAID, and no error will be reported during the process of creating the onboard RAID.

在一种可选的实施方式中,目标工具为mdadm工具,利用目标工具,将至少两个目标硬盘创建为板载RAID,包括:In an optional implementation manner, the target tool is the mdadm tool, using the target tool to create at least two target hard disks as onboard RAID, including:

利用mdadm工具创建一个目标容器;Create a target container using the mdadm tool;

将至少两个目标硬盘放入目标容器;Put at least two target hard drives into the target container;

将目标容器中的至少两个目标硬盘转化为板载RAID。Convert at least two target hard drives in the target container to onboard RAID.

本申请实施例提供的板载RAID的创建方法,利用mdadm工具创建一个目标容器,保证了创建的目标容器的准确性。将至少两个目标硬盘放入目标容器,将目标容器中的至少两个目标硬盘转化为板载RAID。从而实现了在BIOS界面不能实现RAID的情况下,创建了板载RAID。一方面解决了难题,完成项目开发,另一方面又可以优化工厂作业方式,减少人力投入,完成自动化作业过程,提升工厂生产效率。The onboard RAID creation method provided in the embodiment of the present application uses the mdadm tool to create a target container, which ensures the accuracy of the created target container. Put at least two target hard drives into the target container, and convert at least two target hard drives in the target container to onboard RAID. In this way, the onboard RAID can be created when the BIOS interface cannot implement RAID. On the one hand, it solves the problem and completes the project development. On the other hand, it can optimize the factory operation mode, reduce manpower input, complete the automatic operation process, and improve the factory production efficiency.

在一种可选的实施方式中,获取计算机设备中各个硬盘对应的属性信息,包括:In an optional implementation manner, obtaining attribute information corresponding to each hard disk in the computer device includes:

获取计算机设备的硬件拓扑关系;Obtain the hardware topology relationship of the computer equipment;

在OS系统下,根据硬件拓扑关系,利用udevadm工具读取各个硬盘对应的属性信息。Under the OS system, according to the hardware topology, use the udevadm tool to read the attribute information corresponding to each hard disk.

本申请实施例提供的板载RAID的创建方法,获取计算机设备的硬件拓扑关系,保证了获取到的计算机设备的硬件拓扑关系的准确性。在OS系统下,根据硬件拓扑关系,利用udevadm工具读取各个硬盘对应的属性信息,保证了读取到的各个硬盘对应的属性信息的准确性。The onboard RAID creation method provided by the embodiment of the present application acquires the hardware topology relationship of the computer equipment, and ensures the accuracy of the acquired hardware topology relationship of the computer equipment. Under the OS system, according to the hardware topology, use the udevadm tool to read the attribute information corresponding to each hard disk, which ensures the accuracy of the read attribute information corresponding to each hard disk.

在一种可选的实施方式中,上述板载RAID的创建方法还包括:In an optional implementation manner, the method for creating the above-mentioned onboard RAID also includes:

对板载RAID的创建过程进行实时监控,并实时显示板载RAID的创建进度;Real-time monitoring of the creation process of the onboard RAID, and real-time display of the creation progress of the onboard RAID;

当板载RAID创建过程中出现故障时,输出故障原因。When a fault occurs during onboard RAID creation, the cause of the fault is output.

本申请实施例提供的板载RAID的创建方法,对板载RAID的创建过程进行实时监控,并实时显示板载RAID的创建进度,实现了对板载RAID的创建过程的监控,且保证了用户可以实时获取到板载RAID的创建进度。此外,当板载RAID创建过程中出现故障时,输出故障原因,保证了用户可以获取到故障原因,进而使得用户可以根据故障原因,对板载RAID创建过程进行修正。The creation method of onboard RAID provided by the embodiment of the present application monitors the creation process of onboard RAID in real time, and displays the creation progress of onboard RAID in real time, realizes the monitoring of the creation process of onboard RAID, and ensures the user The creation progress of the onboard RAID can be obtained in real time. In addition, when a failure occurs during the creation of the onboard RAID, the cause of the failure is output to ensure that the user can obtain the cause of the failure, so that the user can correct the creation process of the onboard RAID according to the cause of the failure.

第二方面,本发明提供了一种板载RAID的创建装置,装置包括:In a second aspect, the present invention provides a device for creating an onboard RAID, the device comprising:

第一获取模块,用于获取计算机设备中各个硬盘对应的属性信息;The first obtaining module is used to obtain attribute information corresponding to each hard disk in the computer device;

确定模块,用于根据各个硬盘对应的属性信息,从各个硬盘中确定用于创建板载RAID的至少两个目标硬盘;A determining module, configured to determine at least two target hard disks for creating onboard RAID from each hard disk according to attribute information corresponding to each hard disk;

创建模块,用于利用目标工具,将至少两个目标硬盘创建为板载RAID。Create a module for creating at least two target hard disks as an onboard RAID using the target tool.

本申请实施例提供的板载RAID的创建装置,获取计算机设备中各个硬盘对应的属性信息;根据各个硬盘对应的属性信息,从各个硬盘中确定用于创建板载RAID的至少两个目标硬盘,保证了从各个硬盘中确定用于创建板载RAID的至少两个目标硬盘的准确性。然后,利用目标工具,将至少两个目标硬盘创建为板载RAID,从而实现了在BIOS界面不能实现RAID的情况下,创建了板载RAID。一方面解决了难题,完成项目开发,另一方面又可以优化工厂作业方式,减少人力投入,完成自动化作业过程,提升工厂生产效率。The onboard RAID creation device provided in the embodiment of the present application obtains the attribute information corresponding to each hard disk in the computer device; according to the attribute information corresponding to each hard disk, at least two target hard disks for creating the onboard RAID are determined from each hard disk, The accuracy of determining at least two target hard disks for creating the onboard RAID from each hard disk is guaranteed. Then, use the target tool to create at least two target hard disks as the onboard RAID, thereby realizing the creation of the onboard RAID when the BIOS interface cannot implement the RAID. On the one hand, it solves the problem and completes the project development. On the other hand, it can optimize the factory operation mode, reduce manpower input, complete the automatic operation process, and improve the factory production efficiency.

在一种可选的实施方式中,上述板载RAID的创建装置,还包括:In an optional implementation manner, the above-mentioned onboard RAID creation device also includes:

第二获取模块,用于获取计算机设备对应的BIOS系统的sSATA接口的当前模式;The second obtaining module is used to obtain the current mode of the sSATA interface of the BIOS system corresponding to the computer device;

修改模块,用于将sSATA接口的当前模式修改为目标模式。The modification module is used to modify the current mode of the sSATA interface to the target mode.

本申请实施例提供的板载RAID的创建装置,获取计算机设备对应的BIOS系统的sSATA接口的当前模式,然后,将sSATA接口的当前模式修改为目标模式,从而保证了计算机设备可以成功创建板载RAID,在创建板载RAID的过程中不会报错。The onboard RAID creation device provided by the embodiment of the present application obtains the current mode of the sSATA interface of the BIOS system corresponding to the computer equipment, and then modifies the current mode of the sSATA interface to the target mode, thereby ensuring that the computer equipment can successfully create the onboard RAID. RAID, no error will be reported during the process of creating onboard RAID.

第三方面,本发明提供了一种计算机设备,包括:存储器和处理器,存储器和处理器之间互相通信连接,存储器中存储有计算机指令,处理器通过执行计算机指令,从而执行上述第一方面或其对应的任一实施方式的板载RAID的创建方法。In a third aspect, the present invention provides a computer device, including: a memory and a processor, the memory and the processor are connected to each other, computer instructions are stored in the memory, and the processor performs the first aspect by executing the computer instructions A method for creating an onboard RAID in any implementation manner corresponding to it.

第四方面,本发明提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机指令,计算机指令用于使计算机执行上述第一方面或其对应的任一实施方式的板载RAID的创建方法。In a fourth aspect, the present invention provides a computer-readable storage medium, where computer instructions are stored on the computer-readable storage medium, and the computer instructions are used to make the computer execute the on-board How to create RAID.

附图说明Description of drawings

为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the specific implementation of the present invention or the technical solutions in the prior art, the following will briefly introduce the accompanying drawings that need to be used in the specific implementation or description of the prior art. Obviously, the accompanying drawings in the following description The drawings show some implementations of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any creative effort.

图1是根据本发明实施例的板载RAID的创建方法的流程示意图;Fig. 1 is a schematic flow chart of a method for creating an onboard RAID according to an embodiment of the present invention;

图2是根据本发明实施例的板载RAID的创建方法中的计算机设备的硬件的示意图;Fig. 2 is the schematic diagram of the hardware of the computer device in the creation method of onboard RAID according to the embodiment of the present invention;

图3是根据本发明实施例的另一板载RAID的创建方法的流程示意图;3 is a schematic flow chart of another onboard RAID creation method according to an embodiment of the present invention;

图4是根据本发明实施例的又一板载RAID的创建方法的流程示意图;4 is a schematic flow chart of another onboard RAID creation method according to an embodiment of the present invention;

图5是根据本发明实施例的板载RAID的创建装置的结构框图;FIG. 5 is a structural block diagram of an onboard RAID creation device according to an embodiment of the present invention;

图6是根据本发明实施例的另一板载RAID的创建装置的结构框图;6 is a structural block diagram of another onboard RAID creation device according to an embodiment of the present invention;

图7是根据本发明实施例的再一板载RAID的创建装置的结构框图;7 is a structural block diagram of another onboard RAID creation device according to an embodiment of the present invention;

图8是本发明实施例的计算机设备的硬件结构示意图。FIG. 8 is a schematic diagram of a hardware structure of a computer device according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of the present invention.

目前各行各业对于服务器的需求大增,国产信创服务器行业也随之水涨船高。当前有某信创服务器对于系统盘RAID不是通过外插RAID阵列卡来完成。因此,需要通过系统软件把连接到主板PCH的两块硬盘来做RAID,即需要创建板载RAID。At present, the demand for servers in all walks of life has increased greatly, and the domestic Xinchuang server industry has also risen accordingly. At present, there is a Xinchuang server that does not complete the RAID of the system disk by plugging in the RAID array card. Therefore, it is necessary to use the system software to configure the two hard disks connected to the main board PCH as RAID, that is, to create an onboard RAID.

然而,现有技术中,板载RAID的实现一般在BIOS界面手动操作完成,而一些服务器的BIOS系统无此功能暂不支持,且BIOS系统厂商对于开发相应功能也暂未排入计划,导致很多服务器不能实现板载RAID。However, in the prior art, the implementation of onboard RAID is generally completed manually in the BIOS interface, and the BIOS system of some servers does not support this function for the time being, and the BIOS system manufacturer has not yet entered into the plan for the development of the corresponding function, resulting in many The server cannot implement onboard RAID.

因此,本申请实施例提供了一种板载RAID的创建方法,以解决在BIOS界面不能实现RAID的情况下,如何创建板载RAID的问题。Therefore, the embodiment of the present application provides a method for creating an onboard RAID, so as to solve the problem of how to create an onboard RAID when the RAID cannot be implemented on the BIOS interface.

根据本发明实施例,提供了一种板载RAID的创建方法实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to an embodiment of the present invention, an embodiment of a method for creating an onboard RAID is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and , although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.

在本实施例中提供了一种板载RAID的创建方法,其执行主体可以是板载RAID的创建的装置,该板载RAID的创建的装置可以通过软件、硬件或者软硬件结合的方式实现成为计算机设备的部分或者全部,其中,可以是服务器或者终端,其中,本申请实施例中的服务器可以为一台服务器,也可以为由多台服务器组成的服务器集群,本申请实施例中的终端可以是智能手机、个人电脑、平板电脑、可穿戴设备以及智能机器人等其他智能硬件设备。下述方法实施例中,均以执行主体是计算机设备为例来进行说明。In this embodiment, a method for creating an onboard RAID is provided, and its execution body may be a device for creating an onboard RAID. The device for creating an onboard RAID can be realized by software, hardware, or a combination of software and hardware. Part or all of the computer equipment, which may be a server or a terminal, wherein the server in the embodiment of the present application may be a server, or a server cluster composed of multiple servers, and the terminal in the embodiment of the present application may be Smartphones, personal computers, tablet computers, wearable devices, and other intelligent hardware devices such as intelligent robots. In the following method embodiments, the execution subject is a computer device as an example for illustration.

在本实施例中提供了一种板载RAID的创建方法,可用于上述的计算机设备,如服务器、电脑等,图1是本发明实施例提供的板载RAID的创建方法的流程图,如图1所示,该流程包括如下步骤:In this embodiment, a method for creating an onboard RAID is provided, which can be used for the above-mentioned computer equipment, such as a server, a computer, etc. Fig. 1 is a flow chart of the method for creating an onboard RAID provided by the embodiment of the present invention, as shown in 1, the process includes the following steps:

步骤S101,获取计算机设备中各个硬盘对应的属性信息。Step S101, acquiring attribute information corresponding to each hard disk in the computer device.

具体地,计算机设备可以接收用户输入的计算机设备中各个硬盘对应的属性信息;计算机设备也可以接收其他设备发送的计算机设备中各个硬盘对应的属性信息;计算机设备还可以对计算机设备中的各个硬盘进行识别,确定计算机设备中各个硬盘对应的属性信息。Specifically, the computer device can receive attribute information corresponding to each hard disk in the computer device input by the user; the computer device can also receive attribute information corresponding to each hard disk in the computer device sent by other devices; Identify and determine the attribute information corresponding to each hard disk in the computer device.

本申请实施例对计算机设备获取计算机设备中各个硬盘对应的属性信息的方式不做具体限定。The embodiment of the present application does not specifically limit the manner in which the computer device acquires attribute information corresponding to each hard disk in the computer device.

其中,需要说明的是,如图2所示,在本申请实施例提供的计算机设备中,两块M.2系统硬盘连接到后置背板,后置背板通过SAS-SATA线连接主板的PCH上。Among them, it should be noted that, as shown in Figure 2, in the computer equipment provided by the embodiment of the present application, two M. on the PCH.

关于该步骤将在下文进行详细介绍。This step will be described in detail below.

步骤S102,根据各个硬盘对应的属性信息,从各个硬盘中确定用于创建板载RAID的至少两个目标硬盘。Step S102, according to attribute information corresponding to each hard disk, determine at least two target hard disks for creating onboard RAID from each hard disk.

具体地,计算机设备在获取到各个硬盘对应的属性信息之后,计算机设备可以根据各个硬盘对应的属性信息,从各个硬盘中确定用于创建板载RAID的至少两个目标硬盘。Specifically, after the computer device acquires the attribute information corresponding to each hard disk, the computer device may determine at least two target hard disks for creating the onboard RAID from each hard disk according to the attribute information corresponding to each hard disk.

示例性的,计算机设备可以根据各个硬盘对应的属性信息,从各个硬盘中确定属性信息为ata1和ata2的两个目标硬盘。Exemplarily, the computer device may determine two target hard disks whose attribute information is ata1 and ata2 from each hard disk according to the attribute information corresponding to each hard disk.

步骤S103,利用目标工具,将至少两个目标硬盘创建为板载RAID。Step S103, using the target tool to create at least two target hard disks as onboard RAID.

具体地,在确定了至少两个目标硬盘之后,计算机设备可以利用目标工具,将至少两个目标硬盘转换为板载RAID。Specifically, after the at least two target hard disks are determined, the computer device can use the target tool to convert the at least two target hard disks into onboard RAID.

关于该步骤将在下文进行详细介绍。This step will be described in detail below.

本实施例提供的板载RAID的创建方法,获取计算机设备中各个硬盘对应的属性信息;根据各个硬盘对应的属性信息,从各个硬盘中确定用于创建板载RAID的至少两个目标硬盘,保证了从各个硬盘中确定用于创建板载RAID的至少两个目标硬盘的准确性。然后,利用目标工具,将至少两个目标硬盘创建为板载RAID,从而实现了在BIOS界面不能实现RAID的情况下,创建了板载RAID。一方面解决了难题,完成项目开发,另一方面又可以优化工厂作业方式,减少人力投入,完成自动化作业过程,提升工厂生产效率。The creation method of onboard RAID provided by this embodiment obtains the attribute information corresponding to each hard disk in the computer device; according to the attribute information corresponding to each hard disk, at least two target hard disks for creating onboard RAID are determined from each hard disk, ensuring In order to determine the accuracy of at least two target hard disks for creating onboard RAID from each hard disk. Then, use the target tool to create at least two target hard disks as the onboard RAID, thereby realizing the creation of the onboard RAID when the BIOS interface cannot implement the RAID. On the one hand, it solves the problem and completes the project development. On the other hand, it can optimize the factory operation mode, reduce manpower input, complete the automatic operation process, and improve the factory production efficiency.

在本实施例中提供了一种板载RAID的创建方法,可用于上述的计算机设备,如服务器、电脑等,图3是本发明实施例提供的板载RAID的创建方法的流程图,如图3所示,该流程包括如下步骤:In this embodiment, a method for creating an onboard RAID is provided, which can be used for the above-mentioned computer equipment, such as a server, a computer, etc. FIG. 3 is a flow chart of the method for creating an onboard RAID provided in an embodiment of the present invention, as shown in 3, the process includes the following steps:

步骤S201,获取计算机设备中各个硬盘对应的属性信息。Step S201, acquiring attribute information corresponding to each hard disk in the computer device.

详细请参见图1所示实施例的步骤S101,在此不再赘述。For details, refer to step S101 in the embodiment shown in FIG. 1 , and details are not repeated here.

步骤S202,根据各个硬盘对应的属性信息,从各个硬盘中确定用于创建板载RAID的至少两个目标硬盘。Step S202, according to attribute information corresponding to each hard disk, determine at least two target hard disks for creating onboard RAID from each hard disk.

详细请参见图1所示实施例的步骤S102,在此不再赘述。For details, please refer to step S102 in the embodiment shown in FIG. 1 , which will not be repeated here.

步骤S203,获取计算机设备对应的BIOS系统的sSATA接口的当前模式。Step S203, acquiring the current mode of the sSATA interface of the BIOS system corresponding to the computer device.

具体地,计算机设备可以对BIOS系统的sSATA接口的当前模式进行读取,从而获取到计算机设备对应的BIOS系统的sSATA接口的当前模式。Specifically, the computer device can read the current mode of the sSATA interface of the BIOS system, so as to obtain the current mode of the sSATA interface of the BIOS system corresponding to the computer device.

步骤S204,将sSATA接口的当前模式修改为目标模式。Step S204, changing the current mode of the sSATA interface to the target mode.

在一些可选的实施方式中,sSATA接口的当前模式为AHCI模式,目标模式为RAID模式,上述步骤S204“将sSATA接口的当前模式修改为目标模式”包括:In some optional implementation manners, the current mode of the sSATA interface is AHCI mode, and the target mode is RAID mode, and the above step S204 "modifying the current mode of the sSATA interface to the target mode" includes:

步骤S2041,在OS系统下,利用SCELNX_64工具将BIOS系统对应的Setup导出到文件。Step S2041, under the OS system, use the SCELNX_64 tool to export the Setup corresponding to the BIOS system to a file.

具体地,在OS系统下,计算机设备可以利用SCELNX_64工具将BIOS系统对应的Setup导出到文件。Specifically, under the OS system, the computer device can use the SCELNX_64 tool to export the Setup corresponding to the BIOS system to a file.

步骤S2042,将sSATA接口的当前模式从AHCI模式修改成RAID模式。Step S2042, changing the current mode of the sSATA interface from AHCI mode to RAID mode.

具体地,计算机设备可以将sSATA接口的当前模式从AHCI模式修改成RAID模式。Specifically, the computer device can modify the current mode of the sSATA interface from AHCI mode to RAID mode.

步骤S2043,利用SCELNX_64工具将BIOS系统对应的修改后的Setup写入BIOS的配置文件。Step S2043, using the SCELNX_64 tool to write the modified Setup corresponding to the BIOS system into the BIOS configuration file.

具体地,在将sSATA接口的当前模式从AHCI模式修改成RAID模式之后,计算机设备可以再次利用SCELNX_64工具将BIOS系统对应的修改后的Setup写入BIOS的配置文件。Specifically, after modifying the current mode of the sSATA interface from AHCI mode to RAID mode, the computer device can use the SCELNX_64 tool again to write the modified Setup corresponding to the BIOS system into the BIOS configuration file.

步骤S205,利用目标工具,将至少两个目标硬盘创建为板载RAID。Step S205, using the target tool to create at least two target hard disks as onboard RAID.

详细请参见图1所示实施例的步骤S103,在此不再赘述。For details, please refer to step S103 in the embodiment shown in FIG. 1 , which will not be repeated here.

本申请实施例提供的板载RAID的创建方法,获取计算机设备对应的BIOS系统的sSATA接口的当前模式。然后,在OS系统下,利用SCELNX_64工具将BIOS系统对应的Setup导出到文件,从而便于对sSATA接口的当前模式的修改。然后,将sSATA接口的当前模式从AHCI模式修改成RAID模式,利用SCELNX_64工具将BIOS系统对应的修改后的Setup写入BIOS的配置文件。从而保证了计算机设备可以成功创建板载RAID,在创建板载RAID的过程中不会报错。The onboard RAID creation method provided in the embodiment of the present application obtains the current mode of the sSATA interface of the BIOS system corresponding to the computer device. Then, under the OS system, use the SCELNX_64 tool to export the Setup corresponding to the BIOS system to a file, so as to facilitate the modification of the current mode of the sSATA interface. Then, modify the current mode of the sSATA interface from AHCI mode to RAID mode, and use the SCELNX_64 tool to write the modified Setup corresponding to the BIOS system into the BIOS configuration file. Therefore, it is ensured that the computer equipment can successfully create the onboard RAID, and no error will be reported during the process of creating the onboard RAID.

在本实施例中提供了一种板载RAID的创建方法,可用于上述的计算机设备,如服务器、电脑等,图4是本发明实施例提供的板载RAID的创建方法的流程图,如图4所示,该流程包括如下步骤:In this embodiment, a method for creating an onboard RAID is provided, which can be used for the above-mentioned computer equipment, such as a server, a computer, etc. FIG. 4 is a flow chart of the method for creating an onboard RAID provided in an embodiment of the present invention, as shown in 4, the process includes the following steps:

步骤S301,获取计算机设备中各个硬盘对应的属性信息。Step S301, acquiring attribute information corresponding to each hard disk in the computer device.

具体地,上述步骤S301“获取计算机设备中各个硬盘对应的属性信息”,可以包括如下步骤:Specifically, the above-mentioned step S301 of "obtaining attribute information corresponding to each hard disk in the computer device" may include the following steps:

步骤S3011,获取计算机设备的硬件拓扑关系。Step S3011, acquiring the hardware topology relationship of the computer equipment.

具体地,计算机设备可以对计算机设备对应的硬件进行识别,获取计算机设备的硬件拓扑关系;计算机设备还可以接收用户输入的计算机设备的硬件拓扑关系;计算机设备还可以接收其他设备发送的计算机设备的硬件拓扑关系。Specifically, the computer device can identify the hardware corresponding to the computer device and obtain the hardware topology relationship of the computer device; the computer device can also receive the hardware topology relationship of the computer device input by the user; the computer device can also receive the computer device's hardware topology relationship sent by other devices. hardware topology.

本申请实施例对计算机设备获取计算机设备的硬件拓扑关系的方式不做具体限定。The embodiment of the present application does not specifically limit the manner in which the computer device obtains the hardware topology relationship of the computer device.

步骤S3012,在OS系统下,根据硬件拓扑关系,利用udevadm工具读取各个硬盘对应的属性信息。Step S3012, under the OS system, according to the hardware topology, use the udevadm tool to read the attribute information corresponding to each hard disk.

具体地,在OS系统下,计算机设备可以根据硬件拓扑关系,利用udevadm工具读取各个硬盘对应的属性信息。Specifically, under the OS system, the computer device can use the udevadm tool to read the attribute information corresponding to each hard disk according to the hardware topology relationship.

示例性的,其中,属性信息可以是系统识别号。计算机设备根据计算机设备的硬件拓扑关系,在系统OS下利用udevadm工具获取各个硬盘对应的udev信息,再根据各个硬盘连接PCH的SATA0/SATA1接口提前识别硬盘的系统识别号。然后,根据硬盘的系统识别号,从各个硬盘中确定系统识别号为ata1/ata2的硬盘为目标硬盘。Exemplarily, the attribute information may be a system identification number. According to the hardware topology of the computer equipment, use the udevadm tool under the system OS to obtain the udev information corresponding to each hard disk, and then identify the system identification number of the hard disk in advance according to the SATA0/SATA1 interface of each hard disk connected to the PCH. Then, according to the system identification numbers of the hard disks, the hard disk with the system identification number ata1/ata2 is determined as the target hard disk from among the hard disks.

步骤S302,根据各个硬盘对应的属性信息,从各个硬盘中确定用于创建板载RAID的至少两个目标硬盘。Step S302, according to attribute information corresponding to each hard disk, determine at least two target hard disks for creating onboard RAID from each hard disk.

详细请参见图3所示实施例的步骤S202,在此不再赘述。For details, please refer to step S202 in the embodiment shown in FIG. 3 , which will not be repeated here.

步骤S303,利用目标工具,将至少两个目标硬盘创建为板载RAID。Step S303, using the target tool to create at least two target hard disks as onboard RAID.

具体地,目标工具为mdadm工具,上述步骤S303“利用目标工具,将至少两个目标硬盘创建为板载RAID”,可以包括如下步骤:Specifically, the target tool is the mdadm tool, and the above step S303 "using the target tool to create at least two target hard disks as onboard RAID" may include the following steps:

步骤S3031,利用mdadm工具创建一个目标容器。Step S3031, using the mdadm tool to create a target container.

具体地,计算机设备可以利用mdadm工具创建一个目标容器。Specifically, the computer device can use the mdadm tool to create a target container.

步骤S3032,将至少两个目标硬盘放入目标容器。Step S3032, putting at least two target hard disks into the target container.

具体地,在创建了目标容器之后,计算机设备将至少两个目标硬盘放入目标容器。Specifically, after creating the target container, the computer device puts at least two target hard disks into the target container.

步骤S3033,将目标容器中的至少两个目标硬盘转化为板载RAID。Step S3033, converting at least two target hard disks in the target container into onboard RAID.

具体地,在将至少两个目标硬盘放入目标容器之后,计算机设备将目标容器中的至少两个目标硬盘转化为板载RAID。Specifically, after putting at least two target hard disks into the target container, the computer device converts the at least two target hard disks in the target container into onboard RAID.

示例性的,计算机设备可以先创建一个目标容器/dev/d/imsm0,mdadm-C/dev/md/imsm0/dev/sda/dev/sdb-n 2-e imsm,再将目标容器内的至少两个目标硬盘转化为板载RAID,mdadm-C/dev/md126/dev/md/imsm0-n 2-l 1-NVolume0如此,名为/dev/md126的板载RAID创建开始。Exemplarily, the computer device can first create a target container /dev/d/imsm0, mdadm-C /dev/md/imsm0/dev/sda/dev/sdb-n 2-e imsm, and then at least The two target hard disks are converted to onboard RAID, mdadm-C /dev/md126/dev/md/imsm0-n 2-l 1-NVolume0, and the onboard RAID named /dev/md126 is created.

步骤S304,对板载RAID的创建过程进行实时监控,并实时显示板载RAID的创建进度。In step S304, the process of creating the onboard RAID is monitored in real time, and the progress of creating the onboard RAID is displayed in real time.

具体地,计算机设备可以对板载RAID的创建过程进行实时监控,并实时显示板载RAID的创建进度。Specifically, the computer device can monitor the creation process of the onboard RAID in real time, and display the creation progress of the onboard RAID in real time.

其中,计算机设备实时显示板载RAID的创建进度的方式可以是以进度条的方式进行实时显示,也可以是以圆盘的方式进行实时显示,还可以是以百分比的方式进行实时显示,本申请实施例对计算机设备实时显示板载RAID的创建进度的方式不做具体限定。Wherein, the computer device can display the creation progress of the onboard RAID in real time in the form of a progress bar, in the form of a disc, or in the form of a percentage. The present application The embodiment does not specifically limit the manner in which the computer device displays the creation progress of the onboard RAID in real time.

步骤S305,当板载RAID创建过程中出现故障时,输出故障原因。Step S305, when a failure occurs during the creation of the onboard RAID, output the cause of the failure.

具体地,计算机设备在对板载RAID的创建过程进行实时监控时,还可以实时监控板载RAID的创建过程是否发生故障。当板载RAID创建过程中出现故障时,输出故障原因。Specifically, when the computer device monitors the creation process of the onboard RAID in real time, it can also monitor in real time whether the creation process of the onboard RAID fails. When a fault occurs during onboard RAID creation, the cause of the fault is output.

其中,计算机设备输出故障原因的方式可以是输出故障信息,也可以是控制指示灯闪烁,本申请实施例对计算机设备输出故障原因的方式不做具体限定。Wherein, the way for the computer device to output the cause of the failure may be to output the failure information, or to control the blinking of the indicator light. The embodiment of the present application does not specifically limit the way for the computer device to output the cause of the failure.

本申请实施例提供的板载RAID的创建方法,获取计算机设备的硬件拓扑关系,保证了获取到的计算机设备的硬件拓扑关系的准确性。在OS系统下,根据硬件拓扑关系,利用udevadm工具读取各个硬盘对应的属性信息,保证了读取到的各个硬盘对应的属性信息的准确性。The onboard RAID creation method provided by the embodiment of the present application acquires the hardware topology relationship of the computer equipment, and ensures the accuracy of the acquired hardware topology relationship of the computer equipment. Under the OS system, according to the hardware topology, use the udevadm tool to read the attribute information corresponding to each hard disk, which ensures the accuracy of the read attribute information corresponding to each hard disk.

此外,本申请实施例提供的板载RAID的创建方法,利用mdadm工具创建一个目标容器,保证了创建的目标容器的准确性。将至少两个目标硬盘放入目标容器,将目标容器中的至少两个目标硬盘转化为板载RAID。从而实现了在BIOS界面不能实现RAID的情况下,创建了板载RAID。一方面解决了难题,完成项目开发,另一方面又可以优化工厂作业方式,减少人力投入,完成自动化作业过程,提升工厂生产效率。In addition, the onboard RAID creation method provided in the embodiment of the present application uses the mdadm tool to create a target container, which ensures the accuracy of the created target container. Put at least two target hard drives into the target container, and convert at least two target hard drives in the target container to onboard RAID. In this way, the onboard RAID can be created when the BIOS interface cannot implement RAID. On the one hand, it solves the problem and completes the project development. On the other hand, it can optimize the factory operation mode, reduce manpower input, complete the automatic operation process, and improve the factory production efficiency.

然后,对板载RAID的创建过程进行实时监控,并实时显示板载RAID的创建进度,实现了对板载RAID的创建过程的监控,且保证了用户可以实时获取到板载RAID的创建进度。此外,当板载RAID创建过程中出现故障时,输出故障原因,保证了用户可以获取到故障原因,进而使得用户可以根据故障原因,对板载RAID创建过程进行修正。Then, the creation process of the onboard RAID is monitored in real time, and the creation progress of the onboard RAID is displayed in real time, which realizes the monitoring of the creation process of the onboard RAID and ensures that the user can obtain the creation progress of the onboard RAID in real time. In addition, when a failure occurs during the creation of the onboard RAID, the cause of the failure is output to ensure that the user can obtain the cause of the failure, so that the user can correct the creation process of the onboard RAID according to the cause of the failure.

在本实施例中还提供了一种板载RAID的创建装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a device for creating an onboard RAID is also provided, and the device is used to implement the above embodiments and preferred implementation modes, and what has been explained will not be repeated. As used below, the term "module" may be a combination of software and/or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.

本实施例提供一种板载RAID的创建装置,如图5所示,包括:This embodiment provides a device for creating an onboard RAID, as shown in Figure 5, including:

第一获取模块401,用于获取计算机设备中各个硬盘对应的属性信息;The first obtaining module 401 is used to obtain attribute information corresponding to each hard disk in the computer device;

确定模块402,用于根据各个硬盘对应的属性信息,从各个硬盘中确定用于创建板载RAID的至少两个目标硬盘;A determining module 402, configured to determine at least two target hard disks for creating onboard RAID from each hard disk according to attribute information corresponding to each hard disk;

创建模块403,用于利用目标工具,将至少两个目标硬盘创建为板载RAID。The creation module 403 is configured to use the target tool to create at least two target hard disks as onboard RAID.

如图6所示,在一些可选的实施方式中,上述板载RAID的创建装置,还包括:As shown in Figure 6, in some optional implementation manners, the above-mentioned onboard RAID creation device also includes:

第二获取模块404,用于获取计算机设备对应的BIOS系统的sSATA接口的当前模式;The second obtaining module 404 is used to obtain the current mode of the sSATA interface of the BIOS system corresponding to the computer device;

修改模块405,用于将sSATA接口的当前模式修改为目标模式。A modifying module 405, configured to modify the current mode of the sSATA interface to the target mode.

在一些可选的实施方式中,sSATA接口的当前模式为AHCI模式,目标模式为RAID模式,上述修改模块405,包括:In some optional implementation manners, the current mode of the sSATA interface is AHCI mode, and the target mode is RAID mode, and the above modification module 405 includes:

导出单元4051,用于在OS系统下,利用SCELNX_64工具将BIOS系统对应的Setup导出到文件;The export unit 4051 is used to export the Setup corresponding to the BIOS system to a file by using the SCELNX_64 tool under the OS system;

修改单元4052,用于将sSATA接口的当前模式从AHCI模式修改成RAID模式;A modification unit 4052, configured to modify the current mode of the sSATA interface from AHCI mode to RAID mode;

写入单元4053,用于利用SCELNX_64工具将BIOS系统对应的修改后的Setup写入BIOS的配置文件。The writing unit 4053 is configured to use the SCELNX_64 tool to write the modified Setup corresponding to the BIOS system into the BIOS configuration file.

在一些可选的实施方式中,目标工具为mdadm工具,上述创建模块403,包括:In some optional implementation manners, the target tool is the mdadm tool, and the above creation module 403 includes:

创建单元4031,用于利用mdadm工具创建一个目标容器;Create unit 4031, for utilizing mdadm tool to create a target container;

放入单元4032,用于将至少两个目标硬盘放入目标容器;Putting into unit 4032, for putting at least two target hard disks into the target container;

转化单元4033,用于将目标容器中的至少两个目标硬盘转化为板载RAID。A conversion unit 4033, configured to convert at least two target hard disks in the target container into onboard RAID.

在一些可选的实施方式中,第一获取模块401,包括:In some optional implementation manners, the first obtaining module 401 includes:

获取单元4011,用于获取计算机设备的硬件拓扑关系;An acquisition unit 4011, configured to acquire hardware topology relationships of computer equipment;

读取单元4012,用于在OS系统下,根据硬件拓扑关系,利用udevadm工具读取各个硬盘对应的属性信息。The reading unit 4012 is configured to use the udevadm tool to read the attribute information corresponding to each hard disk according to the hardware topology relationship under the OS system.

如图7所示,在一些可选的实施方式中,上述板载RAID的创建装置,还包括:As shown in Figure 7, in some optional implementation manners, the above-mentioned onboard RAID creation device also includes:

监控模块406,用于对板载RAID的创建过程进行实时监控,并实时显示板载RAID的创建进度;The monitoring module 406 is used to monitor the creation process of the onboard RAID in real time, and display the creation progress of the onboard RAID in real time;

输出模块407,用于当板载RAID创建过程中出现故障时,输出故障原因。The output module 407 is configured to output the cause of the failure when a failure occurs during the onboard RAID creation process.

本实施例中的板载RAID的创建装置是以功能单元的形式来呈现,这里的单元是指ASIC电路,执行一个或多个软件或固定程序的处理器和存储器,和/或其他可以提供上述功能的器件。The onboard RAID creation device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC circuit, a processor and a memory that execute one or more software or fixed programs, and/or other devices that can provide the above-mentioned functional device.

上述各个模块和单元的更进一步的功能描述与上述对应实施例相同,在此不再赘述。The further functional descriptions of the above-mentioned modules and units are the same as those of the above-mentioned corresponding embodiments, and will not be repeated here.

本发明实施例还提供一种计算机设备,具有上述图5-7所示的板载RAID的创建装置。An embodiment of the present invention also provides a computer device, which has the device for creating an onboard RAID shown in FIGS. 5-7 above.

请参阅图8,图8是本发明可选实施例提供的一种计算机设备的结构示意图,如图8所示,该计算机设备包括:一个或多个处理器10、存储器20,以及用于连接各部件的接口,包括高速接口和低速接口。各个部件利用不同的总线互相通信连接,并且可以被安装在公共主板上或者根据需要以其它方式安装。处理器可以对在计算机设备内执行的指令进行处理,包括存储在存储器中或者存储器上以在外部输入/输出装置(诸如,耦合至接口的显示设备)上显示GUI的图形信息的指令。在一些可选的实施方式中,若需要,可以将多个处理器和/或多条总线与多个存储器和多个存储器一起使用。同样,可以连接多个计算机设备,各个设备提供部分必要的操作(例如,作为服务器阵列、一组刀片式服务器、或者多处理器系统)。图8中以一个处理器10为例。Please refer to FIG. 8. FIG. 8 is a schematic structural diagram of a computer device provided in an optional embodiment of the present invention. As shown in FIG. 8, the computer device includes: one or more processors 10, memory 20, and a Interfaces of various components, including high-speed interfaces and low-speed interfaces. The various components are communicatively connected to each other using different buses and may be mounted on a common motherboard or otherwise as desired. The processor may process instructions executed within the computer device, including instructions stored in or on the memory, to display graphical information of a GUI on an external input/output device such as a display device coupled to an interface. In some alternative implementations, multiple processors and/or multiple buses may be used with multiple memories and multiple memories, if desired. Likewise, multiple computing devices may be connected, with each device providing some of the necessary operations (eg, as a server array, a set of blade servers, or a multi-processor system). A processor 10 is taken as an example in FIG. 8 .

处理器10可以是中央处理器,网络处理器或其组合。其中,处理器10还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路,可编程逻辑器件或其组合。上述可编程逻辑器件可以是复杂可编程逻辑器件,现场可编程逻辑门阵列,通用阵列逻辑或其任意组合。Processor 10 may be a central processing unit, a network processor or a combination thereof. Wherein, the processor 10 may further include a hardware chip. The aforementioned hardware chip may be an application specific integrated circuit, a programmable logic device or a combination thereof. The aforementioned programmable logic device may be complex programmable logic device, field programmable logic gate array, general array logic or any combination thereof.

其中,存储器20存储有可由至少一个处理器10执行的指令,以使至少一个处理器10执行实现上述实施例示出的方法。Wherein, the memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes and realizes the methods shown in the above-mentioned embodiments.

存储器20可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据一种小程序落地页的展现的计算机设备的使用所创建的数据等。此外,存储器20可以包括高速随机存取存储器,还可以包括非瞬时存储器,例如至少一个磁盘存储器件、闪存器件、或其他非瞬时固态存储器件。在一些可选的实施方式中,存储器20可选包括相对于处理器10远程设置的存储器,这些远程存储器可以通过网络连接至该计算机设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required by at least one function; created data, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some optional implementations, the memory 20 may optionally include memories that are remotely located relative to the processor 10, and these remote memories may be connected to the computer device through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

存储器20可以包括易失性存储器,例如,随机存取存储器;存储器也可以包括非易失性存储器,例如,快闪存储器,硬盘或固态硬盘;存储器20还可以包括上述种类的存储器的组合。The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state disk; the memory 20 may also include a combination of the above types of memories.

该计算机设备还包括输入装置30和输出装置40。处理器10、存储器20、输入装置30和输出装置20可以通过总线或者其他方式连接,图8中以通过总线连接为例。The computer device also includes input means 30 and output means 40 . The processor 10, the memory 20, the input device 30, and the output device 20 may be connected via a bus or in other ways. In FIG. 8, connection via a bus is taken as an example.

输入装置30可接收输入的数字或字符信息,以及产生与该计算机设备的用户设置以及功能控制有关的键信号输入,例如触摸屏、小键盘、鼠标、轨迹板、触摸板、指示杆、一个或者多个鼠标按钮、轨迹球、操纵杆等。输出装置40可以包括显示设备、辅助照明装置(例如,LED)和触觉反馈装置(例如,振动电机)等。上述显示设备包括但不限于液晶显示器,发光二极管,显示器和等离子体显示器。在一些可选的实施方式中,显示设备可以是触摸屏。The input device 30 can receive input numbers or character information, and generate key signal input related to user settings and function control of the computer equipment, such as a touch screen, a small keyboard, a mouse, a trackpad, a touchpad, a pointing stick, one or more mouse buttons, trackball, joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (eg, LED), a tactile feedback device (eg, a vibration motor), and the like. The aforementioned display devices include, but are not limited to, liquid crystal displays, light emitting diodes, monitors, and plasma displays. In some optional implementation manners, the display device may be a touch screen.

本发明实施例还提供了一种计算机可读存储介质,上述根据本发明实施例的方法可在硬件、固件中实现,或者被实现为可记录在存储介质,或者被实现通过网络下载的原始存储在远程存储介质或非暂时机器可读存储介质中并将被存储在本地存储介质中的计算机代码,从而在此描述的方法可被存储在使用通用计算机、专用处理器或者可编程或专用硬件的存储介质上的这样的软件处理。其中,存储介质可为磁碟、光盘、只读存储记忆体、随机存储记忆体、快闪存储器、硬盘或固态硬盘等;进一步地,存储介质还可以包括上述种类的存储器的组合。可以理解,计算机、处理器、微处理器控制器或可编程硬件包括可存储或接收软件或计算机代码的存储组件,当软件或计算机代码被计算机、处理器或硬件访问且执行时,实现上述实施例示出的方法。The embodiment of the present invention also provides a computer-readable storage medium. The above-mentioned method according to the embodiment of the present invention can be implemented in hardware or firmware, or can be recorded in a storage medium, or can be downloaded through the network for original storage. Computer code on a remote storage medium or a non-transitory machine-readable storage medium to be stored on a local storage medium so that the methods described herein can be stored on a computer using a general purpose computer, a special purpose processor, or programmable or dedicated hardware Such software processing on storage media. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium may also include a combination of the above types of memories. It can be understood that a computer, processor, microprocessor controller or programmable hardware includes a storage component that can store or receive software or computer code, and when the software or computer code is accessed and executed by the computer, processor or hardware, the above-mentioned implementation Example method.

虽然结合附图描述了本发明的实施例,但是本领域技术人员可以在不脱离本发明的精神和范围的情况下做出各种修改和变型,这样的修改和变型均落入由所附权利要求所限定的范围之内。Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention. within the bounds of the requirements.

Claims (10)

1.一种板载RAID的创建方法,其特征在于,所述方法包括:1. A creation method of onboard RAID, is characterized in that, described method comprises: 获取计算机设备中各个硬盘对应的属性信息;Obtain attribute information corresponding to each hard disk in the computer device; 根据各个所述硬盘对应的属性信息,从各个所述硬盘中确定用于创建板载RAID的至少两个目标硬盘;According to the attribute information corresponding to each of the hard disks, at least two target hard disks for creating onboard RAID are determined from each of the hard disks; 利用目标工具,将至少两个所述目标硬盘创建为板载RAID。Using the target tool, create at least two of said target hard drives as an onboard RAID. 2.根据权利要求1所述的方法,其特征在于,所述利用目标工具,将至少两个所述目标硬盘创建为板载RAID之前,所述方法还包括:2. The method according to claim 1, wherein, before using the target tool, at least two of the target hard disks are created as onboard RAID, the method further comprises: 获取所述计算机设备对应的BIOS系统的sSATA接口的当前模式;Obtain the current mode of the sSATA interface of the BIOS system corresponding to the computer device; 将所述sSATA接口的当前模式修改为目标模式。Modify the current mode of the sSATA interface to the target mode. 3.根据权利要求2所述的方法,其特征在于,所述sSATA接口的当前模式为AHCI模式,所述目标模式为RAID模式,所述将所述sSATA接口的当前模式修改为目标模式,包括:3. The method according to claim 2, wherein the current mode of the sSATA interface is an AHCI mode, and the target mode is a RAID mode, and the current mode of the sSATA interface is modified to a target mode, comprising : 在OS系统下,利用SCELNX_64工具将所述BIOS系统对应的Setup导出到文件;Under the OS system, use the SCELNX_64 tool to export the Setup corresponding to the BIOS system to a file; 将所述sSATA接口的当前模式从所述AHCI模式修改成所述RAID模式;Modifying the current mode of the sSATA interface from the AHCI mode to the RAID mode; 利用所述SCELNX_64工具将所述BIOS系统对应的修改后的Setup写入所述BIOS的配置文件。Using the SCELNX_64 tool to write the modified Setup corresponding to the BIOS system into the configuration file of the BIOS. 4.根据权利要求1所述的方法,其特征在于,所述目标工具为mdadm工具,所述利用目标工具,将至少两个所述目标硬盘创建为板载RAID,包括:4. The method according to claim 1, wherein the target tool is an mdadm tool, and the target tool is used to create at least two target hard disks as onboard RAID, including: 利用所述mdadm工具创建一个目标容器;Create a target container using the mdadm tool; 将至少两个所述目标硬盘放入所述目标容器;putting at least two of the target hard disks into the target container; 将所述目标容器中的至少两个所述目标硬盘转化为所述板载RAID。converting at least two of the target hard disks in the target container to the onboard RAID. 5.根据权利要求1所述的方法,其特征在于,所述获取计算机设备中各个硬盘对应的属性信息,包括:5. The method according to claim 1, wherein said obtaining attribute information corresponding to each hard disk in the computer device comprises: 获取所述计算机设备的硬件拓扑关系;Obtaining the hardware topology relationship of the computer device; 在OS系统下,根据所述硬件拓扑关系,利用udevadm工具读取各个所述硬盘对应的所述属性信息。Under the OS system, according to the hardware topology relationship, use the udevadm tool to read the attribute information corresponding to each of the hard disks. 6.根据权利要求1所述的方法,其特征在于,所述方法还包括:6. The method according to claim 1, further comprising: 对所述板载RAID的创建过程进行实时监控,并实时显示所述板载RAID的创建进度;Real-time monitoring of the creation process of the onboard RAID, and real-time display of the creation progress of the onboard RAID; 当所述板载RAID创建过程中出现故障时,输出故障原因。When a failure occurs during the creation of the onboard RAID, the cause of the failure is output. 7.一种板载RAID的创建装置,其特征在于,所述装置包括:7. A device for creating an onboard RAID, characterized in that the device comprises: 第一获取模块,用于获取计算机设备中各个硬盘对应的属性信息;The first obtaining module is used to obtain attribute information corresponding to each hard disk in the computer device; 确定模块,用于根据各个所述硬盘对应的属性信息,从各个所述硬盘中确定用于创建板载RAID的至少两个目标硬盘;A determining module, configured to determine at least two target hard disks for creating onboard RAID from each of the hard disks according to the attribute information corresponding to each of the hard disks; 创建模块,用于利用目标工具,将至少两个所述目标硬盘创建为板载RAID。The creation module is used for creating at least two target hard disks as onboard RAID by utilizing the target tool. 8.根据权利要求7所述的装置,其特征在于,所述板载RAID的创建装置,还包括:8. The device according to claim 7, wherein the device for creating the onboard RAID further comprises: 第二获取模块,用于获取所述计算机设备对应的BIOS系统的sSATA接口的当前模式;The second obtaining module is used to obtain the current mode of the sSATA interface of the BIOS system corresponding to the computer device; 修改模块,用于将所述sSATA接口的当前模式修改为目标模式。A modification module, configured to modify the current mode of the sSATA interface to a target mode. 9.一种计算机设备,其特征在于,包括:9. A computer device, comprising: 存储器和处理器,所述存储器和所述处理器之间互相通信连接,所述存储器中存储有计算机指令,所述处理器通过执行所述计算机指令,从而执行权利要求1至6中任一项所述的板载RAID的创建方法。A memory and a processor, the memory and the processor are connected in communication with each other, computer instructions are stored in the memory, and the processor performs any one of claims 1 to 6 by executing the computer instructions The creation method of the onboard RAID described above. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机指令,所述计算机指令用于使计算机执行权利要求1至6中任一项所述的板载RAID的创建方法。10. A computer-readable storage medium, wherein computer instructions are stored on the computer-readable storage medium, and the computer instructions are used to make a computer execute the on-board computer according to any one of claims 1 to 6. How to create RAID.
CN202310416070.4A 2023-04-18 2023-04-18 Onboard RAID creation method, device, computer equipment and storage medium Pending CN116339642A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310416070.4A CN116339642A (en) 2023-04-18 2023-04-18 Onboard RAID creation method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310416070.4A CN116339642A (en) 2023-04-18 2023-04-18 Onboard RAID creation method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116339642A true CN116339642A (en) 2023-06-27

Family

ID=86880529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310416070.4A Pending CN116339642A (en) 2023-04-18 2023-04-18 Onboard RAID creation method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116339642A (en)

Similar Documents

Publication Publication Date Title
KR102493449B1 (en) Edge computing test methods, devices, electronic devices and computer-readable media
TWI588649B (en) Hardware recovery methods, hardware recovery systems, and computer-readable storage device
CN110780890B (en) System upgrading method, device, electronic equipment and medium
US9569226B2 (en) Baseboard management controller and method of loading firmware
US9680712B2 (en) Hardware management and control of computer components through physical layout diagrams
CN103198034B (en) A kind of hot plug electric power controller based on cpci bus equipment plate card
CN106445577A (en) Update method, server system, and non-transitory computer-readable medium
US9558028B2 (en) Systems and methods for migration of virtual machines across virtual storage resources
US10514972B2 (en) Embedding forensic and triage data in memory dumps
CN104572465A (en) Novel BIOS Debug method
CN102331959A (en) server system
CN106547592A (en) A kind of method for designing for realizing Novel cloud service device power supply software online updating
CN111767169A (en) Data processing method and device, electronic equipment and storage medium
CN118643000A (en) Generating method, sending method and device of configuration information table of server PCIe port
CN116339642A (en) Onboard RAID creation method, device, computer equipment and storage medium
CN117408061A (en) Whole vehicle model simulation performance optimization system and computer device
CN117408060A (en) Whole vehicle model simulation performance optimization method, storage medium and electronic equipment
US20240012651A1 (en) Enhanced service operating system capabilities through embedded controller system health state tracking
US20230315437A1 (en) Systems and methods for performing power suppy unit (psu) firmware updates without interrupting a user's datapath
CN115686575A (en) Edge controller firmware updating method, system, storage medium and server
CN115686896A (en) Extended memory error processing method, system, electronic device and storage medium
TW202305589A (en) Storage device and operation method thereof
US20070226629A1 (en) Apparatus, system, and method for displaying a complementary high-level graphical representation of an enterprise information technology system
CN114153388B (en) Hard disk system, hard disk configuration information refreshing method, device and medium
US20200133681A1 (en) Enabling software sensor power operation requests via baseboard management controller (bmc)

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination