Hard disk shockproof method, device, equipment and computer readable storage medium

By connecting the baseboard management controller with the vibration sensor, hard drive vibration data is acquired and it is determined whether shock protection is needed. The disk array card is used for hard drive shock protection, which solves the problem of hard drive damage in vibration environment in the existing technology and achieves flexible adaptation and cost saving.

CN115982789BActive Publication Date: 2025-11-21中移信息技术有限公司 +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211557652.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-06
Publication Date
2025-11-21
Estimated Expiration
2042-12-06

AI Technical Summary

Technical Problem

In the existing technology, mechanical hard drives are easily damaged in vibration environments, and the existing shockproof structures cannot flexibly adapt to the shockproof requirements of different hard drives, resulting in resource waste and increased material costs.

Method used

By establishing a connection between the baseboard management controller and the vibration sensor, vibration data of the hard drive is obtained, and the vibration threshold is used to determine whether shock protection is required. The hard drive is protected by the disk array card, avoiding the need for additional shock protection structures.

Benefits of technology

It achieves flexible protection for hard drives based on their shock resistance requirements without adding shockproof structures, saving material costs and effectively preventing hard drive damage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115982789B_ABST
    Figure CN115982789B_ABST
Patent Text Reader

Abstract

The embodiment of the application provides a hard disk shockproof method, device, equipment and computer readable storage medium, the hard disk shockproof method comprises the following steps: establishing the first connection relationship of a baseboard management controller and a disk array card, and the second connection relationship of the baseboard management controller and a vibration sensor, the disk array card is connected with a hard disk through the hard disk backboard of a server, and the vibration sensor is installed on the hard disk backboard; first vibration data of the vibration sensor is acquired; it is judged whether the first vibration data is greater than the vibration threshold of the hard disk matched with the vibration sensor; in the case that the first vibration data is greater than the vibration threshold, notification information is sent to the disk array card corresponding to the hard disk, so that the disk array card protects the hard disk. According to the hard disk shockproof method of the embodiment of the application, the hard disk can be protected from shock according to the vibration data of the vibration sensor without increasing the shockproof structure, which flexibly adapts to the shockproof demand and saves the material cost.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of computers, and particularly relates to a hard disk shockproof method, device, equipment and computer readable storage medium. BACKGROUND

[0002] Due to the complexity and precision of the mechanical hard disk structure, the mechanical vibration of the environment has a high requirement during the operation process. If the mechanical vibration of the environment exceeds the specification of the hard disk, the performance of the mechanical hard disk will be reduced, and the hard disk track will be damaged or the hard disk will be damaged, and other physical permanent damage problems will occur. In addition to the mechanical vibration of the environment, the server itself will also generate vibration when running. When the server is running, the multiple fans for heat dissipation installed on the server will also generate vibration when running, and the violent acceleration or deceleration of the fan will also have a great impact on the operation of the mechanical hard disk.

[0003] In the prior art, a structure for shockproof is usually designed on the case according to the shockproof requirement, but for the solid state hard disk which has high tolerance to vibration, the shockproof case can not be used, and the design of the shockproof structure of the case will cause redundancy, so that the shockproof requirement cannot be flexibly adapted, and due to the limitation of the selection of the shockproof material, the design of the additional shockproof structure also needs to increase more material cost. SUMMARY

[0004] The embodiments of the present application provide a hard disk shockproof method, device, equipment and computer readable storage medium, which can automatically match the hard disk and the vibration sensor, and notify the disk array card to protect the hard disk according to the vibration data of the vibration sensor.

[0005] In a first aspect, the embodiments of the present application provide a hard disk shockproof method applied to a baseboard management controller, the hard disk shockproof method comprising: establishing a first connection relationship between the baseboard management controller and a disk array card, and a second connection relationship between the baseboard management controller and a vibration sensor, the disk array card being connected with a hard disk through a hard disk backboard of a server, and the vibration sensor being installed on the hard disk backboard; obtaining first vibration data of the vibration sensor; judging whether the first vibration data is greater than a vibration threshold of the hard disk matched with the vibration sensor; and in the case that the first vibration data is greater than the vibration threshold, sending notification information to the disk array card corresponding to the hard disk, so as to make the disk array card protect the hard disk.

[0006] According to the embodiments of the first aspect of the present application, before judging whether the first vibration data is greater than the vibration threshold of the hard disk matched with the vibration sensor, the hard disk shockproof method further comprises: obtaining first position information of the hard disk and second position information of the vibration sensor; and matching the hard disk and the vibration sensor according to the first position information and the second position information.

[0007] According to any one of the foregoing embodiments of the first aspect of the present application, the matching of the hard disk and the vibration sensor according to the first position information and the second position information specifically comprises: determining a physical distance between the hard disk and the vibration sensor according to the first position information and the second position information; determining a similarity parameter of the hard disk and the vibration sensor according to the physical distance and a pre-determined similarity coefficient; and determining the vibration sensor matched with the hard disk according to the smallest similarity parameter corresponding to the hard disk.

[0008] According to any one of the foregoing embodiments of the first aspect of the present application, after the matching of the hard disk and the vibration sensor according to the first position information and the second position information, the hard disk shockproof method further comprises: matching a new hard disk and a vibration sensor when the new hard disk is inserted into the hard disk backplane; and clearing the vibration sensor matched with the original hard disk when the original hard disk is removed from the hard disk backplane.

[0009] According to any one of the foregoing embodiments of the first aspect of the present application, before the first vibration data of the vibration sensor is acquired, the hard disk shockproof method further comprises: detecting whether the host of the server is powered on and whether the vibration sensor is in place; acquiring the model information of the hard disk through the disk array card in the case that the host is powered on and the vibration sensor is in place; determining the vibration specification data of the hard disk according to the model information; and determining the vibration threshold of the hard disk according to the vibration specification data.

[0010] According to any one of the foregoing embodiments of the first aspect of the present application, the notification information is sent to the disk array card corresponding to the hard disk to make the disk array card protect the hard disk, specifically comprising: sending the notification information that the first vibration data is greater than the vibration threshold and the vibration specification data of the hard disk to the disk array card, so that the disk array card reduces the rotation speed of the hard disk according to the notification information and the vibration specification data.

[0011] According to any one of the foregoing embodiments of the first aspect of the present application, after the notification information is sent to the disk array card corresponding to the hard disk to make the disk array card protect the hard disk, the hard disk shockproof method further comprises: acquiring second vibration data of the vibration sensor; determining whether the second vibration data is less than or equal to the vibration threshold; and sending the notification information to the disk array card to make the disk array card stop protecting the hard disk in the case that the second vibration data is less than or equal to the vibration threshold.

[0012] According to any one of the foregoing embodiments of the first aspect of the present application, the notification information is sent to the disk array card to make the disk array card stop protecting the hard disk, specifically comprising: sending the notification information that the second vibration data is less than or equal to the vibration threshold to the disk array card, so that the disk array card restores the rotation speed of the hard disk according to the notification information.

[0013] In a second aspect, the embodiments of the present application provide a hard disk shockproof device, which comprises: a establishing module, configured to establish a first connection relationship between a baseboard management controller and a disk array card, and a second connection relationship between the baseboard management controller and a vibration sensor, the disk array card being connected with a hard disk through a hard disk backplane of a server, and the vibration sensor being installed on the hard disk backplane; a first obtaining module, configured to obtain first vibration data of the vibration sensor; a first judging module, configured to judge whether the first vibration data is greater than a vibration threshold of the hard disk matched with the vibration sensor; and a first sending module, configured to send notification information to the disk array card corresponding to the hard disk in the case that the first vibration data is greater than the vibration threshold, so as to make the disk array card protect the hard disk.

[0014] In a third aspect, the embodiments of the present application provide an electronic device, which comprises a processor, a memory, and a computer program stored on the memory and capable of running on the processor, and when the computer program is executed by the processor, the steps of the hard disk shockproof method provided in the first aspect are implemented.

[0015] In a fourth aspect, the embodiments of the present application provide a computer readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the steps of the hard disk shockproof method provided in the first aspect are implemented.

[0016] In the embodiments of the present application, the vibration sensor is installed on the hard disk backplane of the server, and the disk array card is connected with the hard disk through the hard disk backplane of the server. Thus, in the hard disk shockproof method, device, equipment and computer readable storage medium of the embodiments of the present application, after the baseboard management controller establishes the first connection relationship with the disk array card and the second connection relationship with the vibration sensor, the baseboard management controller obtains the first vibration data of the vibration sensor; judges whether the first vibration data is greater than the vibration threshold of the hard disk matched with the vibration sensor; and in the case that the first vibration data is greater than the vibration threshold, sends the notification information to the disk array card corresponding to the hard disk, so as to make the disk array card protect the hard disk. Therefore, in the embodiments of the present application, through the judgment of the baseboard management controller on the vibration data, it can be determined whether the hard disk needs to be protected, and the hard disk can be protected by the disk array card. The embodiments of the present application decide whether to notify the disk array card to protect the corresponding hard disk according to the vibration data of the vibration sensor without increasing the shockproof structure, flexibly adapt to the shockproof demand, and save the material cost. BRIEF DESCRIPTION OF DRAWINGS

[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments of the present application will be briefly introduced, and other drawings can be obtained by those skilled in the art without creative labor on the premise of not paying creative labor.

[0018] Figure 1 is a structural schematic diagram of a hard disk shockproof device provided by an embodiment of the present application;

[0019] Figure 2 is a flowchart of a hard disk shockproof method provided by an embodiment of the present application;

[0020] Figure 3 is a flowchart of another hard disk shockproof method provided by an embodiment of the present application;

[0021] Figure 4 is a flowchart of still another hard disk shockproof method provided by an embodiment of the present application;

[0022] Figure 5 is a structural schematic diagram of another hard disk shockproof device provided by an embodiment of the present application;

[0023] Figure 6 is a hardware structural schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0024] The features and exemplary embodiments of various aspects of the present application will be described in detail below with reference to the drawings. To make the purpose, technical solutions and advantages of the present application more clear, the present application will be further described in detail below with reference to the drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, but not to limit the present application. The present application can be implemented without some of the specific details by those skilled in the art. The following description of the embodiments is only to provide a better understanding of the present application by showing examples of the present application.

[0025] It should be noted that, in this document, relational terms such as first and second and the like can only be used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations exist in any such actual relationship or order. Moreover, the terms "comprising", "including" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or apparatus that includes a list of elements does not only include those elements, but also includes other elements not expressly listed or other elements inherent to such process, method, article or apparatus. Without more limitations, an element defined by the phrase "comprising a" does not exclude the existence of additional identical elements in the process, method, article or apparatus that includes the element.

[0026] It should be understood that the term "and / or" as used herein merely describes an association relationship of associated objects, and can represent three relationships, for example, A and / or B can represent three cases of A existing alone, A and B existing simultaneously, and B existing alone. In addition, the character " / " herein generally represents an "or" relationship between the front and rear associated objects.

[0027] Various modifications and changes can be made to the application in matters of form and details without departing from the spirit and scope of the application, which will be apparent to one skilled in the art. Therefore, the application is intended to cover modifications and variations of the application that come within the scope of the corresponding claims (claimed technical solutions) and their equivalents. It should be noted that the embodiments provided by the application can be combined with each other without contradiction.

[0028] Before describing the technical solutions provided by the embodiments of the application, the problems existing in the prior art will be specifically described to facilitate the understanding of the embodiments of the application:

[0029] As described above, the inventors of the application have found that a mechanical hard disk, as a highly complex and precise storage device, mainly consists of a disk, a magnetic head, a disk shaft and a control motor. The magnetic head can move along the radial direction of the disk, and, combined with the high-speed rotation of the disk, the magnetic head can be positioned at a specified position of the disk for data read-write operation. All the disks in the mechanical hard disk are mounted on a rotating shaft, and the disks are parallel to each other. There is a magnetic head on the storage surface of each disk, and the distance between the magnetic head and the disk is only 0.01-0.5 μm.

[0030] Due to the complexity and precision of the mechanical hard disk structure, there is a high requirement for the mechanical vibration of the environment during its operation. If the mechanical vibration of the environment exceeds the specifications of the hard disk, it may cause performance degradation of the mechanical hard disk, or even physical permanent damage problems such as damage to the hard disk tracks or the hard disk. In the related art, a structure for hard disk shock protection is usually designed on the case, which increases the material cost. For solid state hard disks, which have high tolerance to vibration, shock protection is not required. Although the structure for hard disk shock protection designed on the case can also protect the mechanical hard disk from shock, it cannot adaptively adjust to the shock protection requirements of the mechanical hard disk and the solid state hard disk, resulting in waste of resources.

[0031] In view of the above research findings of the inventors, the embodiments of the application provide a hard disk shock protection method, device, equipment and computer readable storage medium, which can solve the technical problem that the hard disk cannot be adaptively protected according to its shock protection requirements without increasing the shock protection structure in the prior art.

[0032] Figure 1 is a structural schematic diagram of a hard disk shockproof device provided by an embodiment of the present application, as shown in Figure 1 A plurality of hard disks 106 are inserted on a hard disk backboard 104 of a server 103, a disk array card 102 is connected with the hard disks 106 through the hard disk backboard 104 of the server 103, and a vibration sensor 105 is detachably installed on the hard disk backboard 104. A baseboard management controller 101 is connected with the disk array card 102 through an I2C bus. The baseboard management controller 101 is connected with the vibration sensor 105 through the I2C bus. In addition, the baseboard management controller 101 can also be connected with a platform controller hub (PCH) through an LPC bus (Low pin count Bus) or a universal serial bus (USB), the platform controller hub is connected with a central processing unit (CPU) through a direct media interface (DMI), and the central processing unit is connected with the disk array card 102 through a peripheral component interconnect express (PCIE). The embodiment does not make specific limitation on the connection mode between the baseboard management controller 101 and the disk array card 102 and the vibration sensor 105.

[0033] Figure 2 is a flowchart of a hard disk shockproof method provided by an embodiment of the present application. As shown in Figure 2 The hard disk shockproof method can include the following steps S201 to S204.

[0034] S201, a first connection relationship between a baseboard management controller and a disk array card is established, and a second connection relationship between the baseboard management controller and a vibration sensor is established.

[0035] The baseboard management controller is connected with the disk array card through an I2C bus, and the first connection relationship between the two is established based on the I2C bus; the baseboard management controller is connected with the vibration sensor through the I2C bus, and the second connection relationship between the two is established based on the I2C bus.

[0036] S202, first vibration data of the vibration sensor is acquired.

[0037] The substrate management controller obtains the first vibration data of each hard disk tested by each vibration sensor through an I2C bus or other channels based on the second connection relationship between the substrate management controller and the vibration sensor. The vibration sensor uses the piezoelectric effect of a crystal to complete the vibration test of the hard disk. When the vibration (acceleration) of the tested hard disk forms pressure on the piezoelectric vibration sensor, the crystal element will generate corresponding electric charge, and the number of electric charges can be converted into the vibration parameter. The accuracy and measurement range of the vibration sensor need to meet the actual application scenario, and the selection of the vibration sensor in the embodiment is not specifically limited. Optionally, the vibration sensor used in the embodiment is ST LIS331DL, which is the smallest consumer low-power three-axis linear acceleration sensor of ST, and has an optional I2C / SPI serial interface standard output, supports intelligent embedded functions, and programmable register defines actual application scenario functions. The I2C interface of the device is connected to the substrate management controller through an I2C bus, so that the data interaction between the substrate management controller and the vibration sensor can be realized.

[0038] S203, determining whether the first vibration data is greater than a vibration threshold value of the hard disk matched with the vibration sensor.

[0039] Each hard disk has a vibration sensor matched therewith for testing the first vibration data thereof. The substrate management controller screens out the hard disk whose vibration amplitude or vibration frequency exceeds the corresponding vibration threshold value by determining whether the first vibration data of each hard disk is greater than the vibration threshold value thereof.

[0040] S204, in the case that the first vibration data is greater than the vibration threshold value, sending notification information to a disk array card corresponding to the hard disk, so that the disk array card protects the hard disk.

[0041] Each hard disk has a disk array card corresponding thereto for controlling the corresponding hard disk. When the first vibration data is greater than the vibration threshold value, that is, at least one of the vibration amplitude or the vibration frequency of the hard disk exceeds the corresponding vibration threshold value, the substrate management controller sends notification information to the disk array card corresponding to the hard disk through an I2C bus or other channels, so that the disk array card protects the hard disk controlled thereby. When the first vibration data is less than or equal to the vibration threshold value, that is, the vibration amplitude and the vibration frequency of the hard disk are less than or equal to the corresponding vibration threshold value, the substrate management controller continues to obtain the first vibration data tested by the vibration sensor through an I2C bus or other channels at regular intervals, and records the vibration data tested by all vibration sensors in a log. According to the vibration data recorded in the log, a time-vibration amplitude curve and a time-vibration frequency curve of the hard disk are drawn.

[0042] In the embodiment of the present application, the vibration sensor is installed on the hard disk backboard of the server, and the disk array card is connected with the hard disk through the hard disk backboard of the server. Thus, in the hard disk shockproof method of the embodiment of the present application, after the baseboard management controller establishes the first connection relationship and the second connection relationship with the disk array card and the vibration sensor respectively, the baseboard management controller acquires the first vibration data of the vibration sensor; it is judged whether the first vibration data is greater than the vibration threshold of the hard disk matched with the vibration sensor; in the case that the first vibration data is greater than the vibration threshold, the notification information is sent to the disk array card corresponding to the hard disk, so that the disk array card protects the hard disk. Therefore, in the embodiment of the present application, through the judgment of the baseboard management controller on the vibration data, it can be determined whether the hard disk needs to be shockproofed, and the hard disk can be protected by the disk array card. The embodiment of the present application decides whether to notify the disk array card to protect the corresponding hard disk from shock according to the vibration data of the vibration sensor without increasing the shockproof structure, flexibly adapts to the shockproof demand, and saves the material cost.

[0043] In some embodiments, before judging whether the first vibration data is greater than the vibration threshold of the hard disk matched with the vibration sensor, the hard disk shockproof method further comprises: acquiring first position information of the hard disk and second position information of the vibration sensor; and matching the hard disk and the vibration sensor according to the first position information and the second position information.

[0044] Exemplarily, before judging whether the first vibration data tested by the vibration sensor is greater than the vibration threshold of the hard disk matched therewith, the baseboard management controller needs to acquire the first position information of each hard disk and the second position information of each vibration sensor through the I2C bus, so as to match the hard disk and the vibration sensor according to the positional relationship between each hard disk and each vibration sensor, so that the baseboard management controller can quickly screen out the hard disk with excessive vibration according to the matching relationship between the hard disk and the vibration sensor after acquiring the first vibration data tested by the vibration sensor.

[0045] In some embodiments, matching the hard disk and the vibration sensor according to the first position information and the second position information specifically comprises: determining the physical distance between the hard disk and the vibration sensor according to the first position information and the second position information; determining the similarity parameter of the hard disk and the vibration sensor according to the physical distance and the pre-determined similarity coefficient; and determining the vibration sensor matched with the hard disk according to the smallest similarity parameter corresponding to the hard disk.

[0046] Exemplarily, the baseboard management controller first calculates the physical distance between each hard disk and each vibration sensor according to the first position information of each hard disk and the second position information of each vibration sensor. When a certain hard disk and a certain vibration sensor are located on different backplanes of the server, although the physical distance between the two is short, the vibration between the two backplanes needs to be indirectly transmitted through the motherboard and the like, which causes the physical distance between the hard disk and the vibration sensor calculated by the baseboard management controller to be relatively reduced. Therefore, the propagation path of the vibration wave on the server needs to be calculated according to the physical structure of the server pre-stored in the baseboard management controller, and a similarity coefficient greater than 1 is pre-determined at the development of the server based on the physical structure of the server and the propagation path of the vibration wave on the server. The product of the physical distance between the hard disk and the vibration sensor and the similarity coefficient is taken as the similarity parameter of the hard disk and the vibration sensor, so as to reduce the influence of the structure of the server on the determination of the physical distance between the hard disk and the vibration sensor. After the similarity parameter of each hard disk and each vibration sensor is determined, the minimum similarity parameter corresponding to each hard disk is obtained, and the vibration sensor corresponding to the minimum similarity parameter of each hard disk is taken as the matched vibration sensor.

[0047] In some embodiments, after the hard disk and the vibration sensor are matched according to the first position information and the second position information, the hard disk shockproof method further includes: matching the new hard disk and the vibration sensor when a new hard disk is inserted into the hard disk backplane; and clearing the matched vibration sensor of the original hard disk when the original hard disk is removed from the hard disk backplane.

[0048] Exemplarily, after the matching of the hard disk and the vibration sensor is completed, if a new hard disk is inserted into the hard disk backplane, the baseboard management controller needs to re-acquire the position information of the hard disk, and calculate the physical distance between the hard disk and each vibration sensor according to the position information of the hard disk and the known second position information of the vibration sensor on the hard disk backplane, so as to calculate the similarity parameter of the hard disk and each vibration sensor according to the similarity coefficient, and further determine the matched vibration sensor of the hard disk. If a certain original hard disk is removed from the hard disk backplane, the baseboard management controller needs to clear the calculation result of the similarity parameter of the hard disk and each vibration sensor, and clear the matched vibration sensor of the hard disk from the original vibration sensor, so as to update the matching relationship of the hard disk and the vibration sensor in real time according to the state of the hard disk and the vibration sensor on the hard disk backplane.

[0049] Figure 3 is a flowchart of another hard disk shockproof method provided by the embodiment of the present application. As shown in Figure 3As shown, according to some embodiments of the present application, optionally, before acquiring the first vibration data of the vibration sensor at S202, the hard disk shockproof method provided by the embodiments of the present application can further include steps S301-S304.

[0050] S301, detecting whether the host of the server is powered on and the vibration sensor is in place.

[0051] Before starting a hard disk monitoring thread, the baseboard management controller needs to determine through the I2C bus that the host of the server has been powered on and the vibration sensor has been in place. If the baseboard management controller detects that the host of the server has been powered off during the hard disk monitoring thread, the ongoing hard disk monitoring thread is ended.

[0052] S302, acquiring the model information of the hard disk through the disk array card under the condition that the host is powered on and the vibration sensor is in place.

[0053] Under the condition that the host of the server has been powered on and the vibration sensor has been in place, the baseboard management controller acquires the information of the hard disk through the disk array card, and determines the model of the mechanical hard disk inserted on the hard disk backplane according to the obtained information, so that the baseboard management controller can specifically protect the mechanical hard disk in the hard disk.

[0054] S303, determining the vibration specification data of the hard disk according to the model information.

[0055] The baseboard management controller stores a vibration specification data table of various mechanical hard disks supported by the server, and according to the model of the mechanical hard disk, the vibration specification data corresponding to the mechanical hard disk of each model can be determined from the vibration specification data table.

[0056] S304, determining the vibration threshold of the hard disk according to the vibration specification data.

[0057] The vibration specification data mainly includes the model, vibration amplitude and vibration frequency of the mechanical hard disk. The baseboard management controller can determine the vibration amplitude and vibration frequency corresponding to the mechanical hard disk of the model from the vibration specification data table according to the model of the mechanical hard disk, and further determine the vibration amplitude threshold and vibration frequency threshold of the mechanical hard disk of the model. If multiple models of mechanical hard disks are inserted on the hard disk backplane of the server, the baseboard management controller needs to record the vibration amplitude threshold and vibration frequency threshold of each model of mechanical hard disk.

[0058] In some embodiments, the notification information that the first vibration data is greater than the vibration threshold and the vibration specification data of the hard disk are sent to the disk array card corresponding to the hard disk, so that the disk array card reduces the rotation speed of the hard disk according to the notification information and the vibration specification data.

[0059] Exemplarily, when the first vibration data acquired by the baseboard management controller is greater than the vibration threshold of the corresponding hard disk, i.e., at least one of the vibration amplitude or the vibration frequency of the hard disk exceeds the corresponding vibration threshold, a vibration exceeding trigger event log is recorded by the baseboard management controller, and the hard disk vibration amplitude exceeding or vibration frequency exceeding notification information and the vibration specification data of the hard disk are sent to the disk array card corresponding to the hard disk. The disk array card protects the hard disk from shock according to the notification information and the vibration specification data of the hard disk, for example, reduces the rotation speed of the hard disk, so that the vibration amplitude and the vibration frequency of the hard disk return to the vibration specification data.

[0060] Figure 4 is a flow diagram of another hard disk shockproof method provided by an embodiment of the present application. As shown in Figure 4 According to some embodiments of the present application, after the notification information is sent to the disk array card corresponding to the hard disk to make the disk array card protect the hard disk when the first vibration data is greater than the vibration threshold at S204, the hard disk shockproof method provided by the embodiments of the present application can further include the following steps S401 to S403.

[0061] S401, acquiring second vibration data of the vibration sensor.

[0062] S402, judging whether the second vibration data is less than or equal to the vibration threshold.

[0063] S403, in the case that the second vibration data is less than or equal to the vibration threshold, sending the notification information to the disk array card to make the disk array card stop protecting the hard disk.

[0064] After the disk array card protects the hard disk from shock according to the notification information and the vibration specification data of the hard disk sent by the baseboard management controller, the baseboard management controller needs to acquire the second vibration data of the vibration sensor again, and judge whether the second vibration data is less than or equal to the vibration threshold of the hard disk. When the second vibration data is less than or equal to the vibration threshold, i.e., the vibration amplitude and the vibration frequency of the hard disk are less than or equal to the corresponding vibration threshold, the baseboard management controller sends the notification information to the disk array card corresponding to the hard disk through the I2C bus or other channels, to notify the disk array card to stop protecting the hard disk controlled by it from shock. When the second vibration data is still greater than the vibration threshold, i.e., at least one of the vibration amplitude or the vibration frequency of the hard disk does not return to the corresponding vibration specification data, the baseboard management controller continues to acquire the second vibration data tested by the vibration sensor periodically through the I2C bus or other channels until the second vibration data is less than or equal to the vibration threshold.

[0065] In some embodiments, the notification information is sent to the disk array card to stop the disk array card from protecting the hard disk, specifically including: sending the notification information that the second vibration data is less than or equal to the vibration threshold to the disk array card, so that the disk array card resumes the rotation speed of the hard disk according to the notification information.

[0066] For example, when the second vibration data obtained by the baseboard management controller is less than or equal to the vibration threshold of the corresponding hard disk, that is, the vibration amplitude and the vibration frequency of the hard disk are less than or equal to the corresponding vibration threshold, a vibration exceeding standard release event log is recorded by the baseboard management controller, and the vibration amplitude and the vibration frequency of the hard disk are restored to the vibration specification data, and the notification information that the vibration exceeding standard is released is sent to the disk array card corresponding to the hard disk. The disk array card stops the shock protection of the hard disk according to the notification information, for example, restores the rotation speed of the hard disk.

[0067] Based on the hard disk shockproof method provided in the above embodiments, correspondingly, the application also provides another specific implementation of a hard disk shockproof device. Please see the following embodiments.

[0068] Firstly, referring to Figure 5 The other hard disk shockproof device 50 provided by the embodiments of the application includes the following modules:

[0069] The establishing module 501 is configured to establish a first connection relationship between the baseboard management controller and the disk array card, and a second connection relationship between the baseboard management controller and the vibration sensor. The disk array card is connected with the hard disk through the hard disk backboard of the server, and the vibration sensor is installed on the hard disk backboard.

[0070] The first obtaining module 502 is configured to obtain first vibration data of the vibration sensor.

[0071] The first judging module 503 is configured to judge whether the first vibration data is greater than a vibration threshold of a hard disk matched with the vibration sensor.

[0072] The first sending module 504 is configured to send notification information to the disk array card corresponding to the hard disk to make the disk array card protect the hard disk when the first vibration data is greater than the vibration threshold.

[0073] In the embodiment of the present application, the vibration sensor is installed on the hard disk backboard of the server, and the disk array card is connected with the hard disk through the hard disk backboard of the server. Thus, in the hard disk shockproof device of the embodiment of the present application, after the baseboard management controller establishes the first connection relationship and the second connection relationship with the disk array card and the vibration sensor respectively, the baseboard management controller acquires the first vibration data of the vibration sensor; it is judged whether the first vibration data is greater than the vibration threshold of the hard disk matched with the vibration sensor; in the case that the first vibration data is greater than the vibration threshold, the notification information is sent to the disk array card corresponding to the hard disk, so that the disk array card protects the hard disk. Therefore, in the embodiment of the present application, through the judgment of the baseboard management controller on the vibration data, it can be determined whether the hard disk needs to be shockproof, and the hard disk can be protected by the disk array card. The embodiment of the present application decides whether to notify the disk array card to protect the corresponding hard disk from shock according to the vibration data of the vibration sensor without increasing the shockproof structure, flexibly adapts to the shockproof demand, and saves the material cost. In some embodiments, in order to match the hard disk and the vibration sensor, the above-mentioned hard disk shockproof device 50 can further include:

[0074] The second acquisition module is configured to acquire first position information of the hard disk and second position information of the vibration sensor.

[0075] The matching module is configured to match the hard disk and the vibration sensor according to the first position information and the second position information.

[0076] In some embodiments, in order to match the hard disk and the vibration sensor, the above-mentioned matching module can further include:

[0077] The first matching sub-module is configured to determine the physical distance between the hard disk and the vibration sensor according to the first position information and the second position information.

[0078] The second matching sub-module is configured to determine the similarity parameter of the hard disk and the vibration sensor according to the physical distance and the pre-determined similarity coefficient.

[0079] The third matching sub-module is configured to determine the vibration sensor matched with the hard disk according to the smallest similarity parameter corresponding to the hard disk.

[0080] In some embodiments, in order to update the matching relationship of the hard disk and the vibration sensor, the above-mentioned hard disk shockproof device 50 can further include:

[0081] The first updating module is configured to match the new hard disk and the vibration sensor when the new hard disk is inserted into the hard disk backboard.

[0082] The second updating module is configured to clear the vibration sensor matched with the original hard disk when the original hard disk is removed from the hard disk backboard.

[0083] In some embodiments, in order to determine the vibration threshold of the hard disk, the hard disk shockproof device 50 can further include:

[0084] a detection module, configured to detect whether the host of the server is powered on and whether the vibration sensor is in place;

[0085] a third acquisition module, configured to acquire the model information of the hard disk through the disk array card when the host is powered on and the vibration sensor is in place;

[0086] a first determination module, configured to determine the vibration specification data of the hard disk according to the model information;

[0087] a second determination module, configured to determine the vibration threshold of the hard disk according to the vibration specification data.

[0088] In some embodiments, in order to protect the hard disk from shock, the first sending module 504 can further include:

[0089] a first sending sub-module, configured to send the notification information that the first vibration data is greater than the vibration threshold and the vibration specification data of the hard disk to the disk array card, so that the disk array card reduces the rotation speed of the hard disk according to the notification information and the vibration specification data.

[0090] In some embodiments, in order to stop protecting the hard disk in time, the hard disk shockproof device 50 can further include:

[0091] a fourth acquisition module, configured to acquire the second vibration data of the vibration sensor;

[0092] a second judgment module, configured to judge whether the second vibration data is less than or equal to the vibration threshold;

[0093] a second sending module, configured to send the notification information to the disk array card when the second vibration data is less than or equal to the vibration threshold, so that the disk array card stops protecting the hard disk.

[0094] In some embodiments, in order to stop protecting the hard disk in time, the second sending module can further include:

[0095] a second sending sub-module, configured to send the notification information that the second vibration data is less than or equal to the vibration threshold to the disk array card, so that the disk array card restores the rotation speed of the hard disk according to the notification information.

[0096] Figure 5 Each module / sub-module in the device has the function of realizing each step in the method and can achieve its corresponding technical effect. For the sake of brevity, it will not be described here. Figure 2

[0097] ​Based on the hard disk shockproof method provided in the above embodiments, the application further provides a specific implementation of an electronic device. Please refer to the following embodiments.

[0098] Figure 6 A hardware structure schematic diagram of an electronic device provided by an embodiment of the application is shown.

[0099] The electronic device can include a processor 601 and a memory 602 storing computer program instructions.

[0100] Specifically, the processor 601 can include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the application.

[0101] The memory 602 can include a mass storage for data or instructions. By way of example and not limitation, the memory 602 can include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In one example, the memory 602 can include a removable or non-removable (or fixed) media, or the memory 602 is a non-volatile solid-state memory. The memory 602 can be internal or external to the integrated gateway disaster recovery device.

[0102] In one example, the memory 602 can be a read-only memory (ROM). In one example, the ROM can be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically alterable ROM (EAROM), or a flash memory, or a combination of two or more of these.

[0103] The memory 602 can include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage media device, an optical storage media device, a flash memory device, an electrical, optical, or other physical / tangible memory storage device. Thus, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions that, when executed (e.g., by one or more processors), are operable to perform operations described with reference to the methods according to an aspect of the application.

[0104] The processor 601 implements the method / steps S201-S204 in the embodiments by reading and executing computer program instructions stored in the memory 602. Figure 2 The corresponding technical effects achieved by the method / steps in the embodiments are not described in detail herein for brevity. Figure 2 The corresponding technical effects achieved by the method / steps in the embodiments are not described in detail herein for brevity.

[0105] In one example, the electronic device can further include a communication interface 603 and a bus 610. Wherein, as shown in the figure, the processor 601, the memory 602, and the communication interface 603 are connected through the bus 610 and complete communication with each other. Figure 6

[0106] The communication interface 603 is mainly used to realize the communication between the modules, devices, units and / or equipment in the embodiments of the present application.

[0107] The bus 610 includes hardware, software or both to couple components of the electronic device to each other. By way of example, and without limitation, the bus can include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association local (VLB) bus, or another suitable bus or combination of two or more of these. Where appropriate, the bus 610 can include one or more buses. Although the present embodiments describe and show a particular bus, the present application contemplates any suitable bus or interconnect.

[0108] In addition, in combination with the hard disk shockproof method in the above-mentioned embodiments, the present embodiments can provide a computer readable storage medium to implement. The computer readable storage medium has computer program instructions stored thereon; the computer program instructions are executed by the processor to implement any one of the hard disk shockproof methods in the above-mentioned embodiments. Examples of the computer readable storage medium include non-transitory computer readable storage media, such as electronic circuits, semiconductor memory devices, ROM, random access memory, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks.

[0109] ​It is to be understood that the application is not limited to particular configurations and processes described herein and shown in the drawings. For simplicity, detailed descriptions of known methods and apparatuses are omitted so as not to obscure the disclosure. In the above-described embodiments, several specific steps are described and illustrated in order to provide a thorough understanding of the method processes. However, the method processes according to the application can be performed in a number of different sequences and formats as would be understood by one skilled in the art. The method processes described herein are also not limited to any particular order or sequence of steps.

[0110] The functional blocks shown in the structural block diagrams described above can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application specific integrated circuits (ASICs), appropriate firmware, plug-ins, functional cards, and the like. When implemented in software, the elements of the application are program or code segments that are used to perform the required tasks. The program or code segments can be stored in a machine-readable medium or transmitted through a data signal carried in a carrier wave over a transmission medium or communication link. A "machine-readable medium" includes any medium that can store or transfer information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, and the like. The code segments can be downloaded via computer networks such as the Internet, intranets, and the like.

[0111] It is also to be understood that the example embodiments described in this application are based on a series of steps or apparatuses to describe some methods or systems. However, the application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in an order different from the embodiments, or several steps can be performed simultaneously.

[0112] The computer program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other processing device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other processing device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.

[0113] The above solely describes specific implementations of the present application. For the purpose of convenience and brevity, the specific working process of the system, module and unit described above can refer to the corresponding process in the foregoing method embodiments, which will not be described herein. It should be understood that the protection scope of the present application is not limited in this way. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical range disclosed in the present application, and these modifications or replacements should be covered within the protection scope of the present application.

Claims

1. A method for protecting a hard disk from shock, characterized in that, The method is applied to a baseboard management controller and comprises the following steps: establishing a first connection relationship between the baseboard management controller and a disk array card and a second connection relationship between the baseboard management controller and a vibration sensor, the disk array card being connected with a hard disk through a hard disk backboard of a server, and the vibration sensor being installed on the hard disk backboard; obtaining first vibration data of the vibration sensor; obtaining first position information of the hard disk and second position information of the vibration sensor; matching the hard disk and the vibration sensor according to the first position information and the second position information; judging whether the first vibration data is greater than a vibration threshold of the hard disk matched with the vibration sensor; in the case that the first vibration data is greater than the vibration threshold, sending notification information to the disk array card corresponding to the hard disk to make the disk array card protect the hard disk; and the matching the hard disk and the vibration sensor according to the first position information and the second position information specifically comprises: determining a physical distance between the hard disk and the vibration sensor according to the first position information and the second position information; determining a similarity parameter of the hard disk and the vibration sensor according to the physical distance and a pre-determined similarity coefficient, the similarity coefficient being determined based on a physical structure of the server and a propagation path of a vibration wave on the server during development of the server, the value of the similarity coefficient being greater than 1, and the similarity parameter being a product of the physical distance and the similarity coefficient; and 2. The method of claim 1, wherein, determining the vibration sensor matched with the hard disk according to the smallest similarity parameter corresponding to the hard disk. after the matching the hard disk and the vibration sensor according to the first position information and the second position information, the method further comprises: when a new hard disk is inserted into the hard disk backboard, matching the new hard disk and the vibration sensor; and 3. The method of claim 1, wherein, when an original hard disk is removed from the hard disk backboard, clearing the vibration sensor matched with the original hard disk. before the obtaining the first vibration data of the vibration sensor, the method further comprises: detecting whether a host of the server is powered on and whether the vibration sensor is in place; in the case that the host is powered on and the vibration sensor is in place, obtaining model information of the hard disk through the disk array card; determining vibration specification data of the hard disk according to the model information; 4. The method of claim 3, wherein, determining a vibration threshold of the hard disk according to the vibration specification data. the sending notification information to the disk array card corresponding to the hard disk to make the disk array card protect the hard disk specifically comprises:

5. The method of claim 1, wherein, sending the notification information that the first vibration data is greater than the vibration threshold and the vibration specification data of the hard disk to the disk array card to make the disk array card reduce the rotation speed of the hard disk according to the notification information and the vibration specification data. after the sending notification information to the disk array card corresponding to the hard disk to make the disk array card protect the hard disk, the method further comprises: acquire second vibration data of the vibration sensor; determine whether the second vibration data is less than or equal to the vibration threshold value; in the case that the second vibration data is less than or equal to the vibration threshold value, send notification information to the disk array card to make the disk array card stop protecting the hard disk.

6. The method of claim 5, wherein, The sending of the notification information to the disk array card to make the disk array card stop protecting the hard disk specifically includes: sending notification information that the second vibration data is less than or equal to the vibration threshold value to the disk array card to make the disk array card resume the rotation speed of the hard disk according to the notification information.

7. A hard disk shockproof device, characterized by comprising: The device includes: a establishing module configured to establish a first connection relationship between a baseboard management controller and a disk array card and a second connection relationship between the baseboard management controller and a vibration sensor, the disk array card being connected with a hard disk through a hard disk backplane of a server, and the vibration sensor being installed on the hard disk backplane; a first acquiring module configured to acquire first vibration data of the vibration sensor; a second acquiring module configured to acquire first position information of the hard disk and second position information of the vibration sensor; a matching module configured to match the hard disk and the vibration sensor according to the first position information and the second position information; a first determining module configured to determine whether the first vibration data is greater than a vibration threshold value of the hard disk matched with the vibration sensor; a first sending module configured to, in the case that the first vibration data is greater than the vibration threshold value, send notification information to a disk array card corresponding to the hard disk to make the disk array card protect the hard disk; The matching module includes: a first matching sub-module configured to determine a physical distance between the hard disk and the vibration sensor according to the first position information and the second position information; a second matching sub-module configured to determine a similarity parameter of the hard disk and the vibration sensor according to the physical distance and a pre-determined similarity coefficient, the similarity coefficient being determined based on a physical structure of the server and a propagation path of a vibration wave on the server when the server is developed, the value of the similarity coefficient being greater than 1, and the similarity parameter being a product of the physical distance and the similarity coefficient; a third matching sub-module configured to determine the vibration sensor matched with the hard disk according to a smallest similarity parameter corresponding to the hard disk.

8. An electronic device, comprising: The electronic device includes a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to implement the steps of the hard disk shockproof method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, the computer program being executed by the processor to implement the steps of the hard disk shockproof method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Hard disk shockproof control method, device and system and storage medium

    CN114356043A