CN116009785A - Hard disk management method and computing device - Google Patents

Hard disk management method and computing device Download PDF

Info

Publication number
CN116009785A
CN116009785A CN202211730164.0A CN202211730164A CN116009785A CN 116009785 A CN116009785 A CN 116009785A CN 202211730164 A CN202211730164 A CN 202211730164A CN 116009785 A CN116009785 A CN 116009785A
Authority
CN
China
Prior art keywords
hard disk
slot
raid card
subgroup
control chip
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
CN202211730164.0A
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.)
XFusion Digital Technologies Co Ltd
Original Assignee
XFusion Digital Technologies 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 XFusion Digital Technologies Co Ltd filed Critical XFusion Digital Technologies Co Ltd
Priority to CN202211730164.0A priority Critical patent/CN116009785A/en
Publication of CN116009785A publication Critical patent/CN116009785A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application provides a hard disk management method, which comprises the following steps: based on the subgroup number sequence, the control chip issues a lighting command to one of the subgroup numbered hard disks through the RAID card so as to light the hard disk positioning lamp corresponding to the hard disk, wherein the subgroup number sequence is the number of the RAID card for all the hard disks connected in the slots connected with the RAID card in advance; the method comprises the steps of obtaining slot position numbers of a lighted hard disk positioning lamp, wherein the slot position numbers are sequencing numbers which are uniformly performed on all slot positions on a hard disk backboard in advance by a control chip; and recording the corresponding relation between the hard disk and the subgroup number and the slot number. When the data of the hard disk is read in error, the BMC can be used for reading the position of the part with the error caused by the corresponding relation between the recorded hard disk and the subgroup number and the slot number.

Description

Hard disk management method and computing device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method for managing a hard disk and a computing device.
Background
The mass storage server generally comprises a plurality of hard disk back plates and a plurality of hard disks, wherein each hard disk is inserted into a slot on the hard disk back plate, and the hard disk back plate is connected with the main board through a back plate signal wire and a serial connection small computer system interface cable, so that a hard disk-to-main board communication link is formed. A baseboard management controller (baseboard manager controller, BMC) on the motherboard manages hard disk information over this link. To more effectively use the hard disk, the server typically also uses redundant array of disk (redundant arrays of independent disks, RAID) cards to array the hard disk. After the RAID card is applied, the SAS cable on the hard disk backplane is no longer directly connected to the motherboard, but is connected to the RAID card SAS interface, and the high-speed serial computer expansion bus standard (peripheral component interconnect express, PCIE) slot of the RAID card inserted on the motherboard may communicate with the BMC through a PCIE bus (or two-line serial (inter-integrated circuit, I2C) bus) to form a communication link from the hard disk to the hard disk backplane to the RAID card to the BMC. Typically, the hard disk, hard disk backplane, and RAID card connections are fixed. However, in reality, due to the requirement of service change, part of the hard disk on the hard disk backboard is changed from being connected to the RAID card to being connected to the SAS interface on the motherboard, so that the direct connection hard disk is changed, or a new RAID card is updated, so that the connection relation between the hard disk, the hard disk backboard and the RAID card is changed. The change of the connection mode does not affect the use of the RAID card, but the BMC cannot identify the connection relation of the hard disk, the hard disk backboard and the RAID card, and after the BMC acquires the hard disk data, the BMC cannot quickly locate the part causing the problem.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present application provide a method, an apparatus, an electronic device, a computer storage medium, and a product containing a computer program for hard disk management, which can quickly locate a component with a problem after a BMC acquires hard disk data.
In a first aspect, an embodiment of the present application provides a method for managing a hard disk, which is applied to a server, where the server includes a motherboard, a hard disk backboard, and a redundant disk array RAID card, where the hard disk backboard is used to mount a plurality of hard disks, and a plurality of slots are provided on the hard disk backboard, where the slots include a first type slot and a second type slot, and the first type slot is in communication with a control chip on the motherboard through the RAID card; the second class of slots are directly communicated with a control chip on the main board; the method comprises the following steps: based on the subgroup number sequence, the control chip issues a lighting command to one of the subgroup number hard disks through the RAID card so as to light the hard disk positioning lamp corresponding to the hard disk, wherein the subgroup number sequence is the number of the RAID card for all the hard disks connected with the first type of slot positions in advance; the method comprises the steps of obtaining slot numbers of a lighted hard disk positioning lamp, wherein the slot numbers are sequencing numbers which are uniformly carried out on first type slots and second type slots in advance by a control chip; and recording the corresponding relation between the hard disk and the subgroup number and the slot number.
In this way, the control chip sends a lighting command to the hard disk connected with the RAID card so as to light the hard disk positioning lamp corresponding to the hard disk, and after the hard disk positioning lamp is lighted, a corresponding relationship can be established between the hard disk and the subgroup number corresponding to the hard disk and the slot number of the slot where the hard disk is located. Therefore, the hard disk can be quickly positioned at the position where the hard disk with the problem is located when the hard disk fails.
As a possible implementation manner, in a case that there are a plurality of RAID cards, each RAID card is connected to the hard disk back plate and the control chip, and each RAID card is connected to at least one slot on the hard disk back plate, the method further includes: each RAID card is connected with a hard disk in a group of first type slots, and each RAID card independently performs subgroup coding on the hard disk in the first type slots connected with the RAID card.
Therefore, under the condition that a plurality of RAID cards are provided, each RAID card can independently number the hard disk connected with the RAID card, namely, each RAID card can manage the hard disk connected with the RAID card, so that all numbering tasks can be prevented from being completed by the control chip, the task amount of the control chip can be reduced, and the working efficiency of the control chip is improved.
As a possible implementation manner, before the control chip issues a lighting command to the hard disk with one subgroup number through the RAID card, the method further includes: the control chip obtains the subgroup number sequence from the RAID card.
As a possible implementation manner, before obtaining the slot number of the lighted hard disk positioning lamp, the method further includes: the control chip acquires slot position information of each slot position on the hard disk backboard; based on the slot information, the control chip uniformly distributes a slot number for each slot.
Therefore, the control chip can uniformly number all the slots on the hard disk backboard, and can clearly know which slot is when the control chip manages the slots of the hard disk backboard.
As a possible implementation manner, in the case that the number of the hard disk back plates is multiple, the slot numbers corresponding to the slots on each hard disk back plate are different.
Therefore, when the control chip carries out unified numbering on the slots on the hard disk backboard, the serial numbers of the slots are ensured to be different. The corresponding relation between the hard disk, the subgroup number and the slot number is ensured to be established, and the conflict possibly caused by the same slot number is reduced.
As one possible implementation manner, the number of the slots on the plurality of hard disk back plates is sequentially arranged.
As a possible implementation manner, the method further includes: when any slot in the first type of slot is inserted into the hard disk, the RAID card sends an inquiry signal to the hard disk in any slot, and the inquiry signal is used for inquiring whether the connection to the hard disk in any slot is successful or not; when the RAID card receives a confirmation signal returned by the hard disk in any slot, the RAID card allocates a subgroup number for the hard disk in any slot; the control chip records the corresponding relation between the hard disk in any slot position and the subgroup number and the slot position number.
Therefore, when a hard disk is newly connected to the hard disk backboard, the hard disk is connected with the BMC through the RAID card, and the BMC can establish the corresponding relation of the hard disk, the subgroup number and the slot number for the hard disk. So that the hard disk can be quickly located when the hard disk is problematic.
As a possible implementation manner, the method further includes: when the hard disk in any slot in the first type of slot is pulled out, the RAID card deletes the subgroup number of the hard disk in any slot recorded by the RAID card; the control chip deletes the corresponding relation between the hard disk and the subgroup number in any slot position recorded by the control chip.
Thus, when the hard disk connected to the RAID card is pulled out, the RAID card can delete the recorded subgroup number of the hard disk. Therefore, when a new hard disk is inserted into the slot position of the hard disk, a corresponding relation can be established for the new hard disk.
As a possible implementation manner, the method further includes: when the second class slot is switched to the first class slot, the RAID card sends an inquiry signal to the target hard disk, and the inquiry signal is used for inquiring whether the connection is successful or not to the target hard disk; the target hard disk is a hard disk connected with the second class of slots; when the RAID card receives a confirmation signal returned by the target hard disk, the RAID card allocates a subgroup number for the target hard disk; the control chip records the corresponding relation between the target hard disk and the subgroup number and the slot number.
In this way, when the hard disk is changed to be connected to the control chip by the RAID card by the direct connection to the control chip, the management method of the hard disk can be changed to the management of the hard disk by the RAID card by the control chip.
As a possible implementation manner, the method further includes: when the first class slot is switched to the second class slot, deleting the subgroup number of the target hard disk recorded by the RAID card; the control chip deletes the corresponding relation between the target hard disk and the subgroup number and the slot number recorded by the control chip.
In this way, the manner in which the hard disk is connected to the control chip through the RAID card is changed to the manner in which the hard disk is directly connected to the control chip, and the management of the hard disk by the RAID card can be changed to the management by the control chip. Thus, the control chip can delete the corresponding relation between the hard disk and the subgroup number and the slot number.
As one possible implementation, the control chip and the RAID card exchange data with each other through a high-speed serial computer expansion bus or a two-row serial bus.
In a second aspect, an embodiment of the present application provides a device for managing a hard disk, disposed on a server, where the server includes a motherboard, a hard disk backboard, and a redundant disk array RAID card, where the hard disk backboard is used to mount a plurality of hard disks, and a plurality of slots are provided on the hard disk backboard, where the slots include a first type slot and a second type slot, and the first type slot is in communication with a control chip on the motherboard through the RAID card; the second class of slots are directly communicated with a control chip on the main board; the device comprises: the transmitting module is used for transmitting a lighting command to the hard disk with one subgroup number through the RAID card based on the subgroup number sequence to light the hard disk positioning lamp corresponding to the hard disk, wherein the subgroup number sequence is the number of the hard disk connected with all the first class slots in advance by the RAID card; the processing module is used for acquiring the slot position numbers of the lighted hard disk positioning lamp, wherein the slot position numbers are the sequence numbers of the first type slot positions and the second type slot positions which are uniformly processed by the control chip in advance; the processing module is also used for recording the corresponding relation between the hard disk and the subgroup number and the slot number.
As a possible implementation manner, in the case that the RAID cards are multiple, each RAID card is connected to the hard disk back plate and the control chip, each RAID card is connected to at least one slot on the hard disk back plate, and the processing module is further configured to: each RAID card is connected with a hard disk in a group of first type slots, and each RAID card independently performs subgroup coding on the hard disk in the first type slots connected with the RAID card.
As a possible implementation manner, before the control chip issues the lighting command to the hard disk with one subgroup number through the RAID card, the processing module is further configured to: the control chip is caused to obtain a subgroup number sequence from the RAID card.
As a possible implementation manner, the processing module is further configured to: before the slot position numbers of the lighted hard disk positioning lamps are obtained, the control chip obtains the slot position information of each slot position on the hard disk backboard; based on the slot information, the control chip uniformly distributes a slot number for each slot.
As a possible implementation manner, the processing module is further configured to: when any slot in the first type of slot is inserted into the hard disk, the RAID card sends an inquiry signal to the hard disk in any slot, and the inquiry signal is used for inquiring whether the connection to the hard disk in any slot is successful or not; when the RAID card receives a confirmation signal returned by the hard disk in any slot, the RAID card allocates a subgroup number for the hard disk in any slot; the control chip records the corresponding relation between the hard disk in any slot position and the subgroup number and the slot position number.
As a possible implementation manner, the processing module is further configured to: when the hard disk in any slot in the first type of slot is pulled out, the RAID card deletes the subgroup number of the hard disk in any slot recorded by the RAID card; the control chip deletes the corresponding relation between the hard disk and the subgroup number in any slot position recorded by the control chip.
As a possible implementation manner, the processing module is further configured to: when the second class slot is switched to the first class slot, the RAID card sends an inquiry signal to the target hard disk, and the inquiry signal is used for inquiring whether the connection is successful or not to the target hard disk; the target hard disk is a hard disk connected with the second class of slots; when the RAID card receives a confirmation signal returned by the target hard disk, the RAID card allocates a subgroup number for the target hard disk; the control chip records the corresponding relation between the target hard disk and the subgroup number and the slot number.
As a possible implementation manner, the processing module is further configured to: when the first class slot is switched to the second class slot, deleting the subgroup number of the target hard disk recorded by the RAID card; the control chip deletes the corresponding relation between the target hard disk and the subgroup number and the slot number recorded by the control chip.
In a third aspect, embodiments of the present application provide a computer-readable storage medium comprising computer-readable instructions which, when read and executed by a computer, cause the computer to perform the method of any one of the first aspects.
In a fourth aspect, embodiments of the present application provide a computing device comprising a processor and a memory, wherein the memory has stored therein computer program instructions that, when executed by the processor, perform the method of any of the first aspects.
In a fifth aspect, embodiments of the present application provide a product comprising a computer program which, when run on a processor, causes the processor to perform the method according to any of the first aspects.
It will be appreciated that the advantages of the second to fifth aspects may be found in the relevant description of the first aspect, and are not described here again.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a computing device provided in an embodiment of the present application;
Fig. 2 is a schematic flow chart of a method for managing a hard disk according to an embodiment of the present application;
fig. 3 is a schematic diagram of a connection relationship between a BMC, a RAID card and a hard disk back plate on a motherboard according to the embodiment of the present disclosure;
FIG. 4 is a schematic diagram of an apparatus for hard disk management according to an embodiment of the present application;
fig. 5 is a schematic diagram of a computing device provided in an embodiment of the present application.
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.
The term "and/or" herein is an association relationship describing an associated object, and means that there may be three relationships, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. The symbol "/" herein indicates that the associated object is or is a relationship, e.g., A/B indicates A or B.
The terms "first" and "second" and the like in the description and in the claims are used for distinguishing between different objects and not for describing a particular sequential order of objects. For example, the first response message and the second response message, etc. are used to distinguish between different response messages, and are not used to describe a particular order of response messages.
In the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as examples, illustrations, or descriptions. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the description of the embodiments of the present application, unless otherwise specified, the meaning of "a plurality of" means two or more, for example, a plurality of processing units means two or more processing units and the like; the plurality of elements means two or more elements and the like.
For the purpose of facilitating an understanding of the embodiments of the present application, reference will now be made to the following description of specific embodiments, taken in conjunction with the accompanying drawings, which are not intended to limit the embodiments of the invention.
First, technical terms involved in the embodiments of the present application will be described:
1. the hard disk backboard is a circuit board for a computing device to access more hard disks, is generally used in the field of servers, and is also used for building a personal storage system. The hard disk backboard is directly connected with the main board or various adapter cards through cables, the connectable hard disks on each backboard are different, the backboard is generally classified according to different types of data interfaces, and pure serial advanced technology attachment (serial advanced technology attachment, SATA) backboard, 6G backboard (such as SFF-8087) and 12G (such as SFF-8643) backboard are commonly classified.
2. The baseboard management controller (baseboard manager controller, BMC) is a control unit for implementing baseboard management, and may include, for example, monitoring the temperature, voltage, fans, power supply, etc. of the system, and performing corresponding adjustment work to ensure the operation and health of the system. The BMC begins to run when the device is powered up.
3. Redundant array of independent disks (redundant arrays of independent disks, RAID) are combined into a disk group with huge capacity, and the addition effect generated by providing data by individual disks is utilized to improve the efficiency of the whole disk system. With this technique, data is cut into a number of sections, which are stored on individual hard disks.
4. The high-speed serial computer expansion bus standard (peripheral component interconnect express, PCIE) bus is a high-speed serial point-to-point dual-channel high-bandwidth transmission, and the connected equipment allocates the bandwidth of a single channel, does not share the bandwidth of the bus and mainly supports the functions of active power management, error reporting, end-to-end reliability transmission, hot plug, quality of service (quality of service, QOS) and the like.
5. The small computer system interface (small computer system interface, SCSI) standard is an independent processor standard for system level interfaces between computers and their peripherals (hard disk, floppy drive, optical drive, printer, scanner, etc.).
6. Serial Attached SCSI (SAS), a Serial Attached SCSI (Serial Attached SCSI) interface, is a Serial technology that is adopted to obtain higher transmission speed, and the internal space can be improved by shortening the connection line.
7. A complex programmable logic device (complex programming logic device, CPLD) is composed of three parts, namely a logic block, a programmable interconnect channel and an Input Output (IO) block. A CPLD is a digital integrated circuit in which a user constructs logic functions by himself as required. The method is characterized in that a corresponding target file is generated by means of an integrated development software platform through methods such as a schematic diagram, a hardware description language and the like, and a designed digital system is realized by transmitting codes to a target chip.
Next, the technical solution provided in the embodiments of the present application will be described.
By way of example, FIG. 1 illustrates a schematic diagram of a computing device. As shown in fig. 1, a motherboard 100, a raid card 102, and a hard disk backplane 103 are included within a computing device. A control chip 101 may be disposed on the motherboard 100, and the control chip 101 may be a BMC101, for example. Wherein, the hard disk backplane 103 and the RAID card 102 may be one or more. The computing device may be a server, for example.
Wherein, at least one slot 1031 is disposed on each hard disk back plate 103. Each slot 1031 may be used in connection with one hard disk 200. For example, the hard disk 200 may be inserted into the slot 1031. A hard disk positioning lamp (not shown in the figure) for positioning the hard disk 200 may be disposed on each slot 1031, and when a hard disk 200 is inserted into a certain slot 1031, the hard disk 200 may light up, extinguish, flash, or change the color of the hard disk positioning lamp on the slot, for example, when the hard disk normally transmits data, the hard disk positioning lamp may always light up a green light, and when the hard disk fails, the hard disk positioning lamp may always light up a yellow light or flash a yellow light. When the hard disk 200 is not inserted into a certain slot 1031, the hard disk positioning lamp is turned on and turned off.
At least one SAS interface 1032 is provided on each hard disk back plate 103. One SAS interface 1032 on each hard disk backplane 103 may be used to connect with one RAID card 102, thereby enabling connection between the hard disk backplane 103 and the RAID card 102. The SAS interface 1032 connected to the RAID card 102 may be connected to each slot 1031 on the hard disk back plate 103 to which the SAS interface belongs. Specifically, SAS interface 1032 may include a plurality of subinterfaces, each subinterface coupled to one slot 1031. It should be appreciated that a SAS interface (not shown) is also provided on the RAID card 102 so that it may be connected to the hard disk back plane via a SAS cable.
In some embodiments, the hard disk backplane may also be directly connected to the BMC101 through the SAS interface 1032, but when the hard disk backplane is directly connected to the BMC101, the BMC may obtain whether the hard disk is in place or not and whether the hard disk has a problem through the CPLD1033 on the hard disk backplane.
A CPLD1033 may be provided on each disk back plate 103. For the CPLD1033 on a certain hard disk back plane 103, the CPLD1033 may read the state information of the hard disk 200 after the hard disk 200 is inserted into the hard disk back plane 103 to which the CPLD1033 belongs. For example, the status information of the hard disk 200 may include whether the hard disk 200 is inserted in a slot, and the status of a hard disk positioning lamp (e.g., whether the hard disk positioning lamp is lit, blinks, whether the color is changed, etc.). In addition, the CPLD1033 may also obtain the slot numbers of the slots 1031 on the hard disk back plate 103 to which the CPLD belongs, and different slot numbers may be used to distinguish different slots. Furthermore, CPLD1033 may be coupled to BMC101, for example, via an integrated circuit bus (inter-integrated circuit, I2C). After a certain CPLD1033 obtains the status information of the hard disk positioning lamps corresponding to the hard disk inserted into the slots on the hard disk backboard 103 to which the CPLD1033 belongs, the BMC101 may obtain the status information of the hard disk positioning lamps of each hard disk 200 connected to the hard disk backboard to which the CPLD1033 belongs from the CPLD1033, and the slot numbers of each slot on the hard disk backboard to which the CPLD1033 belongs.
Each RAID card 102 may send a signal for inquiring whether the hard disk is successfully connected to the hard disk 200 inserted into the slot of the hard disk backplane 103 connected thereto after it establishes a connection with the corresponding hard disk backplane 103. When a connection of a hard disk 200 is successful, the hard disk 200 may return a signal of the successful connection to the corresponding RAID card 102 through the slot into which it is inserted. In this way, the RAID card 102 can acquire information on whether or not the hard disk 200 inserted into the slot of the hard disk back plate 103 connected thereto is successfully connected. In addition, the RAID card may obtain some parameters of the hard disk, for example, capacity of the hard disk, firmware state of the hard disk, temperature of the hard disk, and the like, access time of the hard disk, and the like.
In addition, each RAID card 102 may be connected to the BMC101. For example, the two may be connected by PCIE bus or I2C bus. When the RAID card 102 is connected to the BMC101, the BMC101 may issue a command to the hard disk 200 inserted on the hard disk backplane 103 through the RAID card 102, for example, the BMC101 may control the hard disk 200 to light up a hard disk positioning lamp in a slot position.
In the current scenario, the connection relationship between the hard disk 200, the hard disk backplane 103 and the RAID card 102 is fixed, and when the BMC101 obtains the data of the hard disk 200, the data may sequentially reach the BMC101 via the hard disk 200, the hard disk backplane 103 and the RAID card 102. This fixed connection is recorded in the chip of the BMC101. When the BMC101 obtains that the data transmission of the hard disk 200 is problematic, fault diagnosis can be performed on the components of the whole data link according to the connection relationship recorded in the BMC101, so that the management of the hard disk 200 is realized.
In this embodiment, since the connection relationship between the RAID card and the hard disk back plate is fixed, it is possible to perform failure diagnosis when there is a problem in hard disk data transmission. However, when the connection relationship between the RAID card and the hard disk back plate through the SAS cable is not fixed, for example, when the first hard disk back plate should be connected to the first RAID card and the second hard disk back plate should be connected to the second RAID card, but when the user connects the hard disk back plate to the RAID card, the first hard disk back plate is connected to the second RAID card by mistake, and when the second hard disk back plate is connected to the first RAID card, the fault diagnosis cannot be performed through the connection relationship when the BMC obtains that the hard disk data transmission occurs.
In view of this, the embodiments of the present application provide a method for managing a hard disk, where in the method, when a connection relationship between a RAID card and a hard disk back plate through an SAS cable is not fixed, a BMC may allocate slot identifiers for slots on the hard disk back plate, and a RAID card may allocate a hard disk identifier for a hard disk connected through the hard disk back plate, then, the BMC may send a command for lighting a hard disk positioning lamp associated with a slot on the hard disk back plate to a hard disk corresponding to a certain hard disk identifier through the RAID card, and then determine whether the slot identifier of the slot associated with the lighted hard disk positioning lamp is lighted by reading a CPLD on the hard disk back plate, so as to identify the connection relationship among the hard disk, the hard disk back plate, and the RAID card.
The present method is described in detail below with reference to the accompanying drawings.
By way of example, fig. 2 shows a schematic diagram of a method of hard disk management. The method may be implemented, but is not limited to, by the motherboard of fig. 1. The BMC in FIG. 2 may be BMC101 in FIG. 1, the RAID card in FIG. 2 may be RAID card 102 in FIG. 1, and the hard disk backplane in FIG. 2 may be hard disk backplane 103 in FIG. 1. In this embodiment, the connection relationship between the RAID card and the hard disk back plate is not fixed, and may be that a first RAID card is connected to the first hard disk back plate, a second RAID card is connected to the second hard disk back plate, or that the first RAID card is connected to the second hard disk back plate, and the second RAID card is connected to the first hard disk back plate.
As shown in fig. 2, the hard disk management method may include the steps of:
s201: the BMC acquires slot position information of the slots on each hard disk backboard from the CPLD on each hard disk backboard through the first bus.
In this embodiment, the BMC may read, through the first bus, slot information of each slot on the hard disk backboard where the BMC is located from the CPLD located on the hard disk backboard when the motherboard is powered on each time. Of course, the BMC may also periodically (e.g., every 1 day, 10 days, etc.) read the slot information of the slot of the hard disk backplane from the CPLD located on the hard disk backplane where it is located. Illustratively, the first bus may be a bus to which the BMC is connected to the CPLD, such as: I2C bus, PCIE bus, etc. The number of the hard disk backboard can be one or a plurality of.
For example, referring to fig. 3, two hard disk backplates, namely, hard disk backplate 1 and hard disk backplate 2, are disposed on the motherboard, and CPLDs are disposed on each hard disk backplate. There are 12 slots on the hard disk back plate 1, and 6 slots on the hard disk back plate 2. The hard disk backboard 1 and the hard disk backboard 2 share 18 slots. The BMC on the motherboard may communicate with CPLDs on the hard disk backplanes 1 and 2 via the I2C bus. The BMC may obtain slot information of 12 slots on the hard disk backboard 1 stored in the CPLD by communicating with the CPLD on the hard disk backboard 1. The BMC can obtain slot information of 6 slots on the hard disk backboard 2 stored in the CPLD by communicating with the CPLD on the hard disk backboard 2.
S202: the BMC allocates a slot number for each slot on each hard disk backboard based on the slot information acquired by the BMC, and stores the slot number and the association relation between each slot and the slot number allocated for the BMC.
In this embodiment, the BMC on the motherboard may allocate a number to each slot based on the acquired slot information. In addition, the BMC can record the slot number allocated to each slot and record the association relation between each slot and the slot number allocated to each slot, so that the BMC can quickly position the slot after acquiring the slot number. The BMC allocates a number to each slot, which may be a random number.
For example, referring to fig. 3, the bmc obtains slot information of each of 12 slots on the hard disk back plate 1 and slot information of each of 6 slots on the hard disk back plate 2, and can uniformly allocate slot numbers, namely slot 1, slot 2, slot … and slot 18, to the 18 slot numbers based on the slot information of each of the 18 slots.
In some embodiments, in the case that there are a plurality of hard disk backplates, the slot numbers corresponding to the slots on each hard disk backplate are different.
In this embodiment, when the BMC assigns a slot number to each slot, the assigned slot numbers are all different numbers. Thus, when numbering, the same number is allocated to different slots, and management confusion is prevented. Illustratively, when the BMC assigns a slot number to each slot, it may be a sequential number, such as slot 1, slot 2, …, slot 18.
S203: the RAID card acquires state information of each hard disk connected with the RAID card, wherein the state information comprises whether the hard disk is successfully connected.
In this embodiment, the RAID card is connected to the hard disk back plate, and a hard disk is connected to a slot of the hard disk back plate (the connection mode may be plug-in, that is, the hard disk is inserted into the slot). At this time, the RAID card is connected with the hard disk through the hard disk backboard. The RAID card may obtain, when the device is powered on, status information of the hard disk inserted in the slot of the hard disk backplane, where the status information may include whether the hard disk is in place (i.e., whether the hard disk has been inserted in the slot). When the hard disk is in place (i.e., the hard disk is inserted in a slot), the RAID card may obtain information as to whether the connection with the hard disk was successful. When the connection is successful, the RAID card can acquire the state information of the hard disk connected with the RAID card.
S204: the RAID card distributes a subgroup number for each hard disk connected with the RAID card to form a subgroup number sequence. The subgroup sequence is stored.
In this embodiment, when the RAID card obtains connection information of the hard disk connected to the RAID card, the connection information may be recorded, and based on the connection information, a subgroup number is allocated to each hard disk, where the subgroup numbers form a sequence, which may be referred to as a subgroup number sequence. The connection information may include that the RAID card is connected to an SAS interface on the hard disk back plate through an SAS cable, a sub-interface of the SAS interface is connected to a slot on the hard disk back plate, and a hard disk is connected in the slot. In addition, the RAID card can store the association relation between the hard disk connected with the RAID card and the subgroup number, so that the RAID card can know the hard disk associated with the subgroup number based on the subgroup number. Illustratively, the subgroup numbers are logical numbers, not physically present numbers, nor reflect the actual slot positions of the hard disk on the hard disk back plate.
For example, in fig. 3, there are a RAID card 2 and a hard disk back plate 1 on the motherboard, and there are 12 slots on the hard disk back plate 1, but only 6 slots have the hard disk inserted therein. At this time, the hard disks connected to the RAID card 2 are the hard disks 1 to 6 on the hard disk backplane 1, and the subgroup sequences allocated to the hard disks by the RAID card 2 are S1, S2, …, S6. Wherein S1 is a subgroup sequence allocated by the RAID card to the hard disk 1, S2 is a subgroup sequence allocated by the RAID card to the hard disk 2, …, and S6 is a subgroup sequence allocated by the RAID card to the hard disk 6.
In some embodiments, the number of RAID cards is multiple, and in the case that there are multiple RAID cards, each RAID card is connected to the hard disk backplane and the control chip, at this time, each RAID card is connected to a hard disk in a first group of slots, and each RAID card separately performs subgroup numbering on the hard disk in the first group of slots connected to itself. The first type of slot refers to a slot that can communicate with the BMC on the motherboard through a RAID card.
In this embodiment, there are multiple RAID cards, each of which is connected to the hard disk backplane and the BMC, and at this time, the RAID cards may individually perform subgroup numbering for the hard disk connected thereto. For example, in fig. 3, there are 2 RAID cards on the motherboard, namely RAID card 1 and RAID card 2; the two hard disk back plates are respectively a hard disk back plate 1 and a hard disk back plate 2. Wherein, there are 12 slots on the hard disk backboard 1, but only insert the hard disk in 6 slots; the hard disk backboard 2 is provided with 6 slots, and the hard disk is inserted into each of the 6 slots. At this time, the RAID card 2 is connected to 6 hard disks on the hard disk backplane 1 through the hard disk backplane 1, and the RAID card 2 assigns subgroup numbers S1, S2, …, and S6 to the 6 hard disks. The RAID card 1 is connected to 6 hard disks on the hard disk backplane 2 through the hard disk backplane 2, and the RAID card 1 assigns subgroup numbers S1, S2, …, and S6 to the 6 hard disks.
S205: the BMC acquires a subgroup number sequence stored by the RAID card from the RAID card, and stores the association relation between the subgroup number sequence and the RAID card.
In this embodiment, after the RAID card allocates a subgroup number to the hard disk connected thereto, the RAID card may send a subgroup number sequence formed by the allocated subgroup numbers to the BMC. Thus, the BMC can acquire the subgroup number allocated by the RAID card for the hard disk connected with the RAID card and store the subgroup number sequence. When the BMC stores the subgroup number sequence, the BMC may further store an association relationship between the RAID card and the subgroup number allocated to the RAID card, so that the BMC may obtain, through a certain subgroup number, the RAID card associated with the subgroup number.
For example, the RAID card 1 performs allocation identification on the hard disk 1 to the hard disk 6 connected thereto, and obtains a subgroup number sequence S1, S2, …, S6. Wherein S1 is a subgroup sequence allocated by the RAID card to the hard disk 1, S2 is a subgroup sequence allocated by the RAID card to the hard disk 2, …, and S6 is a subgroup sequence allocated by the RAID card to the hard disk 6. RAID card 1 may send the subgroup number sequence S1, S2, …, S6 to the BMC. After the BMC acquires the subgroup serial number sequence, the subgroup serial number sequence can be stored; meanwhile, the BMC may store an association relationship between the subgroup sequence and the RAID card 1.
S206: when the RAID is multiple, the BMC controls the hard disk associated with the j subgroup number allocated by the i RAID card to light the hard disk positioning lamp of the slot position of the hard disk through the i RAID card, and the initial values of i and j are both 1. The lighting may be that the hard disk indicates that the hard disk positioning lamp is changed from a normally-off state to a normally-on state, or that the hard disk positioning lamp is changed from the normally-off state to a blinking state.
In this embodiment, the BMC may control, through the ith RAID card, the hard disk associated with the jth subgroup number allocated to the ith RAID card, so that the hard disk associated with the jth subgroup number may light the hard disk positioning lamp of the slot position where the hard disk associated with the jth subgroup number is located. Wherein the initial values of i and j are both 1. For example, the BMC may send an instruction to the ith RAID card to instruct the ith RAID card to control the hard disk associated with its assigned jth subgroup number. Then, the ith RAID card may send an instruction to the hard disk associated with the jth subgroup number allocated to the ith RAID card, so as to instruct the hard disk associated with the jth subgroup number allocated to the ith RAID card to light the hard disk positioning lamp of the slot position of the hard disk. When the hard disk associated with the jth subgroup number acquires the instruction sent by the RAID card connected with the hard disk, the hard disk associated with the jth subgroup number can light the hard disk positioning lamp of the slot position of the hard disk.
For example, with continued reference to fig. 3, the bmc may send an instruction to the RAID card 1, where the instruction may be used to instruct the RAID card 1 to control the hard disk 1 associated with its assigned 1 st subgroup number (i.e. S1) to light the hard disk positioning light of the slot in which the hard disk 1 is located. Next, the RAID card 1 may send an instruction to the hard disk 1 to instruct the hard disk 1 to light the hard disk positioning light in the slot. Finally, the hard disk 1 can light the hard disk positioning lamp at the groove position.
S207: and the BMC acquires the slot number of the slot where the lighted hard disk positioning lamp is located through the CPLD on the hard disk backboard connected with the ith RAID card.
In this embodiment, after the hard disk associated with the jth subgroup number lights the hard disk positioning lamp of the slot position, the CPLD on the hard disk backboard to which the slot position belongs can read the slot position number of the slot position to which the hard disk positioning lamp belongs. The CPLD may then actively send the slot number to the BMC so that the BMC obtains the slot number. In addition, the BMC may actively read the information in the CPLD to obtain the slot number.
For example, the hard disk 1 associated with the first slot on the hard disk back plate 2 lights up the hard disk positioning light of the first slot, the slot of the first slot being denoted as slot 13. At this time, the BMC may obtain the slot 13 associated with the turned-on hard disk positioning lamp through the CPLD on the hard disk backboard 2.
S208: the BMC records the corresponding relation between the hard disk and the subgroup number corresponding to the hard disk, the slot number of the slot where the hard disk is positioned and the RAID card connected with the hard disk, wherein the subgroup number corresponds to the hard disk.
In this embodiment, the jth hard disk lights up the hard disk positioning lamp of its associated slot, and at this time, the BMC may obtain, through the CPLD on the hard disk back plate, the slot number of the slot where the hard disk positioning lamp is turned up is located. At this time, the BMC may correlate the hard disk with the subgroup number corresponding to the hard disk, and the slot number of the slot where the hard disk is located.
For example, the hard disk with the subgroup number S2 lights up the hard disk positioning lamp of the slot 14, and at this time, the BMC obtains, through the CPLD on the hard disk back plate, the slot number of the slot where the hard disk with the hard disk positioning lamp is lighted up as the slot 14. At this time, the BMC may record the corresponding relationship between the hard disk and the subgroup numbers S2 and slots 14.
S209: the BMC makes j=j+1 and determines whether j is greater than the number of subgroup numbers allocated to the i-th RAID card.
In this embodiment, after the BMC determines the j-th hard disk connected to the i-th RAID card, the mapping relationship (i.e. the corresponding relationship between the hard disk and the subgroup number corresponding to the hard disk and the slot number of the slot where the hard disk is located) of the next (i.e. j+1th) hard disk connected to the current RAID card may be determined. At this time, it is necessary to determine whether the hard disk with the association relationship determined is the last hard disk connected to the current RAID card, i.e. let j=j+1, and determine whether j is greater than the number of subgroup numbers allocated to the current RAID card. When the determination result is no, it indicates that the association relationship between the slot identifier, the RAID card and the hard disk is not yet determined by the current hard disk, and at this time, execution may return to S206. And when the judgment result is yes, the fact that all the hard disks connected with the current RAID card have determined the association relationship of the slot number, the subgroup number, the RAID card and the hard disk is indicated. At this time, the association relationship between the hard disk on the next RAID card and the slot number, the RAID card, and the subgroup number may be determined, that is, S210 is performed.
S210: the BMC makes i=i+1 and determines whether i is greater than the number of RAID cards connected to the BMC.
In this embodiment, the BMC has obtained the association relationship between the slot numbers of all the hard disks connected to the ith RAID card and the subgroup number, and may obtain the association relationship of the hard disk on the next RAID card. At this time, it is necessary to determine whether or not the RAID cards have all determined the association relationship, that is, in the case where i=i+1, it is determined whether or not i at this time is greater than the number of RAID cards. If the determination result is no, it indicates that the association relationship between the hard disk and the slot number, the RAID card, and the subgroup number is not yet determined by the hard disk connected to the current RAID card, and step S211 may be executed. When the judgment result is yes, the fact that all RAID cards connected with the BMC have determined the association relation between the hard disk and the slot number, the association relation between the RAID cards and the subgroup number can be achieved, and the method can be ended.
S211: the BMC will initialize the value of j and return to executing S206.
In this embodiment, the value of j may be initialized, and the process returns to S206.
In some embodiments, when any one of the first type of slots is inserted into the hard disk, the RAID card sends an interrogation signal to the hard disk in any one of the slots, where the interrogation signal is used to interrogate the hard disk in any one of the slots as to whether the connection was successful; when the RAID card receives a confirmation signal returned by the hard disk in any slot, the RAID card allocates a subgroup number for the hard disk in any slot; the BMC records the corresponding relation between the hard disk in any slot position and the subgroup number and the slot position number.
In this embodiment, when one slot is empty, a hard disk may be inserted into the slot. When a hard disk is inserted, the RAID card may send an interrogation signal to the inserted hard disk to interrogate whether the connection was successful. After the RAID card receives the acknowledgement signal returned from the hard disk, the RAID card may assign a subgroup number to the hard disk (i.e. execute step S204). After assigning the subgroup number to the hard disk, the subsequent operations may refer to steps S205-S212, which are not described herein.
In some embodiments, when the hard disk in any one of the first class of slots is unplugged, the RAID card deletes the subgroup number of the hard disk in any one of the slots recorded by the RAID card; the BMC deletes the corresponding relation between the hard disk and the subgroup number and the slot number in any slot recorded by the BMC.
In this embodiment, when the hard disk connected to the RAID card is pulled out, the RAID card may delete the recorded subgroup number corresponding to the hard disk. Meanwhile, the RAID card can inform the BMC of the deleted subgroup numbers, and the BMC deletes the corresponding relationship between the hard disk corresponding to the subgroup numbers and the slot numbers.
In some embodiments, when the second type slot is switched to the first type slot, the RAID card sends an interrogation signal to the target hard disk, where the interrogation signal is used to interrogate the target hard disk whether the connection was successful; the second class slot is a slot which is directly communicated with the BMC, and the target hard disk is a hard disk connected with the second class slot; when the RAID card receives a confirmation signal returned by the target hard disk, the RAID card allocates a subgroup number for the target hard disk; the BMC records the corresponding relation between the target hard disk and the subgroup number and the slot number.
In this embodiment, the connection mode of the hard disk is changed from directly connecting the BMC through the hard disk back plate to connect the BMC through the RAID card. This is equivalent to inserting a new hard disk into the hard disk backplane connected to the RAID card, and the specific management process is described in detail in the foregoing description of inserting any slot of the first type slots into the hard disk, which is not described herein.
In some embodiments, when the first class slot is switched to the second class slot, the RAID card deletes the subgroup number of the target hard disk recorded by the RAID card; the BMC deletes the corresponding relation between the recorded target hard disk and the subgroup number and the slot number.
In this embodiment, the connection mode of the hard disk is changed from the connection of the BMC through the RAID card to the direct connection of the BMC through the hard disk back plate. This is equivalent to the fact that the hard disk in any one of the first type of slots is pulled out, and the specific management process refers to the related description of the pulling out of the hard disk in any one of the first type of slots, which is not repeated here.
After the BMC records the connection relation between all RAID cards and all hard disks, when the BMC cannot acquire hard disk data, the BMC can quickly locate the problematic component and prompt the problematic component to a user. Specifically, the BMC may first obtain whether a problem occurs in the hard disk. The hard disk can be checked by a short self-checking mode, the RAID card is informed by the hard disk backboard after the short self-checking finds that the hard disk is problematic, and then the RAID card informs the BMC of the wrong subgroup number of the hard disk through the SAS cable. Or the BMC sends detection information to the hard disk through the RAID card, the hard disk detects itself after receiving the detection information, and returns error state information to the BMC after finding a problem. After the BMC acquires the subgroup numbers of the hard disks, the slot numbers of the slots of the hard disks with problems can be determined according to the established association relationship among the slot numbers, the RAID cards and the subgroup numbers of the hard disks, and the user is informed of the slot numbers of the slots of the hard disks with problems. The RAID card can also acquire the parameters of the hard disk, and can know what problems the hard disk has, such as overhigh temperature or over-high rotating speed of the hard disk. When the component with problems is not a hard disk, the BMC can detect the phy error code of the whole data link, the error code refers to the number with errors when data is transmitted in the data link, if the phy error code in the data link increases or grows too fast, the BMC indicates that the SAS cable in the data link has problems, and the BMC can prompt a user on the basis of the recorded connection relation which connected SAS cable between the hard disk backboard and the RAID card has faults.
According to the embodiments, the BMC performs uniform allocation identification on the hard disk slots on all the hard disk backboard, each RAID card performs allocation identification on the hard disk connected with the control of the BMC, the BMC can light the hard disk positioning lamps of the hard disk one by one according to the hard disk identifications by issuing instructions to the RAID cards, and meanwhile, the BMC acquires the slots of the hard disk where the hard disk positioning lamps are light through the CPLD chip on the hard disk backboard, so that the connection relation of the hard disk (subgroup number), the hard disk backboard (slot number) and the RAID card can be accurately acquired, and when the hard disk data is read out, the BMC can quickly acquire the positions of the error components (such as the hard disk or the SAS cable) according to the corresponding mapping relation.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not mean the order of execution, and the execution order of the processes should be determined by the functions and the internal logic, and should not be construed as limiting the implementation process of the embodiments in this application. In addition, in some possible implementations, each step in the foregoing embodiments may be selectively performed according to practical situations, and may be partially performed or may be performed entirely, which is not limited herein. All or part of any features of any of the embodiments of the present application may be freely, and arbitrarily combined without conflict. The combined technical scheme is also within the scope of the application.
Based on the method in the above embodiment, the embodiment of the present application further provides a hard disk management device.
Fig. 4 illustrates an exemplary hard disk management device, where the hard disk management device 400 may be deployed on a server, where the server includes a motherboard, a hard disk backplane, and a redundant disk array RAID card, where the hard disk backplane is used to mount a plurality of hard disks, and a plurality of slots are disposed on the hard disk backplane, and the slots include a first type slot and a second type slot, and the first type slot communicates with a control chip on the motherboard through the RAID card; the second type of slot is in direct communication with the control chip on the motherboard. The device may include a sending module 410, configured to send a lighting command to a hard disk with one subgroup number through a RAID card based on a subgroup number sequence, where the subgroup number sequence is a number of the RAID card performed in advance on all hard disks connected to the first class slot; the processing module 420 is configured to obtain a slot number of the turned-on hard disk positioning lamp, where the slot number is a sequence number that the control chip performs on the first type slot and the second type slot in a unified manner in advance; the processing module 420 is further configured to record a correspondence between the hard disk and the subgroup number and slot number.
In some embodiments, in the case that there are a plurality of RAID cards, each RAID card is connected to the hard disk backplane and the control chip, and each RAID card is connected to at least one slot on the hard disk backplane, the processing module 420 is further configured to: each RAID card is connected with a hard disk in a group of first type slots, and each RAID card independently performs subgroup coding on the hard disk in the first type slots connected with the RAID card.
In some embodiments, before the control chip issues the lighting command to the hard disk with one of the subgroup numbers through the RAID card, the processing module 420 is further configured to: the control chip is caused to obtain a subgroup number sequence from the RAID card.
In some embodiments, the processing module 420 is further to: before the slot position numbers of the lighted hard disk positioning lamps are obtained, the control chip obtains the slot position information of each slot position on the hard disk backboard; based on the slot information, the control chip uniformly distributes a slot number for each slot.
In some embodiments, the processing module 420 is further to: when any slot in the first type of slot is inserted into the hard disk, the RAID card sends an inquiry signal to the hard disk in any slot, and the inquiry signal is used for inquiring whether the connection to the hard disk in any slot is successful or not; when the RAID card receives a confirmation signal returned by the hard disk in any slot, the RAID card allocates a subgroup number for the hard disk in any slot; the control chip records the corresponding relation between the hard disk in any slot position and the subgroup number and the slot position number.
In some embodiments, the processing module 420 is further to: when the hard disk in any slot in the first type of slot is pulled out, the RAID card deletes the subgroup number of the hard disk in any slot recorded by the RAID card; the control chip deletes the corresponding relation between the hard disk and the subgroup number in any slot position recorded by the control chip.
In some embodiments, the processing module 420 is further to: when the second class slot is switched to the first class slot, the RAID card sends an inquiry signal to the target hard disk, and the inquiry signal is used for inquiring whether the connection is successful or not to the target hard disk; the target hard disk is a hard disk connected with the second class of slots; when the RAID card receives a confirmation signal returned by the target hard disk, the RAID card allocates a subgroup number for the target hard disk; the control chip records the corresponding relation between the target hard disk and the subgroup number and the slot number.
In some embodiments, the processing module 420 is further to: when the first class slot is switched to the second class slot, deleting the subgroup number of the target hard disk recorded by the RAID card; the control chip deletes the corresponding relation between the target hard disk and the subgroup number and the slot number recorded by the control chip.
The present application also provides a computing device 500. As shown in fig. 5, the computing device 500 includes: bus 502, processor 504, memory 506, and communication interface 508. Communication between processor 504, memory 506, and communication interface 508 is via bus 502. Computing device 500 may be a server or a terminal device. It should be understood that the present application is not limited to the number of processors, memories in computing device 500.
Bus 502 may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, only one line is shown in fig. 5, but not only one bus or one type of bus. Bus 504 may include a path to transfer information between various components of computing device 500 (e.g., memory 506, processor 504, communication interface 508).
The processor 504 may include any one or more of a central processing unit (central processing unit, CPU), a graphics processor (graphics processing unit, GPU), a Microprocessor (MP), or a digital signal processor (digital signal processor, DSP).
The memory 506 may include volatile memory (RAM), such as random access memory (random access memory). The processor 504 may also include non-volatile memory (ROM), such as read-only memory (ROM), flash memory, a mechanical hard disk (HDD), or a solid state disk (solid state drive, SSD).
The memory 506 has stored therein executable program code that the processor 504 executes to implement the functions of the foregoing transmission module 410 and the processing module 420, respectively, thereby implementing all or part of the steps of the methods in the foregoing embodiments. That is, the memory 506 has instructions stored thereon for performing all or part of the steps of the methods of the embodiments described above.
Alternatively, the memory 506 may store executable codes, and the processor 504 executes the executable codes to implement the functions of the aforementioned hard disk management device 400, thereby implementing all or part of the steps in the method of the aforementioned embodiment. That is, the memory 506 has instructions stored thereon for performing all or part of the steps of the methods of the embodiments described above.
The communication interface 503 enables communication between the computing device 500 and other devices or communication networks using a transceiver module such as, but not limited to, a network interface card, transceiver, or the like.
Based on the method in the above embodiment, the present application provides a computer-readable storage medium storing a computer program, which when executed on a processor, causes the processor to perform the method in the above embodiment.
Based on the methods in the above embodiments, the present application provides a computer program product, which when run on a processor causes the processor to perform the methods in the above embodiments.
It is to be appreciated that the processor in embodiments of the present application may be a central processing unit (central processing unit, CPU), but may also be other general purpose processors, digital signal processors (digital signal processor, DSP), application specific integrated circuits (application specific integrated circuit, ASIC), field programmable gate arrays (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The general purpose processor may be a microprocessor, but in the alternative, it may be any conventional processor.
The method steps in the embodiments of the present application may be implemented by hardware, or may be implemented by a processor executing software instructions. The software instructions may be comprised of corresponding software modules that may be stored in random access memory (random access memory, RAM), flash memory, read-only memory (ROM), programmable ROM (PROM), erasable programmable PROM (EPROM), electrically erasable programmable EPROM (EEPROM), registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted across a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
It will be appreciated that the various numerical numbers referred to in the embodiments of the present application are merely for ease of description and are not intended to limit the scope of the embodiments of the present application.

Claims (10)

1. The hard disk management method is applied to a server, wherein the server comprises a main board, a hard disk backboard and a redundant disk array RAID card, the hard disk backboard is used for mounting a plurality of hard disks, a plurality of slots are arranged on the hard disk backboard, the slots comprise a first type of slots and a second type of slots, and the first type of slots are communicated with a control chip on the main board through the RAID card; the second class slot is directly communicated with a control chip on the main board; characterized in that the method comprises:
based on a subgroup number sequence, a control chip issues a lighting command to a hard disk with one subgroup number through the RAID card so as to light a hard disk positioning lamp corresponding to the hard disk, wherein the subgroup number sequence is the number of the RAID card for all the hard disks connected with the first type of slots in advance;
the method comprises the steps of obtaining the slot position numbers of the lighted hard disk positioning lamp, wherein the slot position numbers are sequencing numbers which are uniformly carried out on the first type slot position and the second type slot position in advance by a control chip;
And recording the corresponding relation between the hard disk and the subgroup number and the slot number.
2. The method of claim 1, wherein in the case of a plurality of said RAID cards, each said RAID card is connected to said hard disk backplane, said control chip, each said RAID card is connected to at least one slot on said hard disk backplane, said method further comprising:
each RAID card is connected with a hard disk in a group of first type slots, and each RAID card independently performs subgroup coding on the hard disk in the first type slots connected with the RAID card.
3. The method of claim 1, wherein before the control chip issues a light command to a hard disk of one of the subgroup numbers via the RAID card, the method further comprises:
the control chip obtains the subgroup number sequence from the RAID card.
4. A method according to any one of claims 1-3, wherein prior to said obtaining the slot number of the illuminated hard disk positioning light, the method further comprises:
the control chip acquires slot position information of each slot position on the hard disk backboard;
based on the slot information, the control chip uniformly allocates a slot number for each slot.
5. The method of claim 4, wherein in the case of a plurality of hard disk backplates, the slot numbers corresponding to the slots on each hard disk backplate are different.
6. The method according to any one of claims 1-5, further comprising:
when any one slot of the first type of slots is inserted into a hard disk, the RAID card sends an inquiry signal to the hard disk in the any one slot, wherein the inquiry signal is used for inquiring whether the connection of the hard disk in the any one slot is successful;
when the RAID card receives a confirmation signal returned by the hard disk in any slot, the RAID card allocates a subgroup number for the hard disk in any slot;
and the control chip records the corresponding relation between the hard disk in any slot position and the subgroup number and the slot position number.
7. The method according to any one of claims 1-6, further comprising:
when the hard disk in any one slot of the first type of slots is pulled out, the RAID card deletes the recorded subgroup number of the hard disk in any one slot;
and the control chip deletes the corresponding relation between the hard disk in any slot position recorded by the control chip and the subgroup number and the slot position number.
8. The method according to any one of claims 1-7, further comprising:
when the second class slot is switched to the first class slot, the RAID card sends an inquiry signal to a target hard disk, and the inquiry signal is used for inquiring whether the connection is successful or not to the target hard disk; the target hard disk is a hard disk connected with the second class of slots;
when the RAID card receives a confirmation signal returned by the target hard disk, the RAID card allocates a subgroup number for the target hard disk;
and the control chip records the corresponding relation between the target hard disk and the subgroup numbers and the slot numbers.
9. The method according to any one of claims 1-8, further comprising:
when the first class slot is switched to the second class slot, the RAID card deletes the recorded subgroup number of the target hard disk;
and the control chip deletes the corresponding relation between the target hard disk recorded by the control chip and the subgroup numbers and the slot numbers.
10. A computing device comprising a processor and a memory, wherein the memory has stored therein computer program instructions that, when executed by the processor, perform the method of any of claims 1-9.
CN202211730164.0A 2022-12-30 2022-12-30 Hard disk management method and computing device Pending CN116009785A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211730164.0A CN116009785A (en) 2022-12-30 2022-12-30 Hard disk management method and computing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211730164.0A CN116009785A (en) 2022-12-30 2022-12-30 Hard disk management method and computing device

Publications (1)

Publication Number Publication Date
CN116009785A true CN116009785A (en) 2023-04-25

Family

ID=86020617

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211730164.0A Pending CN116009785A (en) 2022-12-30 2022-12-30 Hard disk management method and computing device

Country Status (1)

Country Link
CN (1) CN116009785A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116959549A (en) * 2023-09-20 2023-10-27 四川华鲲振宇智能科技有限责任公司 Automatic hard disk group array method, equipment and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116959549A (en) * 2023-09-20 2023-10-27 四川华鲲振宇智能科技有限责任公司 Automatic hard disk group array method, equipment and medium
CN116959549B (en) * 2023-09-20 2023-11-28 四川华鲲振宇智能科技有限责任公司 Automatic hard disk group array method, equipment and medium

Similar Documents

Publication Publication Date Title
US6850997B1 (en) System, method, and program for determining the availability of paths to a device
CN1124551C (en) Method and system used for hot insertion of processor into data processing system
US10394573B2 (en) Host bus adapter with built-in storage for local boot-up
CN106933753B (en) Control method and device of intelligent interface card
US9367510B2 (en) Backplane controller for handling two SES sidebands using one SMBUS controller and handler controls blinking of LEDs of drives installed on backplane
TWI659302B (en) Hdd monitoring system
CN116009785A (en) Hard disk management method and computing device
US11137935B2 (en) Storage system with plurality of storage controllers communicatively coupled for determination of storage controller indentifiers
CN116032746A (en) Information processing method and device of resource pool, storage medium and electronic device
CN115145733A (en) Resource allocation method, device, server and system
US6928508B2 (en) Method of accessing a remote device from a host by mapping an address of the device to a memory address of the host
US8700832B1 (en) Automated addition of file based hardware and file based access services in a data storage system
US10795846B1 (en) Scalable NVMe storage management over system management bus
CN114201439B (en) Server signal identification optimization method, system and storage medium
US6745347B1 (en) System, method and program for determining the availability of interfaces to a device from information provided by the device
CN116166855A (en) Method and device for identifying serial numbers of hard disks
CN110321263B (en) Hard disk monitoring system
US6941451B2 (en) Management subsystem and method for discovering management device functions
CN114238019A (en) Hard disk display method, device, equipment and medium
CN112069108A (en) Flexible server configuration system and method based on PCIE Switch
CN116955264A (en) Communication connection establishment method and device, storage medium and electronic equipment
CN110166558B (en) Communication method, device and equipment of multi-control storage cluster
CN118535503A (en) Mainboard and computing device
CN118170422A (en) BMC firmware architecture design method and device, electronic equipment and storage medium
CN117667818A (en) Signal transmission structure, server and signal transmission method

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