CN116339642A - Method and device for creating on-board RAID, computer equipment and storage medium - Google Patents

Method and device for creating on-board RAID, 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
raid
target
creating
board
hard disks
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

The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for creating an on-board RAID, a computer device, and a storage medium. The method comprises the following steps: acquiring attribute information corresponding to each hard disk in computer equipment; determining 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; at least two target hard disks are created as an on-board RAID using a target tool. The method realizes that the on-board RAID is created under the condition that the RAID cannot be realized by the BIOS interface. On one hand, the difficult problem is solved, project development is completed, on the other hand, the operation mode of the factory can be optimized, the manpower input is reduced, the automatic operation process is completed, and the production efficiency of the factory is improved.

Description

Method and device for creating on-board RAID, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for creating an on-board RAID, a computer device, and a storage medium.
Background
In the face of various possible disasters, enterprises need to conveniently and flexibly synchronize data residing in different databases based on heterogeneous environments, so that a local disaster recovery system and a different disaster recovery system which can resist or resolve various situations need to be built. In the application environment of the audio and video data storage of the conventional single-node server, professional RAID (Redundant Array of Independent Disk, redundant array of independent disks) hardware resources are generally required to provide multi-level disaster recovery capability, such as RAID5 or RAID6, but the conventional hard RAID scheme needs to sacrifice hardware resources to provide high-availability disaster recovery capability, so that it is difficult to meet the requirements of reducing the cost of hardware resources and improving the disaster recovery capability at the same time.
Therefore, on-board RAID (Redundant Array of Inexpensive Disks ) has been developed. On-board RAID is a redundant array of hard disks (assembled from disks). In the prior art, the implementation of on-board RAID is generally completed by manual operation at a BIOS interface, but the BIOS system of some servers is not supported by the function, and BIOS system manufacturers are not planned for developing corresponding functions, so that many servers cannot implement on-board RAID.
Therefore, in the case that the BIOS system cannot implement RAID, how to create the on-board RAID becomes a problem to be solved.
Disclosure of Invention
In view of this, the present invention provides a method, apparatus, computer device and storage medium for creating an on-board RAID, so as to solve the problem of how to create an on-board RAID in the case that the BIOS interface cannot implement RAID.
In a first aspect, the present invention provides a method for creating an on-board RAID, where the method includes:
acquiring attribute information corresponding to each hard disk in computer equipment;
determining 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;
at least two target hard disks are created as an on-board RAID using a target tool.
The method for creating the onboard RAID acquires attribute information corresponding to each hard disk in the computer equipment; 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, and the accuracy of determining at least two target hard disks for creating the onboard RAID from each hard disk is ensured. Then, at least two target hard disks are created as an on-board RAID by using the target tool, so that the on-board RAID is created under the condition that the RAID cannot be realized by the BIOS interface. On one hand, the difficult problem is solved, project development is completed, on the other hand, the operation mode of the factory can be optimized, the manpower input is reduced, the automatic operation process is completed, and the production efficiency of the factory is improved.
In an alternative embodiment, before creating at least two target hard disks as an on-board RAID using the target tool, the method further comprises:
acquiring a current mode of an sSATA interface of a BIOS system corresponding to computer equipment;
the current mode of the sSATA interface is modified to a target mode.
According to the method for creating the on-board RAID, the current mode of the sSATA interface of the BIOS system corresponding to the computer equipment is obtained, and then the current mode of the sSATA interface is modified into the target mode, so that the computer equipment can successfully create the on-board RAID, and errors cannot be reported in the process of creating the on-board RAID.
In an alternative embodiment, the current mode of the sata interface is an AHCI mode, the target mode is a RAID mode, and modifying the current mode of the sata interface to the target mode includes:
under an OS system, exporting Setup corresponding to the BIOS system to a file by using an SCELNX_64 tool;
modifying the current mode of the sSATA interface from an AHCI mode to a RAID mode;
and writing the modified Setup corresponding to the BIOS system into the configuration file of the BIOS by using the SCELNX_64 tool.
According to the method for creating the on-board RAID, under an OS system, the Setup corresponding to the BIOS system is exported to the file by using the SCELNX_64 tool, so that modification of the current mode of the sSATA interface is facilitated. Then, the current mode of the sSATA interface is modified from the AHCI mode to the RAID mode, and the modified Setup corresponding to the BIOS system is written into the configuration file of the BIOS by using the SCELNX_64 tool. Therefore, the computer equipment can successfully establish the onboard RAID, and no error is reported in the process of establishing the onboard RAID.
In an alternative embodiment, the target tool is an mdadm tool, and creating at least two target hard disks as an on-board RAID using the target tool comprises:
creating a target container using the mdadm tool;
placing at least two target hard disks into a target container;
and converting at least two target hard disks in the target container into the onboard RAID.
According to the method for creating the on-board RAID, the mdadm tool is used for creating the target container, and accuracy of the created target container is guaranteed. And placing at least two target hard disks in a target container, and converting the at least two target hard disks in the target container into the onboard RAID. Therefore, the on-board RAID is created under the condition that the RAID cannot be realized by the BIOS interface. On one hand, the difficult problem is solved, project development is completed, on the other hand, the operation mode of the factory can be optimized, the manpower input is reduced, the automatic operation process is completed, and the production efficiency of the factory is improved.
In an optional implementation manner, obtaining attribute information corresponding to each hard disk in the computer device includes:
acquiring a hardware topological relation of computer equipment;
under the OS system, according to the hardware topological relation, the attribute information corresponding to each hard disk is read by using the udeveadm tool.
According to the method for creating the on-board RAID, the hardware topological relation of the computer equipment is obtained, and the accuracy of the obtained hardware topological relation of the computer equipment is guaranteed. Under the OS system, according to the hardware topological relation, the attribute information corresponding to each hard disk is read by using the udeveadm tool, so that the accuracy of the read attribute information corresponding to each hard disk is ensured.
In an optional implementation manner, the method for creating the on-board RAID further includes:
the method comprises the steps of monitoring the creating process of the on-board RAID in real time and displaying the creating progress of the on-board RAID in real time;
and outputting a fault reason when faults occur in the on-board RAID creation process.
According to the method for creating the on-board RAID, the creating process of the on-board RAID is monitored in real time, the creating progress of the on-board RAID is displayed in real time, the monitoring of the creating process of the on-board RAID is achieved, and the user is guaranteed to acquire the creating progress of the on-board RAID in real time. In addition, when faults occur in the on-board RAID creation process, the fault reasons are output, so that the user can be ensured to acquire the fault reasons, and further, the user can correct the on-board RAID creation process according to the fault reasons.
In a second aspect, the present invention provides an on-board RAID creation apparatus, where the apparatus includes:
the first acquisition module is used for acquiring attribute information corresponding to each hard disk in the computer equipment;
the determining module is used for determining at least two target hard disks for creating the onboard RAID from the hard disks according to the attribute information corresponding to the hard disks;
and the creating module is used for creating at least two target hard disks into the on-board RAID by using the target tool.
The device for creating the onboard RAID acquires attribute information corresponding to each hard disk in the computer equipment; 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, and the accuracy of determining at least two target hard disks for creating the onboard RAID from each hard disk is ensured. Then, at least two target hard disks are created as an on-board RAID by using the target tool, so that the on-board RAID is created under the condition that the RAID cannot be realized by the BIOS interface. On one hand, the difficult problem is solved, project development is completed, on the other hand, the operation mode of the factory can be optimized, the manpower input is reduced, the automatic operation process is completed, and the production efficiency of the factory is improved.
In an optional implementation manner, the device for creating an on-board RAID further includes:
the second acquisition module is used for acquiring the current mode of the sSATA interface of the BIOS system corresponding to the computer equipment;
and the modification module is used for modifying the current mode of the sSATA interface into a target mode.
According to the on-board RAID creation device provided by the embodiment of the application, the current mode of the sSATA interface of the BIOS system corresponding to the computer equipment is obtained, and then the current mode of the sSATA interface is modified into the target mode, so that the computer equipment can successfully create the on-board RAID, and errors cannot be reported in the process of creating the on-board RAID.
In a third aspect, the present invention provides a computer device comprising: the storage device and the processor are in communication connection, computer instructions are stored in the storage device, and the processor executes the computer instructions, so that the method for creating the on-board RAID according to the first aspect or any implementation mode corresponding to the first aspect is executed.
In a fourth aspect, the present invention provides a computer readable storage medium having stored thereon computer instructions for causing a computer to execute the method for creating an on-board RAID according to the first aspect or any one of the embodiments described above.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method of creating an on-board RAID according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of the hardware of a computer device in a method of creating an on-board RAID according to an embodiment of the present invention;
FIG. 3 is a flow chart of another method of creating an on-board RAID according to an embodiment of the present invention;
FIG. 4 is a flow chart of a method of creating an on-board RAID according to an embodiment of the present invention;
FIG. 5 is a block diagram of an on-board RAID creation device according to an embodiment of the present invention;
FIG. 6 is a block diagram of another on-board RAID creation device according to an embodiment of the present invention;
FIG. 7 is a block diagram of a further on-board RAID creation device according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a hardware structure of a computer device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
At present, the demands of various industries on servers are greatly increased, and the domestic credit server industry also rises in water. Some of the current creation servers do not do so by externally inserting RAID array cards to the system disk RAID. Thus, it is necessary to RAID two hard disks connected to the main board PCH by system software, i.e., it is necessary to create an on-board RAID.
However, in the prior art, the implementation of on-board RAID is generally completed by manual operation at the BIOS interface, but the BIOS system of some servers is not supported by this function, and BIOS system manufacturers are not planned for developing corresponding functions, so that many servers cannot implement on-board RAID.
Therefore, the embodiment of the application provides a method for creating the on-board RAID, so as to solve the problem of how to create the on-board RAID under the condition that the RAID can not be realized by the BIOS interface.
According to an embodiment of the present invention, there is provided an on-board RAID creation method embodiment, it being noted that the steps shown in the flowchart of the figures may be performed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be performed in an order other than that shown.
In this embodiment, the execution body may be an on-board RAID creating device, where the on-board RAID creating device may be implemented by software, hardware, or a combination of software and hardware to form part or all of computer devices, where the on-board RAID creating device may be a server or a terminal, where the server in this embodiment of the present application may be a server or a server cluster formed by multiple servers, and the terminal in this embodiment of the present application may be a smart phone, a personal computer, a tablet computer, a wearable device, and other intelligent hardware devices such as an intelligent robot. In the following method embodiments, the execution subject is a computer device.
In this embodiment, a method for creating an on-board RAID is provided, which may be used in the above-mentioned computer devices, such as a server, a computer, etc., and fig. 1 is a flowchart of the method for creating an on-board RAID provided in the embodiment of the present invention, as shown in fig. 1, where the flowchart includes the following steps:
step S101, obtaining attribute information corresponding to each hard disk in the computer equipment.
Specifically, the computer device may receive attribute information corresponding to each hard disk in the computer device input by the user; the computer equipment can also receive attribute information corresponding to each hard disk in the computer equipment sent by other equipment; the computer equipment can also identify each hard disk in the computer equipment and determine the attribute information corresponding to each hard disk in the computer equipment.
The method for obtaining the attribute information corresponding to each hard disk in the computer device by the computer device is not particularly limited.
In the computer device provided in the embodiment of the present application, as shown in fig. 2, two m.2 system hard disks are connected to a rear backplane, and the rear backplane is connected to the PCH of the motherboard through an SAS-SATA line.
This step will be described in detail below.
Step S102, determining at least two target hard disks for creating the onboard RAID from the hard disks according to the attribute information corresponding to the hard disks.
Specifically, after the computer device obtains the attribute information corresponding to each hard disk, the computer device may determine, from each hard disk, at least two target hard disks for creating an on-board RAID according to the attribute information corresponding to each hard disk.
For example, the computer device may determine, from each hard disk, two target hard disks whose attribute information is ata1 and ata2 according to the attribute information corresponding to each hard disk.
Step S103, using the target tool, creating at least two target hard disks as an on-board RAID.
Specifically, after determining the at least two target hard disks, the computer device may utilize the target tool to convert the at least two target hard disks to an on-board RAID.
This step will be described in detail below.
The method for creating the onboard RAID acquires attribute information corresponding to each hard disk in the computer equipment; 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, and the accuracy of determining at least two target hard disks for creating the onboard RAID from each hard disk is ensured. Then, at least two target hard disks are created as an on-board RAID by using the target tool, so that the on-board RAID is created under the condition that the RAID cannot be realized by the BIOS interface. On one hand, the difficult problem is solved, project development is completed, on the other hand, the operation mode of the factory can be optimized, the manpower input is reduced, the automatic operation process is completed, and the production efficiency of the factory is improved.
In this embodiment, a method for creating an on-board RAID is provided, which may be used in the above-mentioned computer devices, such as a server, a computer, etc., and fig. 3 is a flowchart of the method for creating an on-board RAID provided in the embodiment of the present invention, as shown in fig. 3, where the flowchart includes the following steps:
step S201, obtaining attribute information corresponding to each hard disk in the computer device.
Please refer to step S101 in the embodiment shown in fig. 1 in detail, which is not described herein.
Step S202, determining at least two target hard disks for creating the onboard RAID from the hard disks according to the attribute information corresponding to the hard disks.
Please refer to step S102 in the embodiment shown in fig. 1 in detail, which is not described herein.
Step S203, obtaining a current mode of the sata interface of the BIOS system corresponding to the computer device.
Specifically, the computer device may read the current mode of the sata interface of the BIOS system, so as to obtain the current mode of the sata interface of the BIOS system corresponding to the computer device.
Step S204, the current mode of sSATA interface is modified to the target mode.
In some alternative embodiments, the modifying the current mode of the sata interface to the target mode in step S204 "includes:
in step S2041, under the OS system, the Setup corresponding to the BIOS system is exported to a file by using the scelnx_64 tool.
Specifically, under an OS system, the computer device may export a Setup corresponding to the BIOS system to a file using the scelnx_64 tool.
Step S2042, the current mode of the sata interface is modified from AHCI mode to RAID mode.
In particular, the computer device may modify the current mode of the sata interface from AHCI mode to RAID mode.
In step S2043, the modified Setup corresponding to the BIOS system is written into the BIOS configuration file by using the SCELNX_64 tool.
Specifically, after modifying the current mode of the sata interface from AHCI mode to RAID mode, the computer device may again utilize scelnx_64 tool to write the modified Setup corresponding to the BIOS system to the configuration file of the BIOS.
In step S205, at least two target hard disks are created as on-board RAID using the target tool.
Please refer to step S103 in the embodiment shown in fig. 1 in detail, which is not described herein.
The method for creating the onboard RAID acquires the current mode of the sSATA interface of the BIOS system corresponding to the computer equipment. Then, under the OS system, the Setup corresponding to the BIOS system is exported to a file using the scelnx_64 tool, thereby facilitating modification of the current mode of the sata interface. Then, the current mode of the sSATA interface is modified from the AHCI mode to the RAID mode, and the modified Setup corresponding to the BIOS system is written into the configuration file of the BIOS by using the SCELNX_64 tool. Therefore, the computer equipment can successfully establish the onboard RAID, and no error is reported in the process of establishing the onboard RAID.
In this embodiment, a method for creating an on-board RAID is provided, which may be used in the above-mentioned computer devices, such as a server, a computer, etc., and fig. 4 is a flowchart of the method for creating an on-board RAID provided in the embodiment of the present invention, as shown in fig. 4, where the flowchart includes the following steps:
step S301, obtaining attribute information corresponding to each hard disk in the computer device.
Specifically, the step S301 "obtaining attribute information corresponding to each hard disk in the computer device" may include the following steps:
step S3011, obtaining a hardware topology relationship of the computer device.
Specifically, the computer device may identify hardware corresponding to the computer device, and obtain a hardware topological relation of the computer device; the computer device may also receive a hardware topology of the computer device input by the user; the computer device may also receive the hardware topology of the computer device sent by the other device.
The method for obtaining the hardware topological relation of the computer equipment by the computer equipment is not particularly limited.
Step S3012, under the OS system, according to the hardware topological relation, using the udeveadm tool to read the attribute information corresponding to each hard disk.
Specifically, under the OS system, the computer device may read attribute information corresponding to each hard disk by using the udevadm tool according to the hardware topology relationship.
Exemplary, attribute information may be a system identification number. According to the hardware topological relation of the computer equipment, the computer equipment acquires the udev information corresponding to each hard disk by utilizing a udev adm tool under the system OS, and then identifies the system identification number of the hard disk in advance according to the SATA0/SATA1 interface of the connection PCH of each hard disk. Then, the hard disk with the system identification number of ata1/ata2 is determined as the target hard disk from the respective hard disks according to the system identification number of the hard disk.
Step S302, determining at least two target hard disks for creating the onboard RAID from the hard disks according to the attribute information corresponding to the hard disks.
Please refer to step S202 in the embodiment shown in fig. 3 in detail, which is not described herein.
In step S303, at least two target hard disks are created as on-board RAID using the target tool.
Specifically, the target tool is mdadm tool, and the step S303 "creating at least two target hard disks as on-board RAID using the target tool" may include the following steps:
in step S3031, a target container is created using the mdadm tool.
In particular, the computer device may create a target container using the mdadm tool.
Step S3032, at least two target hard disks are placed in the target container.
Specifically, after the target container is created, the computer device places at least two target hard disks into the target container.
Step S3033, converting at least two target hard disks in the target container into on-board RAID.
Specifically, after placing at least two target hard disks in the target container, the computer device converts at least two target hard disks in the target container to an on-board RAID.
For example, the computer device may first create a target container/dev/d/imsm 0, mdadm-C/dev/md/imsm0/dev/sda/dev/sdb-n 2-e imsm, then convert at least two target hard disks within the target container to on-board RAID, mdadm-C/dev/md126/dev/md/imsm0-n 2-l 1-NVolume0 such that on-board RAID creation named/dev/md 126 begins.
Step S304, the creation process of the on-board RAID is monitored in real time, and the creation progress of the on-board RAID is displayed in real time.
Specifically, the computer device may monitor the creation process of the on-board RAID in real time, and display the creation progress of the on-board RAID in real time.
The method for displaying the creation progress of the on-board RAID in real time by the computer device may be displaying in real time in a progress bar manner, may be displaying in real time in a disc manner, or may be displaying in real time in a percentage manner.
In step S305, when a failure occurs in the on-board RAID creation process, the failure cause is output.
Specifically, when the computer device monitors the creation process of the on-board RAID in real time, the computer device may also monitor whether the creation process of the on-board RAID has a fault in real time. And outputting a fault reason when faults occur in the on-board RAID creation process.
The mode of outputting the failure cause by the computer device may be outputting failure information or controlling the indicator light to flash, and the mode of outputting the failure cause by the computer device is not particularly limited in this embodiment of the present application.
According to the method for creating the on-board RAID, the hardware topological relation of the computer equipment is obtained, and the accuracy of the obtained hardware topological relation of the computer equipment is guaranteed. Under the OS system, according to the hardware topological relation, the attribute information corresponding to each hard disk is read by using the udeveadm tool, so that the accuracy of the read attribute information corresponding to each hard disk is ensured.
In addition, the method for creating the onboard RAID provided by the embodiment of the application creates a target container by using the mdadm tool, so that the accuracy of the created target container is ensured. And placing at least two target hard disks in a target container, and converting the at least two target hard disks in the target container into the onboard RAID. Therefore, the on-board RAID is created under the condition that the RAID cannot be realized by the BIOS interface. On one hand, the difficult problem is solved, project development is completed, on the other hand, the operation mode of the factory can be optimized, the manpower input is reduced, the automatic operation process is completed, and the production efficiency of the factory is improved.
And then, the creation process of the on-board RAID is monitored in real time, the creation progress of the on-board RAID is displayed in real time, the monitoring of the creation process of the on-board RAID is realized, and the user is ensured to acquire the creation progress of the on-board RAID in real time. In addition, when faults occur in the on-board RAID creation process, the fault reasons are output, so that the user can be ensured to acquire the fault reasons, and further, the user can correct the on-board RAID creation process according to the fault reasons.
The embodiment also provides a device for creating an on-board RAID, which is used for implementing the foregoing embodiments and preferred embodiments, and will not be described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The embodiment provides an on-board RAID creation apparatus, as shown in fig. 5, including:
a first obtaining module 401, configured to obtain attribute information corresponding to each hard disk in the computer device;
a determining module 402, configured to determine, from each hard disk, at least two target hard disks for creating an on-board RAID according to attribute information corresponding to each hard disk;
a creating module 403, configured to create at least two target hard disks as an on-board RAID using the target tool.
As shown in fig. 6, in some optional embodiments, the apparatus for creating an on-board RAID further includes:
a second obtaining module 404, configured to obtain a current mode of an sata interface of the BIOS system corresponding to the computer device;
a modifying module 405, configured to modify the current mode of the sata interface to a target mode.
In some alternative embodiments, the current mode of the sata interface is an AHCI mode, the target mode is a RAID mode, and the modifying module 405 includes:
export unit 4051, configured to export Setup corresponding to the BIOS system to a file by using scelnx_64 tool under the OS system;
a modifying unit 4052, configured to modify the current mode of the sata interface from the AHCI mode to the RAID mode;
the writing unit 4053 is configured to write the modified Setup corresponding to the BIOS system into the configuration file of the BIOS by using the scelnx_64 tool.
In some alternative embodiments, the target tool is an mdadm tool, and the creating module 403 includes:
a creation unit 4031 for creating a target container using mdadm tool;
an insertion unit 4032 for inserting at least two target hard disks into the target container;
and the conversion unit 4033 is configured to convert at least two target hard disks in the target container into an on-board RAID.
In some alternative embodiments, the first acquisition module 401 includes:
an acquisition unit 4011 for acquiring a hardware topological relation of the computer equipment;
and the reading unit 4012 is configured to read, under the OS system, attribute information corresponding to each hard disk by using the udevadm tool according to the hardware topological relation.
As shown in fig. 7, in some optional embodiments, the apparatus for creating an on-board RAID further includes:
the monitoring module 406 is configured to monitor the creation process of the on-board RAID in real time, and display the creation progress of the on-board RAID in real time;
and the output module 407 is configured to output a failure reason when a failure occurs in the on-board RAID creation process.
The on-board RAID creation means in this embodiment is presented in the form of functional units, where the units refer to ASIC circuits, processors and memories executing one or more software or fixed programs, and/or other devices that may provide the functionality described above.
Further functional descriptions of the above respective modules and units are the same as those of the above corresponding embodiments, and are not repeated here.
The embodiment of the invention also provides computer equipment, which is provided with the device for creating the onboard RAID shown in the figures 5-7.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a computer device according to an alternative embodiment of the present invention, as shown in fig. 8, the computer device includes: one or more processors 10, memory 20, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are communicatively coupled to each other using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the computer device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In some alternative embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple computer devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 10 is illustrated in fig. 8.
The processor 10 may be a central processor, a network processor, or a combination thereof. The processor 10 may further include a hardware chip, among others. The hardware chip may be an application specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general-purpose array logic, or any combination thereof.
Wherein the memory 20 stores instructions executable by the at least one processor 10 to cause the at least one processor 10 to perform a method for implementing the embodiments described above.
The memory 20 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created from the use of the computer device of the presentation of a sort of applet landing page, and the like. In addition, the memory 20 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, memory 20 may optionally include memory located remotely from processor 10, which may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk, or solid state disk; the memory 20 may also comprise a combination of the above types of memories.
The computer device further comprises input means 30 and output means 40. The processor 10, memory 20, input device 30, and output device 20 may be connected by a bus or other means, for example in fig. 8.
The input device 30 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the computer apparatus, such as a touch screen, a keypad, a mouse, a trackpad, a touchpad, a pointer stick, one or more mouse buttons, a trackball, a joystick, and the like. The output means 40 may include a display device, auxiliary lighting means (e.g., LEDs), tactile feedback means (e.g., vibration motors), and the like. Such display devices include, but are not limited to, liquid crystal displays, light emitting diodes, displays and plasma displays. In some alternative implementations, the display device may be a touch screen.
The embodiments of the present invention also provide a computer readable storage medium, and the method according to the embodiments of the present invention described above may be implemented in hardware, firmware, or as a computer code which may be recorded on a storage medium, or as original stored in a remote storage medium or a non-transitory machine readable storage medium downloaded through a network and to be stored in a local storage medium, so that the method described herein may be stored on such software process on a storage medium using a general purpose computer, a special purpose processor, or programmable or special purpose hardware. The storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, a solid state disk or the like; further, the storage medium may also comprise a combination of memories of the kind described above. It will be appreciated that a computer, processor, microprocessor controller or programmable hardware includes a storage element that can store or receive software or computer code that, when accessed and executed by the computer, processor or hardware, implements the methods illustrated by the above embodiments.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope of the invention as defined by the appended claims.

Claims (10)

1. The method for creating the on-board RAID is characterized by comprising the following steps:
acquiring attribute information corresponding to each hard disk in computer equipment;
determining at least two target hard disks for creating an onboard RAID from each hard disk according to the attribute information corresponding to each hard disk;
and creating at least two target hard disks into an on-board RAID by using a target tool.
2. The method of claim 1, wherein prior to creating at least two of the target hard disks as on-board RAIDs using a target tool, the method further comprises:
acquiring a current mode of an sSATA interface of a BIOS system corresponding to the computer equipment;
and modifying the current mode of the sSATA interface to a target mode.
3. The method of claim 2, wherein the current mode of the sata interface is an AHCI mode, the target mode is a RAID mode, and the modifying the current mode of the sata interface to the target mode comprises:
under an OS system, exporting Setup corresponding to the BIOS system to a file by using an SCELNX_64 tool;
modifying a current mode of the sSATA interface from the AHCI mode to the RAID mode;
and writing the modified Setup corresponding to the BIOS system into the configuration file of the BIOS by using the SCELNX_64 tool.
4. The method of claim 1, wherein the target tool is an mdadm tool, wherein the creating at least two of the target hard disks as on-board RAIDs using the target tool comprises:
creating a target container using said mdadm tool;
placing at least two target hard disks into the target container;
and converting at least two target hard disks in the target container into the onboard RAID.
5. The method according to claim 1, wherein the obtaining attribute information corresponding to each hard disk in the computer device includes:
acquiring a hardware topological relation of the computer equipment;
and under an OS system, according to the hardware topological relation, reading the attribute information corresponding to each hard disk by using a udevidm tool.
6. The method according to claim 1, wherein the method further comprises:
monitoring the creation process of the on-board RAID in real time and displaying the creation progress of the on-board RAID in real time;
and outputting a failure reason when the on-board RAID is in failure in the establishing process.
7. An on-board RAID creation apparatus, wherein the apparatus comprises:
the first acquisition module is used for acquiring attribute information corresponding to each hard disk in the computer equipment;
the determining module is used for determining at least two target hard disks for creating the onboard RAID from the hard disks according to the attribute information corresponding to the hard disks;
and the creating module is used for creating at least two target hard disks into an onboard RAID by using a target tool.
8. The apparatus of claim 7, wherein the means for creating an on-board RAID further comprises:
the second acquisition module is used for acquiring the current mode of the sSATA interface of the BIOS system corresponding to the computer equipment;
and the modification module is used for modifying the current mode of the sSATA interface into a target mode.
9. A computer device, comprising:
a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the method of creating an on-board RAID according to any of claims 1 to 6.
10. A computer-readable storage medium having stored thereon computer instructions for causing a computer to perform the method of creating an on-board RAID according to any of claims 1 to 6.
CN202310416070.4A 2023-04-18 2023-04-18 Method and device for creating on-board RAID, 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 Method and device for creating on-board RAID, 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 Method and device for creating on-board RAID, 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 Method and device for creating on-board RAID, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116339642A (en)

Similar Documents

Publication Publication Date Title
JP7209034B2 (en) Edge computing test method, apparatus, equipment and readable storage medium
CN110780890B (en) System upgrading method, device, electronic equipment and medium
CN107122321B (en) Hardware repair method, hardware repair system, and computer-readable storage device
EP3916560A1 (en) Fault injection method and apparatus, electronic device and storage medium to test microservices in the cloud
CN103365696B (en) BIOS image file acquisition methods and device
US20150026526A1 (en) Techniques for testing enclosure management controller using backplane initiator
US10120702B2 (en) Platform simulation for management controller development projects
US9298371B1 (en) System and method of reducing write cycles and increasing longevity of non-volatile memory in baseboard management controller (BMC)
CN111241111B (en) Data query method and device, data comparison method and device, medium and equipment
CN104461402A (en) Method for adjusting disk sequence among multiple controllers under linux system
EP3859528A2 (en) Method and apparatus for handling memory failure, electronic device and storage medium
WO2011125280A1 (en) Debugging support device, debugging support method and debugging support program
JP2021144674A (en) Processing method for audio processing chip, apparatus, electronic device, computer readable storage medium, and computer program
US20060168479A1 (en) Real time event logging and analysis in a software system
CN116339642A (en) Method and device for creating on-board RAID, computer equipment and storage medium
CN108536586B (en) Information acquisition method, equipment and system of Android mobile terminal
CN101795204A (en) Remote hardware detection system and method
CN112231165B (en) Memory fault simulation method based on link library injection and memory mapping modes
CN111752623A (en) Display configuration method and device, electronic equipment and readable storage medium
CN115729679A (en) Task processing method and device, computer readable storage medium and electronic device
TWI776612B (en) Storage device and operation method thereof
CN104678292A (en) Test method and device for CPLD (Complex Programmable Logic Device)
CN112765018B (en) Instrument and meter debugging system and method
CN104699410A (en) Information processing method and electronic device
CN111340976A (en) Method and device for debugging vehicle module, electronic equipment and computer-readable storage medium

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