CN111459768A - Hard disk management method, device, equipment and machine readable storage medium - Google Patents

Hard disk management method, device, equipment and machine readable storage medium Download PDF

Info

Publication number
CN111459768A
CN111459768A CN202010126925.6A CN202010126925A CN111459768A CN 111459768 A CN111459768 A CN 111459768A CN 202010126925 A CN202010126925 A CN 202010126925A CN 111459768 A CN111459768 A CN 111459768A
Authority
CN
China
Prior art keywords
hard disk
information
abnormal
interrupt
bmc
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
CN202010126925.6A
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.)
New H3C Information Technologies Co Ltd
Original Assignee
New H3C Information 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 New H3C Information Technologies Co Ltd filed Critical New H3C Information Technologies Co Ltd
Priority to CN202010126925.6A priority Critical patent/CN111459768A/en
Publication of CN111459768A publication Critical patent/CN111459768A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3037Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache

Abstract

The invention provides a hard disk management method, a hard disk management device, hard disk management equipment and a machine-readable storage medium, wherein the method comprises the steps of obtaining interrupt information, wherein the interrupt information is obtained according to an interrupt signal, the interrupt signal is sent by a hard disk back plate CP L D when a hard disk connected with the hard disk back plate CP L D is abnormal, determining the hard disk CP L D connected with an abnormal hard disk according to the interrupt information, obtaining the hard disk abnormal information of the hard disk CP L D connected with the abnormal hard disk, and refreshing the hard disk information according to the hard disk abnormal information.

Description

Hard disk management method, device, equipment and machine readable storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a hard disk management method, apparatus, device, and machine-readable storage medium.
Background
The BMC (Baseboard Management Controller) is a specialized service processor that uses sensors to monitor the status of a computer, web server, or other hardware driven device and communicates with a system administrator via a separate connection. The BMC is part of an Intelligent Platform control Interface (IPMI) and is typically contained within the motherboard or main circuit board of the device being monitored. Sensors of the BMC are used to measure internal physical variables such as: temperature, supply voltage, fan speed, communication parameters, and Operating System (OS) functions. If any of these variables is outside the limits set, it notifies the administrator. The administrator can take corrective action with the remote control. The monitoring device may be powered down or restarted when necessary. In this way, a single administrator can remotely control numerous servers and other devices simultaneously. This can save the overall cost of the network and can ensure reliability.
The CP L D (Complex Programmable L logic Device) Complex Programmable logic Device is a Device developed from PA L (Programmable Array L logic) and GA L (general Array L logic), which is relatively large in scale and Complex in structure, and belongs to the field of large-scale integrated circuits.
The I2C bus (Inter-Integrated Circuit) is a simple, bi-directional, two-wire synchronous serial bus that requires only two wires to transfer information between devices connected to the bus, the I2C bus consists of a serial bus with a data line SDA and a clock signal line SC L to send and receive data.
GPIO (General-purpose input/output, abbreviated as General-purpose input/output) functions like P0-P3 of 8051, and its PIN can be freely used by a user through program control, and the PIN can be used as General-purpose input (GPI), General-purpose output (GPO), or General-purpose input and output (GPIO) according to practical considerations.
JTAG (Joint Test Action Group) is an international standard Test protocol (IEEE 1149.1 compatible) and is mainly used for chip internal Test.
In the hardware design of the server, the server is generally divided into a main board and a hard disk backplane, wherein the main board includes a CPU and other key business components, and the hard disk is connected to the hard disk backplane, some hard disk information with high real-time requirements is collected by a control chip (e.g., CP L D) on the hard disk backplane and then transmitted to a main control chip BMC on the main board with out-of-band management.
The current collection of hard disk information is that BMC regularly accesses a hard disk backboard CP L D through an I2C bus in a polling mode to refresh the hard disk information, when BMC software finds that the hard disk information changes or is abnormal, logs are recorded and an alarm is given.
Disclosure of Invention
In view of the above, the present disclosure provides a hard disk management method, an apparatus, an electronic device, and a machine-readable storage medium to solve the problem of high BMC resource consumption.
The specific technical scheme is as follows:
the invention provides a hard disk management method applied to BMC, which comprises the steps of obtaining interrupt information, wherein the interrupt information is obtained according to interrupt signals, the interrupt signals are sent by a hard disk back plate CP L D when a hard disk connected with the hard disk back plate CP L D is abnormal, determining the hard disk CP L D connected with an abnormal hard disk according to the interrupt information, obtaining hard disk abnormal information of the hard disk CP L D connected with the abnormal hard disk, and refreshing the hard disk information according to the hard disk abnormal information.
As a technical scheme, an interrupt information channel is connected between the BMC and the mainboard CP L D, the interrupt information is obtained according to an interrupt signal, the interrupt signal is sent by the hard disk backboard CP L D when a hard disk connected with the hard disk backboard CP L D is abnormal, the interrupt information is obtained from the mainboard CP L D through the interrupt information channel, and the interrupt information is obtained by the mainboard CP L D according to the received interrupt signal sent by the hard disk backboard CP L D.
As a technical solution, the determining, according to the interrupt information, the hard disk CP L D connected with the abnormal hard disk includes querying a storage unit of the main board CP L D, and determining, according to the queried abnormal record of the hard disk CP L D, the hard disk CP L D connected with the abnormal hard disk, where the abnormal record of the hard disk CP L D is obtained by the main board CP L D according to the received interrupt signal.
As a technical scheme, whether the function of sending an interrupt signal is enabled or not is judged by the hard disk back plate CP L D, if so, the method is executed, the interrupt information is obtained according to the interrupt signal, the interrupt signal is sent by the hard disk back plate CP L D when the hard disk connected with the hard disk back plate CP L D is abnormal, the hard disk CP L D connected with the abnormal hard disk is determined according to the interrupt information, and the hard disk abnormal information of the hard disk CP L D connected with the abnormal hard disk is obtained.
The method for acquiring the hard disk abnormal information of the hard disk CP L D connected with the abnormal hard disk and refreshing the hard disk information according to the hard disk abnormal information comprises the steps of accessing and only accessing the hard disk CP L D connected with the abnormal hard disk, acquiring the hard disk abnormal information of the hard disk CP L D connected with the abnormal hard disk and refreshing the hard disk information according to the hard disk abnormal information in the step.
The method comprises the steps of accessing a storage unit of a main board CP L D, obtaining hard disk abnormal information of a hard disk CP L D connected with an abnormal hard disk, and refreshing the hard disk information according to the hard disk abnormal information, wherein the hard disk abnormal information stored in the storage unit of the main board CP L D is obtained by the main board CP L D accessing the hard disk CP L D connected with the abnormal hard disk.
As a technical scheme, the main board CP L D and the hard disk CP L D are provided with four signal paths, the main board CP L D accesses the hard disk CP L D through the four signal paths, and the four signal paths are provided with switches, and the four signal paths are switched to open or close the JTAG function.
The utility model also provides a hard disk management device, which is applied to BMC and comprises an information module, a processing module and a management module, wherein the information module is used for acquiring interrupt information, the interrupt information is obtained according to interrupt signals, the interrupt signals are sent by the hard disk backboard CP L D when the hard disk connected with the hard disk backboard CP L D is abnormal, the processing module is used for determining the hard disk CP L D connected with the abnormal hard disk according to the interrupt information, and the management module is used for acquiring the hard disk abnormal information of the hard disk CP L D connected with the abnormal hard disk and refreshing the hard disk information according to the hard disk abnormal information.
The present disclosure also provides an electronic device, which includes a processor and a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions capable of being executed by the processor, and the processor executes the machine-executable instructions to implement the foregoing hard disk management method.
The present disclosure also provides a machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the aforementioned hard disk management method.
The technical scheme provided by the disclosure at least brings the following beneficial effects:
after receiving the interrupt information caused by the hard disk exception, the BMC acquires the hard disk exception information of the hard disk CP L D connected with the abnormal hard disk, and refreshes the hard disk information according to the hard disk exception information, namely, the BMC processes the flow of refreshing the hard disk information only when the hard disk information changes, thereby reducing the consumption of BMC resources.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments of the present disclosure or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present disclosure, and other drawings can be obtained by those skilled in the art according to the drawings of the embodiments of the present disclosure.
FIG. 1 is a flow chart of a hard disk management method in one embodiment of the present disclosure;
FIG. 2 is a diagram illustrating the connection of BMC, motherboard CP L D, and hard disk backplane CP L D according to an embodiment of the disclosure;
FIG. 3 is a diagram illustrating the connection of BMC, motherboard CP L D, and hard disk backplane CP L D according to an embodiment of the disclosure;
FIG. 4 is a block diagram of a hard disk management device according to an embodiment of the present disclosure;
FIG. 5 is a hardware block diagram of an electronic device in one embodiment of the disclosure;
fig. 6 shows a network formed by connecting BMC, a motherboard CP L D, and a hard disk backplane CP L D according to the present disclosure.
Detailed Description
The terminology used in the embodiments of the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein is meant to encompass any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information in the embodiments of the present disclosure, such information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. Depending on the context, moreover, the word "if" as used may be interpreted as "at … …" or "when … …" or "in response to a determination".
In the hardware design of the server, the server is generally divided into a main board and a hard disk backplane, wherein the main board includes key service components such as a CPU, and the hard disk is connected to the hard disk backplane, some hard disk information with high real-time requirements is collected by a control chip (e.g., CP L D) on the hard disk backplane and then transmitted to the BMC on the main board.
As shown in fig. 6, the hard disk backplane and the motherboard are connected by a cable, and the hard disk backplane includes six signal lines, i.e. six paths, as follows:
two paths of I2C signals including SDA and SC L are connected to the CP L D of the hard disk backboard by the BMC;
two paths of GPIO signals including GPIO1 and GPIO2 are connected to the hard disk backplane CP L D through the mainboard CP L D;
the hard disk backboard is grounded through a pull-down resistor and then connected to GPIO3 of the mainboard CP L D;
and the ground signal ensures that the hard disk back plate and the main board are grounded and the electric potential of the system is consistent.
The realization process is as follows:
the method comprises the steps of hard disk backboard power-on control and power failure detection, 2 GPIO signals are used, a main board CP L D detects that a hard disk backboard is in place, after equipment receives a power-on signal, the GPIO1 of the main board CP L D informs the hard disk backboard CP L D of starting power, the main board CP L D starts timing, the hard disk backboard CP L D waits for a power normal signal to be returned through the GPIO2, if the timing is completed, the main board CP L D does not receive the power normal signal, the power-on is stopped and an alarm is given, if the timing is completed, the main board CP L D receives the power normal signal, the power is continuously started until the power-on is completed, and after the power-on is completed, the main board CP L.
The method comprises the steps of collecting hard disk information, wherein I2C signals of BMC are used, BMC software periodically accesses a hard disk backboard CP L D in a polling mode to refresh the hard disk information, and when the BMC software finds out the change of the hard disk information, logs are recorded and an alarm is given.
However, the above solutions have disadvantages that the hard disk is plugged or disconnected, the hard disk backplane CP L D cannot actively inform the BMC, the BMC needs to access the hard disk backplane CP L D in a polling manner, and occupies more resources of the BMC, while the hard disk information change is a relatively low-frequency event, and the polling manner is a fixed-interval access, so that the real-time performance is not high, the response is slow, and to improve the real-time performance, the polling interval must be shortened, more BMC resources are consumed, and the operation of other services is affected.
In view of the above, the present disclosure provides a hard disk management method, an apparatus, an electronic device, and a machine-readable storage medium to solve the problem of high BMC resource consumption.
The specific technical scheme is as follows.
In an actual server environment, there may be one or more hard disk backplanes CP L D and corresponding hard disks, and the hard disk backplane CP L D may be directly connected to the BMC and/or the motherboard CP L D, or indirectly connected to the BMC and/or the motherboard CP L D through one or more devices and cables that do not change signals and data transmission, and the embodiments provided by the present disclosure are not affected by the number of the hard disk backplanes CP L D, so in order to describe the technical solution of the present disclosure more conveniently and clearly, in the process of describing the embodiments, an unspecified hard disk backplane CP L D is used as the hard disk backplane CP L D in the embodiments.
In one embodiment, the hard disk management method is applied to BMC and comprises the steps of obtaining interrupt information, wherein the interrupt information is obtained according to interrupt signals, the interrupt signals are sent by a hard disk backboard CP L D when a hard disk connected with the hard disk backboard CP L D is abnormal, determining the hard disk CP L D connected with an abnormal hard disk according to the interrupt information, obtaining hard disk abnormal information of the hard disk CP L D connected with the abnormal hard disk, and refreshing the hard disk information according to the hard disk abnormal information.
Specifically, as shown in fig. 1, the present embodiment includes the steps of:
in step S11, interrupt information is acquired.
The interrupt information is obtained according to an interrupt signal, and the interrupt signal is sent by a hard disk backboard CP L D when the hard disk connected with the hard disk backboard CP L D is abnormal, wherein the interrupt signal is BMC
And step S12, determining the hard disk CP L D connected with the abnormal hard disk according to the interrupt information.
And step S13, acquiring the abnormal hard disk information of the hard disk CP L D connected with the abnormal hard disk, and refreshing the hard disk information according to the abnormal hard disk information.
In this embodiment, the BMC does not actively poll and access each hard disk backplane CP L D, but only acquires the hard disk exception information of the hard disk CP L D connected with the abnormal hard disk according to the interrupt information obtained by the interrupt signal sent by the hard disk backplane CP L D, and then refreshes the hard disk information according to the hard disk exception information, thereby reducing resource consumption of the BMC.
The hard disk abnormity of the present disclosure refers to any abnormal operation state of hard disk failure, offline, power failure, etc.
The hard disk management process is completed, so that the BMC resource occupied by the refreshing of the hard disk information is reduced.
As a technical scheme, an interrupt information channel is connected between the BMC and the mainboard CP L D, the interrupt information is obtained according to an interrupt signal, the interrupt signal is sent by the hard disk backboard CP L D when a hard disk connected with the hard disk backboard CP L D is abnormal, the interrupt information is obtained from the mainboard CP L D through the interrupt information channel, and the interrupt information is obtained by the mainboard CP L D according to the received interrupt signal sent by the hard disk backboard CP L D.
As shown in fig. 2, an interrupt information path is connected between the BMC and the motherboard CP L D, that is, an interrupt information path between the GPIO1 of the BMC and the GPIO4 of the motherboard CP L D, and the motherboard CP L D receives an interrupt signal sent by the hard disk backplane CP L D and performs logic processing according to the interrupt signal, so that once an abnormality occurs in the hard disk connected to the hard disk backplane CP L D, the BMC can receive interrupt information from the motherboard CP L D through the L ocal Bus.
As a technical solution, the determining, according to the interrupt information, the hard disk CP L D connected with the abnormal hard disk includes querying a storage unit of the main board CP L D, and determining, according to the queried abnormal record of the hard disk CP L D, the hard disk CP L D connected with the abnormal hard disk, where the abnormal record of the hard disk CP L D is obtained by the main board CP L D according to the received interrupt signal.
After the main board CP L D receives the interrupt signal sent by the hard disk backplane CP L D, the information of the hard disk backplane CP L D that sends the interrupt signal is recorded and stored in its own storage unit, such as a register, so that the BMC can query which hard disk backplane CP L D is connected with the abnormal hard disk in the storage unit of the main board CP L D.
As a technical scheme, whether the function of sending an interrupt signal is enabled or not is judged by the hard disk back plate CP L D, if so, the method is executed, the interrupt information is obtained according to the interrupt signal, the interrupt signal is sent by the hard disk back plate CP L D when the hard disk connected with the hard disk back plate CP L D is abnormal, the hard disk CP L D connected with the abnormal hard disk is determined according to the interrupt information, and the hard disk abnormal information of the hard disk CP L D connected with the abnormal hard disk is obtained.
If the hard disk backplane CP L D does not enable the function of sending the interrupt signal, the function may not be started by the hard disk backplane, or the function may not be supported by the hard disk backplane, and the BMC can still refresh the hard disk information in a polling mode, so that the compatibility of the technical scheme is improved.
The method for acquiring the hard disk abnormal information of the hard disk CP L D connected with the abnormal hard disk and refreshing the hard disk information according to the hard disk abnormal information comprises the steps of accessing and only accessing the hard disk CP L D connected with the abnormal hard disk, acquiring the hard disk abnormal information of the hard disk CP L D connected with the abnormal hard disk and refreshing the hard disk information according to the hard disk abnormal information in the step.
Compared with the technical scheme, in the embodiment, only the hard disk CP L D connected with the abnormal hard disk is accessed, so that the consumption of BMC resources is further reduced.
The method comprises the steps of accessing a storage unit of a main board CP L D, obtaining hard disk abnormal information of a hard disk CP L D connected with an abnormal hard disk, and refreshing the hard disk information according to the hard disk abnormal information, wherein the hard disk abnormal information stored in the storage unit of the main board CP L D is obtained by the main board CP L D accessing the hard disk CP L D connected with the abnormal hard disk.
The mainboard CP L D collects the hard disk abnormal information reported by the hard disk backboard CP L D, and the BMC acquires the information from the mainboard CP L D, so that the condition that the BMC needs to inquire the plurality of hard disk backplates CP L D when the plurality of hard disk backplates CP L D send interrupt signals is avoided, and the BMC resource consumption is further reduced.
As a technical scheme, the main board CP L D and the hard disk CP L D are provided with four signal paths, the main board CP L D accesses the hard disk CP L D through the four signal paths, and the four signal paths are provided with switches, and the four signal paths are switched to open or close the JTAG function.
As shown in fig. 3, the hard disk backplane and the motherboard are still connected by six paths, wherein the hard disk backplane CP L D is no longer connected to the BMC via the I2C bus, and the two paths thus vacated are connected to the motherboard CP L D, so that four signal paths are formed between the motherboard CP L D and the hard disk CP L D.
In order to support the inherent procedure of JTAG upgrading the hard disk backplane CP L D, four signal paths are required between the main board CP L D and the hard disk backplane CP L D, and these 4 four signal paths are used for JTAG signals.
In order to support the BMC to collect the hard disk information in an interrupt mode, signals are needed to transmit the hard disk information between the main board CP L D and the hard disk backplane CP L D.
Information is transmitted between the main board CP L D and the hard disk back board CP L D through common GPIO, and the JTAG function is switched to only when the inherent program of the hard disk back board CP L D is required to be upgraded by JTAG, so JTAGEN of the hard disk back board CP L D is required to be invalid by default.
Then the hard disk backplane is designed with the following two conditions: if JTAG is high effective, that is, JTAG is high, the hard disk backplane pulls down GPIO1 signal to be used as the hard disk backplane in place, and then directly connects GPIO1 to JTAG pin. If JTAG is active low, that is, JTAG is low, the hard disk backplane pulls down the GPIO1 signal to be used as the hard disk backplane, and then connects the pulled down signal to JTAG pin after passing through an inverter.
The design of the main board CP L D needs to configure GPIO1 into a bidirectional pin to support input and output, the GPIO1 defaults to input, does not drive the external device and detects an in-place signal of the hard disk backboard, only needs JTAGEN for controlling the hard disk backboard CP L D to output the signal externally, and does not detect the in-place signal of the hard disk at the moment and does not need detection.
The second stage of the change-over switch is two-way input and one-way output, a plurality of second stage of the change-over switch are required to be designed, one second stage of the change-over switch corresponds to each hard disk backplane, the output of the second stage of the change-over switch is 4 common GPIO signals to each hard disk backplane, the input of the second stage of the change-over switch is JTAG signals from BMC (output from the first stage of the change-over switch) and signals from a main board CP L D register module, the first stage of the change-over switch is one-way input and multi-way output, only one first stage of the change-over switch is required to be designed, the input of the first stage of the change-over.
The register module of the main board CP L D needs to provide control bits of the switch and JTAG en for BMC direct control.
After the user initiates the online upgrade operation, the BMC accesses the CP L D register module of the mainboard, and enables the control bit corresponding to the hard disk backplane, and the CP L D register of the mainboard is communicated through L ocal Bus protocol.
After the main board CP L D detects the control bit is enabled, the two-stage switch is turned on, the JTAG signal of BMC is output to the corresponding hard disk backboard, meanwhile, GPIO1 is configured to output, and high level is output to the JTAGEN pin of the hard disk backboard CP L D, at this time, the JTAG pin of the hard disk backboard CP L D is configured to be a special pin.
The BMC can access the NVCM of the hard disk backplane CP L D through JTAG to upgrade the firmware program.
After the upgrade is completed, the BMC needs to release the control bit, and after the main board CP L D detects the release of the control bit, the path is immediately switched back to the default state, so as to ensure the collection of the information of the hard disk backplane.
The data transmission protocol between the main board CP L D and the hard disk back board CP L D is realized through four GPIOs, a protocol similar to SGPIO can be adopted, and when hard disk information is collected, power supply enabling and power supply states need to be transmitted so as to ensure the realization of power-on control and power supply state detection.
The register module of the main board CP L D needs to set 1 SGPIO signal for each hard disk backplane at the same time to collect all hard disk information of the entire server, the main board CP L D needs to arrange all hard disk information according to the actual physical slot number, and the hard disk backplane CP L D is only similar to a hard disk information sensor.
When the main board CP L D detects that the information of any hard disk changes, an interrupt signal is generated and transmitted to the BMC.
In an embodiment, the present disclosure provides a hard disk management device, as shown in fig. 4, applied to BMC, the device includes an information module 21 configured to obtain interrupt information, where the interrupt information is obtained according to an interrupt signal, where the interrupt signal is sent by a hard disk backplane CP L D when an abnormality occurs in a hard disk connected to the hard disk backplane CP L D, a processing module 22 configured to determine a hard disk CP L D connected to an abnormal hard disk according to the interrupt information, and a management module 23 configured to obtain hard disk abnormality information of the hard disk CP L D connected to the abnormal hard disk, and refresh the hard disk information according to the hard disk abnormality information.
The BMC does not actively poll and access each hard disk backboard CP L D, only acquires the hard disk abnormal information of the hard disk CP L D connected with the abnormal hard disk according to the interrupt information obtained by the interrupt signal sent by the hard disk backboard CP L D, and then refreshes the hard disk information according to the hard disk abnormal information, so that the resource consumption of the BMC is reduced.
In an embodiment, the present disclosure provides an electronic device, including a processor and a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions capable of being executed by the processor, and the processor executes the machine-executable instructions to implement the foregoing hard disk management method, and from a hardware level, a schematic diagram of a hardware architecture may be as shown in fig. 5.
In one embodiment, the present disclosure provides a machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the aforementioned hard disk management method.
Here, a machine-readable storage medium may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and so forth. For example, the machine-readable storage medium may be: a RAM (random access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
The systems, devices, modules or units described in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the various elements may be implemented in the same one or more software and/or hardware implementations in practicing the disclosure.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Furthermore, these computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (which may include, but is not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an embodiment of the present disclosure, and is not intended to limit the present disclosure. Various modifications and variations of this disclosure will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure should be included in the scope of the claims of the present disclosure.

Claims (10)

1. A hard disk management method is applied to BMC and comprises the following steps:
acquiring interrupt information, wherein the interrupt information is acquired according to an interrupt signal, and the interrupt signal is sent by a hard disk back plate CP L D when a hard disk connected with the hard disk back plate CP L D is abnormal;
determining a hard disk CP L D connected with an abnormal hard disk according to the interrupt information;
acquiring the hard disk abnormal information of the hard disk CP L D connected with the abnormal hard disk, and refreshing the hard disk information according to the hard disk abnormal information.
2. The method of claim 1, wherein the BMC is connected to a motherboard CP L D via an interrupt message path;
the obtaining of the interrupt information is performed according to an interrupt signal, the interrupt signal is sent by a hard disk backplane CP L D when a hard disk connected with the hard disk backplane CP L D is abnormal, and includes,
the interrupt information is obtained from the main board CP L D through the interrupt information path, and the interrupt information is obtained by the main board CP L D according to the received interrupt signal sent by the hard disk backplane CP L D.
3. The method according to claim 2, wherein the determining of the hard disk CP L D connected with the abnormal hard disk according to the interrupt information comprises,
inquiring a storage unit of the mainboard CP L D, and determining the hard disk CP L D connected with an abnormal hard disk according to the inquired abnormal record of the hard disk CP L D, wherein the abnormal record of the hard disk CP L D is obtained by the mainboard CP L D according to the received interrupt signal.
4. The method of claim 1, wherein determining whether the hard disk backplane CP L D enables the function of sending the interrupt signal, if yes, performing the following method:
acquiring interrupt information, wherein the interrupt information is acquired according to an interrupt signal, and the interrupt signal is sent by a hard disk back plate CP L D when a hard disk connected with the hard disk back plate CP L D is abnormal;
determining a hard disk CP L D connected with an abnormal hard disk according to the interrupt information;
the hard disk abnormality information of the hard disk CP L D to which the abnormal hard disk is connected is acquired.
5. The method according to claim 1, wherein the hard disk abnormality information of the hard disk CP L D connected with the abnormal hard disk is obtained, and the hard disk information is refreshed according to the hard disk abnormality information, including,
in this step, the hard disk CP L D connected with the abnormal hard disk is accessed and only accessed, the hard disk abnormal information of the hard disk CP L D connected with the abnormal hard disk is acquired, and the hard disk information is refreshed according to the hard disk abnormal information.
6. The method according to claim 1, wherein the hard disk abnormality information of the hard disk CP L D connected with the abnormal hard disk is obtained, and the hard disk information is refreshed according to the hard disk abnormality information, including,
accessing a storage unit of the main board CP L D, acquiring hard disk abnormal information of a hard disk CP L D connected with an abnormal hard disk, and refreshing the hard disk information according to the hard disk abnormal information;
the hard disk abnormal information stored in the storage unit of the main board CP L D is acquired by the main board CP L D accessing the hard disk CP L D connected with an abnormal hard disk.
7. The method of claim 6, wherein the motherboard CP L D has four signal paths with the hard disk CP L D, and the motherboard CP L D accesses the hard disk CP L D through the four signal paths;
the four signal paths have switches that turn on or off the JTAG function.
8. A hard disk management device is applied to BMC, and the device comprises:
the information module is used for acquiring interrupt information, wherein the interrupt information is acquired according to an interrupt signal, and the interrupt signal is sent by a hard disk back plate CP L D when a hard disk connected with the hard disk back plate CP L D is abnormal;
the processing module is used for determining a hard disk CP L D connected with an abnormal hard disk according to the interrupt information;
and the management module is used for acquiring the abnormal information of the hard disk CP L D connected with the abnormal hard disk and refreshing the hard disk information according to the abnormal information of the hard disk.
9. An electronic device, comprising: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor to perform the method of any one of claims 1 to 7.
10. A machine-readable storage medium having stored thereon machine-executable instructions which, when invoked and executed by a processor, cause the processor to implement the method of any of claims 1-7.
CN202010126925.6A 2020-02-28 2020-02-28 Hard disk management method, device, equipment and machine readable storage medium Pending CN111459768A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010126925.6A CN111459768A (en) 2020-02-28 2020-02-28 Hard disk management method, device, equipment and machine readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010126925.6A CN111459768A (en) 2020-02-28 2020-02-28 Hard disk management method, device, equipment and machine readable storage medium

Publications (1)

Publication Number Publication Date
CN111459768A true CN111459768A (en) 2020-07-28

Family

ID=71678172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010126925.6A Pending CN111459768A (en) 2020-02-28 2020-02-28 Hard disk management method, device, equipment and machine readable storage medium

Country Status (1)

Country Link
CN (1) CN111459768A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113204510A (en) * 2021-04-29 2021-08-03 山东英信计算机技术有限公司 Server management architecture and server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598844A (en) * 2014-12-31 2015-05-06 湖南国科微电子有限公司 Power failure protection method and device for preventing corruption of system files of solid-state disk
CN106502583A (en) * 2016-10-12 2017-03-15 记忆科技(深圳)有限公司 A kind of method for reducing solid state hard disc operating lag
CN109062753A (en) * 2018-06-01 2018-12-21 新华三技术有限公司成都分公司 A kind of hard disk monitoring system and monitoring method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598844A (en) * 2014-12-31 2015-05-06 湖南国科微电子有限公司 Power failure protection method and device for preventing corruption of system files of solid-state disk
CN106502583A (en) * 2016-10-12 2017-03-15 记忆科技(深圳)有限公司 A kind of method for reducing solid state hard disc operating lag
CN109062753A (en) * 2018-06-01 2018-12-21 新华三技术有限公司成都分公司 A kind of hard disk monitoring system and monitoring method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113204510A (en) * 2021-04-29 2021-08-03 山东英信计算机技术有限公司 Server management architecture and server
CN113204510B (en) * 2021-04-29 2023-02-28 山东英信计算机技术有限公司 Server management architecture and server
US11841821B1 (en) 2021-04-29 2023-12-12 Shandong Yingxin Computer Technologies Co., Ltd. Server management framework and server

Similar Documents

Publication Publication Date Title
US10846160B2 (en) System and method for remote system recovery
US9954727B2 (en) Automatic debug information collection
US10402207B2 (en) Virtual chassis management controller
US9208047B2 (en) Device hardware agent
US10346156B2 (en) Single microcontroller based management of multiple compute nodes
CN109471770B (en) System management method and device
US6804748B2 (en) Intelligent backplane for serial storage architectures method and system
US20090024764A1 (en) Tracking The Physical Location Of A Server In A Data Center
US8397053B2 (en) Multi-motherboard server system
CN109144922B (en) Data transmission device and method thereof
CN102880527B (en) Data recovery method of baseboard management controller
US9037878B2 (en) Server rack system
CN111966189B (en) Flexibly configured multi-computing-node server mainboard structure and program
CN102331959A (en) Server system
CN110658758A (en) Control method and control system
JP2020053017A (en) System and method for hybrid power source
CN107179804B (en) Cabinet device
US7962735B2 (en) Servo device auto-booted upon power supply recovery and method thereof
CN111459768A (en) Hard disk management method, device, equipment and machine readable storage medium
CN112019455B (en) Switch monitoring device and method based on programmable logic device
CN115599617B (en) Bus detection method and device, server and electronic equipment
CN218824636U (en) Power supply detection device for server hard disk backboard
CN113760803A (en) Server and control method
US20200314172A1 (en) Server system and management method thereto
TW201729097A (en) Rack

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200728