Disclosure of Invention
In view of this, the present application provides an in-line hard disk back plate, an off-line diagnosis method thereof, and a server for overcoming the defects in the prior art.
The embodiment of the application provides a direct-insert type hard disk backboard, which comprises a main board interface, a hard disk interface and an off-line diagnosis circuit, wherein the main board interface is used for being connected with a server main board, the hard disk interface is used for being connected with at least one hard disk, the off-line diagnosis circuit comprises an off-line power supply module, a power supply switching module, an analysis storage module and a fault positioning module which are sequentially connected, and the off-line power supply module and the power supply switching module are respectively used for being connected with a system power supply provided by a connected main board power supply;
the off-line power supply module comprises an energy storage unit, and is used for charging the energy storage unit through the system power supply under the condition that the hard disk backboard is connected with the main board;
the power supply switching module is used for switching the system power supply into the energy storage unit to supply power to the offline diagnosis circuit under the condition that the hard disk backboard is disconnected with the main board;
the analysis storage module comprises a storage unit and is used for respectively storing and sending the acquired fault state information of each connected hard disk to the fault positioning module through the storage unit so that the fault positioning module can perform hard disk fault state indication under the condition that the hard disk backboard is disconnected with the main board.
In one embodiment, the in-line hard disk back plate further comprises: the first end of the switch unit is connected with the fault locating module, and the second end of the switch unit is connected with the power ground;
the switch unit is used for indicating the fault state of the hard disk after the fault positioning module is communicated with the power ground.
In one embodiment, the fault locating module comprises a plurality of indicator lamps and a plurality of driving resistors, wherein the number of the indicator lamps is equal to that of the connected hard disks, and different indicator lamps are used for indicating fault states of different hard disks;
one end of each indicator lamp is respectively connected with different signal output ends of the analysis storage module, the other end of each indicator lamp is respectively connected with one end of a corresponding driving resistor, and the other end of each driving resistor is connected with the first end of the switch unit; and the output values of the different signal output ends of the analysis storage module are associated with the fault state information of the corresponding hard disk.
In one embodiment, the off-line power supply module further comprises a voltage dividing unit, a current limiting resistor and a switching tube;
the signal input end of the voltage dividing unit is used for being connected with the first voltage output by the system power supply and one end of the current limiting resistor, and the voltage dividing signal output end is connected with the first end of the switching tube;
the other end of the current limiting resistor is connected with the second end of the switching tube, and the third end of the switching tube is connected with the energy storage unit;
the energy storage unit is also connected with a first input end of the power supply switching module, and a second input end of the power supply switching module is used for accessing a second voltage output by the system power supply.
In one embodiment, the energy storage unit is a super capacitor, wherein an anode of the super capacitor is connected with the third end of the switching tube and the first input end of the power supply switching module respectively, and a cathode of the super capacitor is connected with the power supply ground.
In one embodiment, the switch tube is a triode or a MOS tube; when the switching tube is an NPN tube, the base electrode of the NPN tube is used as the first end of the switching tube and is connected with the voltage division signal output end; the collector electrode is used as the second end of the switching tube and is connected with the other end of the current limiting resistor; and the emitter is used as a third end of the switching tube and is connected with the positive electrode of the super capacitor.
In one embodiment, the power supply switching module includes a first diode and a second diode, where an anode of the first diode is connected to an output end of the offline power supply module, an anode of the second diode is used to access a second voltage output by the system power supply, and a parallel output end of a cathode of the first diode and a parallel output end of a cathode of the second diode are connected to the parsing storage module.
In one embodiment, the in-line hard disk back plate further comprises: the first signal end of the bus switching module is connected with the hard disk interface, the second signal end is connected with the signal input end of the analysis storage module through a bus, and the second signal end is also used for being connected with the signal end of the main board;
the bus switching module is used for switching bus channels under the condition that the hard disk backboard is connected with the main board so that the main board can acquire the state information of each hard disk.
The embodiment of the application also provides a server, which comprises: the direct-insertion type hard disk drive comprises a main board, a hard disk backboard and a hard disk, wherein the hard disk backboard adopts the direct-insertion type hard disk backboard, the hard disk backboard comprises a main board interface and a hard disk interface, the hard disk backboard is connected with the main board through the main board interface, and is connected with the hard disk through the hard disk interface.
The embodiment of the application also provides an offline diagnosis method of the direct-insert hard disk backboard, which adopts the direct-insert hard disk backboard, wherein the direct-insert hard disk backboard further comprises a switch unit, a first end of the switch unit is connected with the fault positioning module, and a second end of the switch unit is connected with a power supply ground; the offline diagnostic method comprises the following steps:
under the condition that the hard disk backboard is connected with the main board, the energy storage unit is charged through a system power supply;
receiving state information of each connected hard disk monitored by the main board, storing the state information into the storage unit, and analyzing and sending the state information to the fault locating module;
under the condition that the hard disk backboard is disconnected with the main board, switching the system power supply into the energy storage unit to supply power for the offline diagnosis circuit;
and switching on the switch unit so as to indicate the fault state of the hard disk through the fault locating module.
The embodiment of the application has the following beneficial effects:
the direct-insert type hard disk backboard of the embodiment is introduced into the offline diagnosis circuit, under the condition that the hard disk backboard is connected with the main board, the set energy storage unit is charged, the state information of each monitored hard disk is acquired from the main board, the fault state information is further analyzed and obtained and stored, and the direct-insert type hard disk backboard is further indicated under the condition that the hard disk backboard is disconnected with the main board through the visual fault locating module, so that a user can conveniently and quickly locate the faulty hard disk during offline maintenance, the maintenance efficiency is greatly improved, and the direct-insert type hard disk backboard has the characteristics of simple structure and low cost.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments.
The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present application.
The terms "comprises," "comprising," "including," or any other variation thereof, are intended to cover a specific feature, number, step, operation, element, component, or combination of the foregoing, which may be used in various embodiments of the present application, and are not intended to first exclude the presence of or increase the likelihood of one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and should not be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the application belong. The terms (such as those defined in commonly used dictionaries) will be interpreted as having a meaning that is the same as the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in connection with the various embodiments of the application.
Example 1
Referring to fig. 1, the present embodiment provides an in-line hard disk back plate 100, which has an offline diagnosis function, and can quickly locate a failed hard disk even if the in-line hard disk back plate is disconnected from a server motherboard, thereby greatly improving maintenance efficiency.
As shown in fig. 1, the in-line hard disk back plate 100 will be described in detail.
The in-line hard disk back plate 100 includes a motherboard interface 10, a hard disk interface 20, and an off-line diagnostic circuit 30, wherein the motherboard interface 10 is used for connecting to a server motherboard, and the hard disk interface 20 is used for connecting to at least one hard disk. The offline diagnosis circuit 30 is mainly used for quickly positioning a failed hard disk when the in-line hard disk back plate 100 is disconnected from the server motherboard, for example, after the in-line hard disk back plate 100 is detached from the motherboard in a chassis, so that a user can efficiently determine the hard disk with a problem. It should be appreciated that the in-line hard disk back plate 100 may also include some other desired basic circuitry or structures, such as voltage conversion circuitry, heat dissipation components, etc., which will not be described herein.
Generally, the in-line hard disk back plate 100 is used as an intermediate bridge between a server motherboard and a hard disk, and can realize operations such as accessing and using the hard disk by the server motherboard. For the above-mentioned motherboard interface 10, for example, the electrical connection between the server motherboard and the in-line hard disk backplane may be implemented by a connector with a corresponding number of pins, and in one embodiment, the motherboard interface 10 may be a male connector of the connector, and a female connector of the connector is disposed on the motherboard. It should be understood that the motherboard interface 10 is used for implementing information interaction between the motherboard and the hard disk, and also providing power on the motherboard to the in-line hard disk back plate for the related circuits on the back plate to work normally. For the hard disk interface 20, an interface conforming to the actual hard disk type may be used to implement the electrical connection between the back plate and the hard disk, for example, but not limited to, an NVME (Non-Volatile Memory express) interface, a SATA (Serial ATA) interface, and the like.
In order to solve the problem that the direct-insert type hard disk backboard 100 cannot judge the state of the hard disk and is difficult to maintain after being detached from the main board, the embodiment is to add an offline diagnosis circuit 30 on the hard disk backboard, and the circuit can realize the fault location of the hard disk in an offline state, so that the direct-insert type hard disk backboard has the advantages of simple structure, lower cost and better practicability.
As shown in fig. 1, the offline diagnosis circuit 30 mainly includes an offline power supply module 310, a power switching module 320, an analysis storage module 330 and a fault location module 340, wherein the power switching module 320, the analysis storage module 330 and the fault location module 340 are sequentially connected, an output end of the offline power supply module 310 is connected with an input end of the power switching module 320, and an input end of the offline power supply module 310 and another input end of the power switching module 320 are respectively used for accessing a system power provided by a connected motherboard power supply.
Alternatively, the input of the offline power module 310 and the other input of the power switching module 320 may be connected to different magnitudes of system power voltages. For example, the offline power module 310 is used to access a first voltage of the system power, and the power switching module 320 is used to access a second voltage of the system power, typically the first voltage is greater than the second voltage. The first voltage or the second voltage may be obtained directly from the system power supply, or may be obtained by further voltage conversion from the system power supply.
In this embodiment, the offline power supply module 310 includes an energy storage unit 311, which is mainly used for online charging the energy storage unit 311 inside the power supply module through a system power supply connected to the power supply module when the direct-insert hard disk back plate is connected to the main board (i.e., in an online state), so as to realize electric quantity storage. Further optionally, after the charging is completed, the offline power module 310 is further configured to control to stop the charging, so as to prevent an overcharge phenomenon, which may improve the service life of the energy storage unit 311. It is understood that the energy storage unit 311 has a charging and discharging function, and for example, a super capacitor or the like may be used.
In one embodiment, as shown in fig. 2, the offline power supply module 310 includes, in addition to the energy storage unit 311, a voltage division unit 312, a current limiting resistor R, and a switching tube Q, where, illustratively, a signal input end of the voltage division unit 312 is connected to one end of the current limiting resistor R, and a voltage division signal output end is connected to a first end of the switching tube Q; the other end of the current limiting resistor R is connected with the second end of the switching tube Q, and the third end of the switching tube Q is connected with the energy storage unit 311. The signal input end of the voltage dividing unit 312 is used as an input end of the offline power module 310 for accessing a system power, for example, a first voltage Vcc1 that can be used for accessing a system power output, and the first voltage Vcc1 will charge the energy storage unit 311. Meanwhile, the energy storage unit 311 is also used as an output terminal of the offline power supply module 310, and is connected to the first input terminal of the power switching module 320, so as to supply power when needed.
For the voltage dividing unit 312, the connected system power voltage is divided, so as to control the switch tube Q to be turned on and off, thereby realizing the charge control of the energy storage unit 311. For example, the voltage dividing unit 312 may be obtained by connecting a plurality of voltage dividing resistors in series, and further, the corresponding series node of the plurality of voltage dividing resistors is used as the voltage dividing signal output terminal.
The current limiting resistor R is used for limiting the current of the connected system power supply, so as to prevent the energy storage unit 311, the switching tube Q and other devices from being damaged due to excessive current. It is understood that the number of the current limiting resistors R is not limited to one, and the specific number and resistance can be selected according to practical requirements.
For example, a transistor, a MOS transistor, or other devices having switching characteristics may be used as the switching transistor Q. When the offline power supply module 310 is connected with the system power supply voltage, if the system power supply voltage is greater than the starting voltage of the switching tube Q, the switching tube Q enters a conducting state, and at the moment, the system power supply voltage charges the energy storage unit 311; when the voltage of the energy storage unit 311 meets the corresponding voltage condition, the switching tube Q is turned off to prevent the energy storage unit 311 from being overcharged.
In this embodiment, the power switching module 320 is mainly used for switching from the system power supply to the power supply of the offline diagnostic circuit 30 by the energy storage unit 311 when the in-line hard disk backboard 100 is disconnected from the motherboard (i.e. in an offline state), so as to ensure that the data in the analysis storage module 330 is not lost in the offline state, and to realize offline hard disk fault location.
In one embodiment, as shown in fig. 2, the power switching module 320 includes a first diode D1 and a second diode D2, where an anode of the first diode D1 is used as a first input terminal of the power switching module 320 and is connected to an output terminal of the offline power supply module 310; the anode of the second diode D2 is used as a second input terminal of the power switching module 320, and is used for accessing the system power voltage, for example, the second voltage Vcc2 which is converted and output by the system power supply can be accessed; and the parallel output ends of the cathode of the first diode D1 and the cathode of the second diode D2 are used as the output ends of the power switching module 320, and are connected to the parsing memory module 330 to supply power thereto.
In this embodiment, the analysis storage module 330 includes a storage unit 331, which is configured to store the obtained fault status information of each connected hard disk through the storage unit 331 therein, and send the fault status information to the fault location module 340, so that the fault location module 340 can perform fault status indication of the hard disk under the condition that the back plate is disconnected from the motherboard, i.e. realize offline diagnosis.
When the back plate is connected with the main plate, the analysis storage module 330 may obtain status monitoring information of the main plate on each hard disk from the main plate, and store the status monitoring information in the storage unit 331 respectively, so as to obtain fault status information of each hard disk by analyzing the status monitoring information, and finally output the fault status information of each hard disk to the fault location module 340 for corresponding indication through the signal output end.
It will be appreciated that the output values of the respective signal outputs in the analytical storage module 330 for connection to the fault location module are associated with fault status information of the corresponding hard disk. If the fault status information is indicated by high and low levels output from the signal output terminal, for example, there may be a high level indicating a fault and a low level indicating no fault (i.e., normal), or vice versa. In one embodiment, the parsing memory module 330 may be implemented by an expansion chip with a memory unit 331 and its required peripheral circuits, and the memory unit 331 is an internal register of the expansion chip, for example, a register may be allocated to each hard disk to store fault status information.
In this embodiment, the fault locating module is mainly used for performing visual fault indication during hard disk diagnosis, so that a user can conveniently and rapidly find out a hard disk with a problem, and further maintenance is convenient. The fault locating module may assign a unique address indicating unit to each hard disk, and when any hard disk fails, the corresponding address indicating unit indicates accordingly.
In one embodiment, as shown in fig. 3, the fault location module may include a number of indicator LEDs equal to the number of connected hard disks, wherein different indicator LEDs are used to indicate fault conditions of different hard disks. When the analysis storage module 330 adopts a chip to connect with the indicator LEDs, each indicator LED is further correspondingly connected in series with a driving resistor, for example, a pull-up resistor or a pull-down resistor (such as the resistor Rf shown in fig. 3), which may be specifically related to the connection mode of the indicator LEDs. Of course, the device for signal indication can also adopt a buzzer with low power consumption to realize sound indication besides the indicator light LED.
In view of the limited amount of electricity stored in the energy storage unit 311 in the offline power supply module 310, to further reduce the electricity consumption of the energy storage unit 311, as shown in fig. 3, the in-line hard disk back plate 100 further includes: the switch unit 350 is exemplarily configured to connect the first end of the switch unit 350 to the fault location module 340 and the second end of the switch unit is connected to the power ground, and the switch unit 350 is configured to enable the fault location module 340 to be connected to the power ground for indicating a hard disk fault state, that is, enable the fault location module 340 to be in an on state with the power ground, and enable the indication of the hard disk fault state.
In one embodiment, when the switch unit 350 is included, one end of each indicator LED in the fault location module is connected to a different signal output end of the analysis storage module 330, the other end is connected to one end of the corresponding pull-down resistor Rf, and the other end of each pull-down resistor Rf is connected to the first end of the switch unit 350.
It can be understood that when the switch unit 350 is in the off state all the time, the fault location module 340 cannot form a complete discharge loop, so that the fault status indication is not performed once the off-line state occurs, the electric energy in the energy storage unit 311 is consumed early, and the fault location module 340 is turned on with the power supply ground after the user disconnects the back plate from the main board, so that the indication can be performed. By setting the switch unit 350, the data stored in the analysis storage module 330 can be stored for a long time without being lost, and even if an emergency power failure occurs, a user does not need to worry about losing the stored data due to long-time power failure, so that offline maintenance of the hard disk cannot be performed.
Further, the in-line hard disk back plate 100 further includes: and the bus switching module 360, wherein the bus switching module 360 is configured to perform bus channel switching when the back plate is connected to the motherboard, so that the motherboard can obtain status information of each hard disk. In one embodiment, the first signal end of the bus switching module 360 is exemplarily connected to the hard disk interface 20, and the second signal end is connected to the signal input end of the parsing storage module 330 through a bus, and the second signal end is further used for connecting to a signal end of the motherboard to obtain status information of the hard disk monitored by the motherboard from the motherboard. It can be appreciated that the number of interface pins between the motherboard and the backplane can be reduced by the bus switching module 360, so as to facilitate pin management of the server.
The direct-insert hard disk backboard 100 of the embodiment introduces the offline diagnosis circuit 30, under the condition that the backboard is connected with the main board, the energy storage unit 311 is charged, and the state information of each monitored hard disk is acquired from the main board, so that the fault state information is obtained through analysis and stored, and the direct-insert hard disk backboard is further indicated under the condition that the backboard is disconnected with the main board through the visual fault locating module 340, so that a user can conveniently and quickly locate the faulty hard disk during offline maintenance, the maintenance efficiency is greatly improved, and the circuit has the characteristics of simple structure and low cost. In addition, by providing a switch unit 350, the power consumption of the energy storage unit 311 can be sufficiently reduced, so that the data can be stored for a longer time, and the maintenance operation is more friendly for maintenance personnel, thereby having better practicability.
Example 2
Based on the in-line hard disk back plate 100 of the above embodiment 1, the present embodiment will be described with a specific back plate design for performing offline diagnosis operation.
For example, as shown in fig. 4, in addition to the above-mentioned motherboard interface 10 and the hard disk interface 20, the backplane includes an offline diagnosis circuit 30, where the offline diagnosis circuit 30 includes an offline power supply module 310, a power switching module 320, an analysis storage module 330 and a fault location module 340, an input end of the offline power supply module 310 is used for accessing a first voltage obtained by a system power supply provided by a motherboard power supply, an output end of the offline power supply module 310 is connected to a first input end of the power switching module 320, and a second input end of the power switching module 320 is used for directly accessing a second voltage obtained by the system power supply, for example, the first voltage is 5V, and the second voltage is 3.3V. For the energy storage unit 311 in the offline power supply module 310, a super capacitor is adopted for implementation. The switching transistor Q is implemented by a triode, which will be described here as an NPN transistor. Of course, the connection mode of the switching tube Q is not limited to NPN tubes, and PNP tubes or MOS tubes may be adopted, and accordingly, the connection mode of the switching tube Q may be adaptively adjusted, which are all within the protection scope of the present application.
As shown in fig. 4, the offline power supply module 310 is mainly composed of voltage dividing resistors R11 and R12, current limiting resistors R21 and R22, an NPN tube, and a supercapacitor C0, wherein a base of the NPN tube is used as a first end of the switching tube Q and is connected to a voltage dividing signal output end; the collector is used as the second end of the switching tube Q and is connected with the other end of the current limiting resistor R; the emitter is used as the third end of the switching tube Q and is connected with the anode of the super capacitor C0.
While the power switching module 320 includes a first diode D1 and a second diode D2, which may be implemented using a common-cathode dual schottky diode die, although two separate diodes may be used. The analysis storage module 330 is mainly implemented by using an I/O expansion chip, such as a PCA95xx serial expansion chip, and uses an internal register to store information and analyze fault information of the hard disk, so as to drive fault indication of the corresponding hard disk. The fault locating module 340 sets an indicator light LED for the 12 hard disks respectively, where an address of each indicator light LED corresponds to a number of the hard disk. In addition, a switch unit 350 is disposed between the fault location module 340 and the power ground, for example, a switch button SW1 as shown in fig. 4 may be used, and a toggle switch may be used, which is not limited herein.
As shown in fig. 5, the working process of the in-line backboard includes:
in step S10, in the case that the back plate is connected to the motherboard, the energy storage unit 311 in the offline power module 310 is charged by the system power.
When the backboard is connected with the main board, the main board power supply provides required working voltage for the backboard so as to ensure the normal operation of the analysis storage unit 331 and the like; meanwhile, the super capacitor C0 is charged online by the first voltage obtained by the system power supply, and the charging is stopped after the charging is completed.
The first voltage 5V is divided by the voltage dividing resistor and then is output to the base electrode of the switching tube Q by 3.8V, wherein the turn-on voltage of the switching tube Q is about 0.7V, so when the terminal voltage of the super capacitor C0 is less than 3.1V (i.e. 3.8V-0.7V), the switching tube Q is turned on, and the first voltage 5V charges the super capacitor C0 after passing through the current limiting resistor R and the switching tube Q; when the end voltage of the super capacitor C0 is higher than 3.1V, the switching tube Q is closed to prevent overcharge.
Step S20, receiving status information of each connected hard disk monitored by the motherboard, storing the status information in the storage unit 331, and analyzing and sending the status information to the fault location module 340.
A baseboard management controller (IPMB) in a motherboard via I 2 C bus and I 2 The C bus switch accesses each hard disk accessed in the back plate to obtain the state of the hard disk, further sends and stores the state information of the hard disk in real time into a register of the expansion chip, the expansion chip analyzes the data and outputs the data to each indicator light LED, normally, the register is effective in low voltage, and once the BMC monitors that the fail (failure) condition occurs in the hard disk, the corresponding state value is written into the expansion chip, for example, when the first hard disk fails, the led_err0 is written into 1, otherwise, the led_err0 is kept to be 0.
In step S30, when the back plate is disconnected from the motherboard, the system power is switched to the energy storage unit 311 to supply power to the offline diagnostic circuit 30.
In step S40, the switch unit 350 is turned on to indicate the hard disk failure state through the failure positioning module 340.
When the hard disk fails, the direct-insert backboard can be detached from the main board, and the energy storage unit 311 discharges the electricity to the outside at the moment so as to ensure the normal operation of the expansion chip; at this time, by pressing the switch button SW1, if the indicator LED is lighted, the user can quickly locate the failed hard disk, thereby improving maintenance efficiency. Further alternatively, after determining the location of the failed hard disk, the switching unit 350 may be turned off to reduce the power consumption of the super capacitor C0. Thus, the offline diagnosis of the failed hard disk is completed.
Example 3
The embodiment of the present application further proposes a server 200, as shown in fig. 6, wherein the server 200 includes a motherboard 110, a hard disk 120, and an in-line hard disk backplane 100, and the in-line hard disk backplane 100 in the embodiment described above is adopted, and the in-line hard disk backplane includes a motherboard interface 10 and a hard disk interface 20, and is connected to the motherboard 110 through the motherboard interface 10, and is connected to at least one hard disk 120 through the hard disk interface 20. It is understood that the options of the in-line hard disk back plate 100 of the present embodiment are equally applicable to the present embodiment, so the description thereof will not be repeated here.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application.