CN114253750A - Method, device and equipment for avoiding disorder of hard disk backplane and readable medium - Google Patents

Method, device and equipment for avoiding disorder of hard disk backplane and readable medium Download PDF

Info

Publication number
CN114253750A
CN114253750A CN202111391769.7A CN202111391769A CN114253750A CN 114253750 A CN114253750 A CN 114253750A CN 202111391769 A CN202111391769 A CN 202111391769A CN 114253750 A CN114253750 A CN 114253750A
Authority
CN
China
Prior art keywords
hard disk
firmware
disk backboard
backboard
initialization
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.)
Granted
Application number
CN202111391769.7A
Other languages
Chinese (zh)
Other versions
CN114253750B (en
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 CN202111391769.7A priority Critical patent/CN114253750B/en
Publication of CN114253750A publication Critical patent/CN114253750A/en
Application granted granted Critical
Publication of CN114253750B publication Critical patent/CN114253750B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/004Error avoidance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • 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)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a method, a device, equipment and a readable medium for avoiding disorder of a hard disk backboard, wherein the method comprises the following steps: inquiring the position of a hard disk backboard connected to the RAID card, and setting the identification sequence of the hard disk backboard according to the position of the hard disk backboard; adding a firmware code of an expansion chip of a hard disk backboard into a source code of the expansion chip and setting a condition for initializing the firmware; initializing the firmware of the hard disk backboard in which the first sequence in the identification sequence is located in response to the completion of the electrification of the hard disk backboard; and responding to the completion of the firmware initialization of the hard disk back plate, initializing the firmware of the next hard disk back plate in the identification sequence, and repeating the current step until the firmware initialization of all the hard disk back plates is completed. By using the scheme of the invention, the problem of disorder of the hard disk back plate can be solved, and the time cost and the labor cost can be saved.

Description

Method, device and equipment for avoiding disorder of hard disk backplane and readable medium
Technical Field
The present invention relates to the field of computers, and more particularly, to a method, an apparatus, a device, and a readable medium for avoiding disorder of a hard disk backplane.
Background
If the hard disk backplane of the front window of the server chassis is a hard disk backplane designed by 2 hard disk backplanes with Expander (expansion) chips and is matched with a single RAID card of 8i, a phenomenon that the hard disk sequencing of the backplane 1 and the hard disk of the backplane 2 is opposite occurs probabilistically, once the hard disks are fixed after sequencing is completed under the system, the hard disks cannot be returned, and the correct hard disk sequencing can be conducted only by switching the 2 backplanes in a manual mode and then powering up again, for example: the single 8i RAID card has 2 output ports (ports) which are port 0 and port1 respectively, and is mainly used for providing an uplink bandwidth link for a hard disk backboard with an expander chip, when the expander chip hard disk backboard is supposed to be a hard disk with 12 ports and needs a 24-port hard disk configuration at a front window of a server, 2 hard disk backboard with the expander chip hard disk combination is needed to be added to form a 24-port hard disk, because only a single 8i RAID card is used, the port 0 and the port1 are respectively connected to the same 2 hard disk backboard with the expander chip hard disk, the front window of the server is divided into an upper layer and a lower layer, the port 0 of the 8i RAID card in the system is connected to the hard disk backboard with the expander chip hard disk of the 12 port of the upper layer, the port1 is connected to the hard disk backboard with the expander chip of the 12 port of the lower layer, the hard disk sequence identified under a normal system is the HDDs 0-11 of the upper layer, and the lower layer is the HDDs 12-23. However, the priority order of port 0 and port1 is not set in the design of a single 8i RAID card, but the arrangement order of acquiring the closure ID is obtained according to the RAID card and 2 Expander hard disk backplanes, because port 0 and port1 of the 8i RAID card are connected by 2 backplanes with the same design, if port1 of the RAID card preferentially identifies the 2 nd hard disk backplane and then identifies the 1 st hard disk backplane, the RIAD card and the 2 backplanes complete the establishment of the closure list and record the closure list in the FRU ROM of the RAID, and the hard disk sequence acquired under the OS after each system startup is fixed and cannot be changed.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method, an apparatus, a device, and a readable medium for avoiding disorder of a hard disk backplane.
Based on the above object, an aspect of the embodiments of the present invention provides a method for avoiding disorder of a hard disk backplane, including the following steps:
inquiring the position of a hard disk backboard connected to the RAID card, and setting the identification sequence of the hard disk backboard according to the position of the hard disk backboard;
adding a firmware code of an expansion chip of a hard disk backboard into a source code of the expansion chip and setting a condition for initializing the firmware;
initializing the firmware of the hard disk backboard in which the first sequence in the identification sequence is located in response to the completion of the electrification of the hard disk backboard;
and responding to the completion of the firmware initialization of the hard disk back plate, initializing the firmware of the next hard disk back plate in the identification sequence, and repeating the current step until the firmware initialization of all the hard disk back plates is completed.
According to an embodiment of the present invention, querying the location of the hard disk backplane connected to the RAID card, and setting the identification order of the hard disk backplane according to the location of the hard disk backplane includes:
the BMC inquires the positions of two hard disk backplanes connected to the RAID card through an I2C bus;
and setting the upper hard disk back plate as a first identification sequence, and setting the lower hard disk back plate as a second identification sequence.
According to one embodiment of the invention, adding the firmware code of the hard disk backplane expansion chip into the expansion chip source code and setting the condition for initializing the firmware comprises the following steps:
adding a firmware code of an expansion chip of a hard disk backboard into an expansion chip source code;
and setting the condition of initializing the firmware as that the hard disk backboard is electrified to finish the initialization of the non-executed firmware.
According to an embodiment of the present invention, in response to the hard disk backplane being powered on, initializing the firmware of the hard disk backplane in which the first sequence in the identification sequence is located includes:
responding to the completion of the electrification of the hard disk backboard, and detecting whether the hard disk backboard is in an initialization firmware waiting execution state;
and initializing the firmware on the hard disk backboard in the first identification sequence in response to the hard disk backboard being in the firmware initialization waiting execution state.
In another aspect of the embodiments of the present invention, there is provided a device for avoiding disorder of a hard disk backplane, the device including:
the query module is configured to query the position of a hard disk backboard connected to the RAID card and set the identification sequence of the hard disk backboard according to the position of the hard disk backboard;
the setting module is configured to add a firmware code of the hard disk backboard extension chip into an extension chip source code and set a condition for initializing the firmware;
the first initialization module is configured to initialize the firmware of the hard disk backboard in which the first sequence in the identification sequence is located in response to the completion of the electrification of the hard disk backboard;
and the second initialization module is used for initializing the firmware of the next hard disk backboard in the identification sequence in response to the completion of the initialization of the firmware of the hard disk backboard, and repeating the current step until the initialization of the firmware of all the hard disk backplates is completed.
According to one embodiment of the invention, the query module is further configured to:
the BMC inquires the positions of two hard disk backplanes connected to the RAID card through an I2C bus;
and setting the upper hard disk back plate as a first identification sequence, and setting the lower hard disk back plate as a second identification sequence.
According to one embodiment of the invention, the setup module is further configured to:
adding a firmware code of an expansion chip of a hard disk backboard into an expansion chip source code;
and setting the condition of initializing the firmware as that the hard disk backboard is electrified to finish the initialization of the non-executed firmware.
According to an embodiment of the invention, the first initialization module is further configured to:
responding to the completion of the electrification of the hard disk backboard, and detecting whether the hard disk backboard is in an initialization firmware waiting execution state;
and initializing the firmware on the hard disk backboard in the first identification sequence in response to the hard disk backboard being in the firmware initialization waiting execution state.
In another aspect of an embodiment of the present invention, there is also provided a computer apparatus including:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of any of the methods described above.
In another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium storing a computer program, which when executed by a processor implements the steps of any one of the above-mentioned methods.
The invention has the following beneficial technical effects: according to the method for avoiding disorder of the hard disk back plates, provided by the embodiment of the invention, the positions of the hard disk back plates connected to the RAID card are inquired, and the identification sequence of the hard disk back plates is set according to the positions of the hard disk back plates; adding a firmware code of an expansion chip of a hard disk backboard into a source code of the expansion chip and setting a condition for initializing the firmware; initializing the firmware of the hard disk backboard in which the first sequence in the identification sequence is located in response to the completion of the electrification of the hard disk backboard; the technical scheme that the firmware of the next hard disk backboard in the identification sequence is initialized in response to the completion of the initialization of the firmware of the hard disk backboard, and the current steps are repeated until the initialization of the firmware of all the hard disk backboards is completed can solve the problem of disorder in the identification of the hard disk backboards, and can save time cost and labor cost.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a method for avoiding disorder of a hard disk backplane according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an apparatus for avoiding disorder of a hard disk backplane according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a computer device according to one embodiment of the present invention;
fig. 4 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
In view of the above, a first aspect of the embodiments of the present invention provides an embodiment of a method for avoiding disorder of a hard disk backplane. Fig. 1 shows a schematic flow diagram of the method.
As shown in fig. 1, the method may include the steps of:
s1, inquiring the position of the hard disk backboard connected to the RAID card, and setting the identification sequence of the hard disk backboard according to the position of the hard disk backboard.
S2, adding the firmware code of the hard disk backboard extension chip into the extension chip source code and setting the condition of initializing the firmware.
S3, in response to the completion of the power-on of the hard disk backplane, initializing the firmware of the hard disk backplane in the first sequence in the identification sequence.
S4, in response to the completion of the firmware initialization of the hard disk backplane, initializing the firmware of the next hard disk backplane in the identification sequence, and repeating the current step until the completion of the firmware initialization of all the hard disk backplanes.
When an 8i PCIe RAID card is inserted into a PCIe card slot on a server mainboard, 2 output ports 0 and 1 are provided in total, 2 SAS x4 signal bandwidths can be provided for the uplink interface connection of two 12-port expander hard disk backplanes, the expander chip on the hard disk backplanes expands 12 SAS/SATA hard disks, the disk sequence arranged by the two hard disk backplanes is 0-11 on the upper layer, and 12-23 on the lower layer. The BMC chip communicates with the PCIe RAID card through an I2C bus to read the enclosure list of the RAID, the information is related information of the RIAD card and the Expander chip on the downlink Expander hard disk backplane, the enclosure ID under the Expander chip can be inquired through the information, and the information can be used for distinguishing the disk order of the 1 st or 2 nd Expander hard disk backplane.
The invention is mainly used for the situation that a single 8I RAID card is connected with two Expander hard disk backplanes, and can also be used for the situation that a plurality of RAID cards are connected with more Expander hard disk backplanes, and the invention is mainly explained by the first situation, firstly, the I2C bus of the BMC is connected with the I2C bus on the Expander chips of the two backplanes, so the BMC can inquire the two backplanes through the I2C bus and know which block is connected to the upper layer, which block is connected to the lower layer, FW (firmware) codes (stored in NOR flash) can be modified through Expander SDK software, the FW codes communicated with the Expander chips by the BMC are added into extended chip source codes (Expander source codes), and the operation of initializing the firmware is stopped when the electrification is finished, and the firmware codes can be initialized after the BMC sends an instruction to inform the expanders through the I2C bus. The method includes the steps that after the two hard disk backplanes are powered on under a system, firmware codes in NOR flash are loaded firstly, the modified firmware codes are executed, initialization firmware is executed continuously after an instruction issued by a BMC is received so as to complete a subsequent mechanism of an Expander chip, the BMC can inquire whether the enclosure list of the RAID card and a first backplane complete an identification program, if the enclosure list and the first backplane complete the identification program, the BMC can issue an instruction to inform the Expander chip initialization firmware to the 2 nd hard disk backplane, and the operation can avoid the problem that the 2 backplanes with the same design cannot control the sequence obtained from the RAID card and the Expander chip and can control which RAID card port 0 and port1 is identified preferentially.
By the technical scheme, the problem of disorder of the hard disk back plate can be solved, and time cost and labor cost can be saved.
In a preferred embodiment of the present invention, querying the location of the hard disk backplane connected to the RAID card, and setting the identification order of the hard disk backplane according to the location of the hard disk backplane includes:
the BMC inquires the positions of two hard disk backplanes connected to the RAID card through an I2C bus;
and setting the upper hard disk back plate as a first identification sequence, and setting the lower hard disk back plate as a second identification sequence.
In a preferred embodiment of the present invention, adding the firmware code of the hard disk backplane expansion chip to the expansion chip source code and setting the condition for initializing the firmware includes:
adding a firmware code of an expansion chip of a hard disk backboard into an expansion chip source code;
and setting the condition of initializing the firmware as that the hard disk backboard is electrified to finish the initialization of the non-executed firmware.
The Expander FW settings on the two backplates are stored in NOR flash which is attached and mounted under the Expander chip, firmware can be modified through Expander SDK software to add FW codes communicated by the BMC and the Expander chip into the Expander source code, the operation of executing initialization firmware is stopped when the settings are powered on, and the initialization firmware can be continuously executed after the BMC issues an instruction to inform the Expander through an I2C bus. After the modified Expander FW codes are respectively updated to the NOR flash of the two Expander hard disk backplanes, the Expander hard disk backplanes can load the firmware attached to the NOR flash after the system is powered on every time, and when the two Expander hard disk backplanes are powered on completely, the command issued by the BMC can be waited to be received.
In a preferred embodiment of the present invention, in response to the hard disk backplane being powered on, initializing the firmware of the hard disk backplane in which the first sequence in the identification sequence is located includes:
responding to the completion of the electrification of the hard disk backboard, and detecting whether the hard disk backboard is in an initialization firmware waiting execution state;
and initializing the firmware on the hard disk backboard in the first identification sequence in response to the hard disk backboard being in the firmware initialization waiting execution state.
The invention can solve the problem of probability generation and does not need to be corrected by manual maintenance, and simultaneously saves the operation that whether the sequence of the hard disk is inconsistent with that of the BIOS by entering a Storcli instruction under the OS after the system is installed and configured, thereby not only solving the problem of opposite disk sequences of the hard disk, but also saving a lot of manpower and maintenance time on production test.
It should be noted that, as will be understood by those skilled in the art, all or part of the processes in the methods of the above embodiments may be implemented by instructing relevant hardware through a computer program, and the above programs may be stored in a computer-readable storage medium, and when executed, the programs may include the processes of the embodiments of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the method disclosed according to an embodiment of the present invention may also be implemented as a computer program executed by a CPU, and the computer program may be stored in a computer-readable storage medium. The computer program, when executed by the CPU, performs the above-described functions defined in the method disclosed in the embodiments of the present invention.
In view of the above, according to a second aspect of the embodiments of the present invention, there is provided an apparatus for avoiding disorder of a hard disk backplane, as shown in fig. 2, the apparatus 200 includes:
the query module is configured to query the position of a hard disk backboard connected to the RAID card and set the identification sequence of the hard disk backboard according to the position of the hard disk backboard;
the setting module is configured to add a firmware code of the hard disk backboard extension chip into an extension chip source code and set a condition for initializing the firmware;
the first initialization module is configured to initialize the firmware of the hard disk backboard in which the first sequence in the identification sequence is located in response to the completion of the electrification of the hard disk backboard;
and the second initialization module is used for initializing the firmware of the next hard disk backboard in the identification sequence in response to the completion of the initialization of the firmware of the hard disk backboard, and repeating the current step until the initialization of the firmware of all the hard disk backplates is completed.
In a preferred embodiment of the present invention, the query module is further configured to:
the BMC inquires the positions of two hard disk backplanes connected to the RAID card through an I2C bus;
and setting the upper hard disk back plate as a first identification sequence, and setting the lower hard disk back plate as a second identification sequence.
In a preferred embodiment of the present invention, the setup module is further configured to:
adding a firmware code of an expansion chip of a hard disk backboard into an expansion chip source code;
and setting the condition of initializing the firmware as that the hard disk backboard is electrified to finish the initialization of the non-executed firmware.
In a preferred embodiment of the present invention, the first initialization module is further configured to:
responding to the completion of the electrification of the hard disk backboard, and detecting whether the hard disk backboard is in an initialization firmware waiting execution state;
and initializing the firmware on the hard disk backboard in the first identification sequence in response to the hard disk backboard being in the firmware initialization waiting execution state.
In view of the above object, a third aspect of the embodiments of the present invention provides a computer device. Fig. 3 is a schematic diagram of an embodiment of a computer device provided by the present invention. As shown in fig. 3, an embodiment of the present invention includes the following means: at least one processor 21; and a memory 22, the memory 22 storing computer instructions 23 executable on the processor, the instructions when executed by the processor implementing the method of:
inquiring the position of a hard disk backboard connected to the RAID card, and setting the identification sequence of the hard disk backboard according to the position of the hard disk backboard;
adding a firmware code of an expansion chip of a hard disk backboard into a source code of the expansion chip and setting a condition for initializing the firmware;
initializing the firmware of the hard disk backboard in which the first sequence in the identification sequence is located in response to the completion of the electrification of the hard disk backboard;
and responding to the completion of the firmware initialization of the hard disk back plate, initializing the firmware of the next hard disk back plate in the identification sequence, and repeating the current step until the firmware initialization of all the hard disk back plates is completed.
In a preferred embodiment of the present invention, querying the location of the hard disk backplane connected to the RAID card, and setting the identification order of the hard disk backplane according to the location of the hard disk backplane includes:
the BMC inquires the positions of two hard disk backplanes connected to the RAID card through an I2C bus;
and setting the upper hard disk back plate as a first identification sequence, and setting the lower hard disk back plate as a second identification sequence.
In a preferred embodiment of the present invention, adding the firmware code of the hard disk backplane expansion chip to the expansion chip source code and setting the condition for initializing the firmware includes:
adding a firmware code of an expansion chip of a hard disk backboard into an expansion chip source code;
and setting the condition of initializing the firmware as that the hard disk backboard is electrified to finish the initialization of the non-executed firmware.
In a preferred embodiment of the present invention, in response to the hard disk backplane being powered on, initializing the firmware of the hard disk backplane in which the first sequence in the identification sequence is located includes:
responding to the completion of the electrification of the hard disk backboard, and detecting whether the hard disk backboard is in an initialization firmware waiting execution state;
and initializing the firmware on the hard disk backboard in the first identification sequence in response to the hard disk backboard being in the firmware initialization waiting execution state.
In view of the above object, a fourth aspect of the embodiments of the present invention proposes a computer-readable storage medium. FIG. 4 is a schematic diagram illustrating an embodiment of a computer-readable storage medium provided by the present invention. As shown in fig. 4, the computer-readable storage medium 31 stores a computer program 32 that, when executed by a processor, performs the method of:
inquiring the position of a hard disk backboard connected to the RAID card, and setting the identification sequence of the hard disk backboard according to the position of the hard disk backboard;
adding a firmware code of an expansion chip of a hard disk backboard into a source code of the expansion chip and setting a condition for initializing the firmware;
initializing the firmware of the hard disk backboard in which the first sequence in the identification sequence is located in response to the completion of the electrification of the hard disk backboard;
and responding to the completion of the firmware initialization of the hard disk back plate, initializing the firmware of the next hard disk back plate in the identification sequence, and repeating the current step until the firmware initialization of all the hard disk back plates is completed.
In a preferred embodiment of the present invention, querying the location of the hard disk backplane connected to the RAID card, and setting the identification order of the hard disk backplane according to the location of the hard disk backplane includes:
the BMC inquires the positions of two hard disk backplanes connected to the RAID card through an I2C bus;
and setting the upper hard disk back plate as a first identification sequence, and setting the lower hard disk back plate as a second identification sequence.
In a preferred embodiment of the present invention, adding the firmware code of the hard disk backplane expansion chip to the expansion chip source code and setting the condition for initializing the firmware includes:
adding a firmware code of an expansion chip of a hard disk backboard into an expansion chip source code;
and setting the condition of initializing the firmware as that the hard disk backboard is electrified to finish the initialization of the non-executed firmware.
In a preferred embodiment of the present invention, in response to the hard disk backplane being powered on, initializing the firmware of the hard disk backplane in which the first sequence in the identification sequence is located includes:
responding to the completion of the electrification of the hard disk backboard, and detecting whether the hard disk backboard is in an initialization firmware waiting execution state;
and initializing the firmware on the hard disk backboard in the first identification sequence in response to the hard disk backboard being in the firmware initialization waiting execution state.
Furthermore, the methods disclosed according to embodiments of the present invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. Which when executed by a processor performs the above-described functions defined in the methods disclosed in embodiments of the invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method for avoiding disorder of a hard disk backboard is characterized by comprising the following steps:
inquiring the position of a hard disk backboard connected to the RAID card, and setting the identification sequence of the hard disk backboard according to the position of the hard disk backboard;
adding a firmware code of an expansion chip of a hard disk backboard into a source code of the expansion chip and setting a condition for initializing the firmware;
initializing the firmware of the hard disk backboard in which the first sequence in the identification sequence is located in response to the completion of the electrification of the hard disk backboard;
and initializing the firmware of the next hard disk back plate in the identification sequence in response to the completion of the initialization of the firmware of the hard disk back plates, and repeating the current step until the initialization of the firmware of all the hard disk back plates is completed.
2. The method of claim 1, wherein querying the location of the hard disk backplane connected to the RAID card and setting the identification order of the hard disk backplane according to the location of the hard disk backplane comprises:
the BMC inquires the positions of two hard disk backplanes connected to the RAID card through an I2C bus;
and setting the upper hard disk back plate as a first identification sequence, and setting the lower hard disk back plate as a second identification sequence.
3. The method of claim 1, wherein adding firmware code of the hard disk backplane expansion chip to the expansion chip source code and setting conditions for initializing the firmware comprises:
adding a firmware code of an expansion chip of a hard disk backboard into an expansion chip source code;
and setting the condition of initializing the firmware as that the hard disk backboard is electrified to finish the initialization of the non-executed firmware.
4. The method of claim 2, wherein initializing the firmware of the hard disk backplane in the first sequence in the identification sequence in response to the hard disk backplane being powered on comprises:
responding to the completion of the electrification of the hard disk backboard, and detecting whether the hard disk backboard is in an initialization firmware waiting execution state;
and initializing the firmware on the hard disk backboard in the first identification sequence in response to the hard disk backboard being in an initialization firmware waiting execution state.
5. An apparatus for avoiding disorder of a hard disk backplane, the apparatus comprising:
the query module is configured to query the position of a hard disk backboard connected to the RAID card and set the identification sequence of the hard disk backboard according to the position of the hard disk backboard;
the setting module is configured to add a firmware code of the hard disk backboard extension chip into an extension chip source code and set a condition for initializing the firmware;
the first initialization module is configured to initialize the firmware of the hard disk backboard in which the first sequence in the identification sequence is located in response to the completion of the electrification of the hard disk backboard;
and the second initialization module initializes the firmware of the next hard disk backboard in the identification sequence in response to the completion of the initialization of the firmware of the hard disk backboard, and repeats the current step until the initialization of the firmware of all the hard disk backplates is completed.
6. The apparatus of claim 5, wherein the query module is further configured to:
the BMC inquires the positions of two hard disk backplanes connected to the RAID card through an I2C bus;
and setting the upper hard disk back plate as a first identification sequence, and setting the lower hard disk back plate as a second identification sequence.
7. The apparatus of claim 5, wherein the setup module is further configured to:
adding a firmware code of an expansion chip of a hard disk backboard into an expansion chip source code;
and setting the condition of initializing the firmware as that the hard disk backboard is electrified to finish the initialization of the non-executed firmware.
8. The apparatus of claim 6, wherein the first initialization module is further configured to:
responding to the completion of the electrification of the hard disk backboard, and detecting whether the hard disk backboard is in an initialization firmware waiting execution state;
and initializing the firmware on the hard disk backboard in the first identification sequence in response to the hard disk backboard being in an initialization firmware waiting execution state.
9. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method of any one of claims 1 to 4.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN202111391769.7A 2021-11-19 2021-11-19 Method, device, equipment and readable medium for avoiding disorder of hard disk backboard Active CN114253750B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111391769.7A CN114253750B (en) 2021-11-19 2021-11-19 Method, device, equipment and readable medium for avoiding disorder of hard disk backboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111391769.7A CN114253750B (en) 2021-11-19 2021-11-19 Method, device, equipment and readable medium for avoiding disorder of hard disk backboard

Publications (2)

Publication Number Publication Date
CN114253750A true CN114253750A (en) 2022-03-29
CN114253750B CN114253750B (en) 2024-01-09

Family

ID=80791044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111391769.7A Active CN114253750B (en) 2021-11-19 2021-11-19 Method, device, equipment and readable medium for avoiding disorder of hard disk backboard

Country Status (1)

Country Link
CN (1) CN114253750B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192195A (en) * 2006-11-22 2008-06-04 北京华旗资讯数码科技有限公司 Packet management method for electronic hard disk memory space
CN106815154A (en) * 2017-01-16 2017-06-09 联想(北京)有限公司 A kind of method and device of the mark for recognizing hard disk
CN109446000A (en) * 2018-10-08 2019-03-08 郑州云海信息技术有限公司 The recognition methods of hard disk sequence, device, terminal and storage medium under more hard disk backboards
CN113360437A (en) * 2021-04-21 2021-09-07 山东英信计算机技术有限公司 Disk sequence adjusting device, method, equipment and storage medium of hard disk

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192195A (en) * 2006-11-22 2008-06-04 北京华旗资讯数码科技有限公司 Packet management method for electronic hard disk memory space
CN106815154A (en) * 2017-01-16 2017-06-09 联想(北京)有限公司 A kind of method and device of the mark for recognizing hard disk
CN109446000A (en) * 2018-10-08 2019-03-08 郑州云海信息技术有限公司 The recognition methods of hard disk sequence, device, terminal and storage medium under more hard disk backboards
CN113360437A (en) * 2021-04-21 2021-09-07 山东英信计算机技术有限公司 Disk sequence adjusting device, method, equipment and storage medium of hard disk

Also Published As

Publication number Publication date
CN114253750B (en) 2024-01-09

Similar Documents

Publication Publication Date Title
US9734093B2 (en) Management of secured storage devices in an information handling system
US10860425B2 (en) Method for recovering basic input/output system image file of a computer system and the computer system
CN110502462B (en) OCP adapter card and server
US10146550B2 (en) System and method to remotely detect and report bootable physical disk location
CN105814541A (en) Computer device and memory starting method for computer device
CN110806964B (en) Method and equipment for lighting hard disk and storage medium
US10324888B2 (en) Verifying a communication bus connection to a peripheral device
US20120272033A1 (en) System and Method for Managing Space Allocation within a File System
US10853213B2 (en) Validation of installation of removeable computer hardware components
CN114143194A (en) Method, device, equipment and medium for initializing intelligent network card by server
CN113010215B (en) Method, device and equipment for quickly restarting operating system and readable medium
CN110708489A (en) Communication method, communication device, electronic device and storage medium
CN111309553B (en) Method, system, equipment and medium for monitoring storage Jbod
CN114253750A (en) Method, device and equipment for avoiding disorder of hard disk backplane and readable medium
TWI468931B (en) Disc allocation method and electronic apparatus
CN110618828A (en) Data updating method and device
CN111090539A (en) Dual-flash-memory self-repairing method and device based on CPLD
US20110010436A1 (en) Configuration-information setting method and information processing device
CN115543750A (en) Method, device, equipment and medium for asset information function processing of PCIE (peripheral component interface express) equipment
CN113741985A (en) Method, device and equipment for cold start of system after BIOS (basic input output System) upgrade and readable medium
US20190087376A1 (en) Hot-plugged pcie device configuration system
CN111309521B (en) FPGA reloading method, FPGA card type equipment and host
CN102082715A (en) Testing method of network interface card reset
CN113609037A (en) GPIO module verification method, device and equipment based on UVM and readable medium
US10489334B2 (en) Server system and method for detecting transmission mode of server system

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
GR01 Patent grant
GR01 Patent grant