CN113127298B - Method, system, equipment and medium for protecting mechanical hard disk - Google Patents

Method, system, equipment and medium for protecting mechanical hard disk Download PDF

Info

Publication number
CN113127298B
CN113127298B CN202110341722.3A CN202110341722A CN113127298B CN 113127298 B CN113127298 B CN 113127298B CN 202110341722 A CN202110341722 A CN 202110341722A CN 113127298 B CN113127298 B CN 113127298B
Authority
CN
China
Prior art keywords
value
matrix
hard disk
acceleration
mechanical hard
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110341722.3A
Other languages
Chinese (zh)
Other versions
CN113127298A (en
Inventor
林子平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Yingxin Computer Technology Co Ltd
Original Assignee
Shandong Yingxin Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Yingxin Computer Technology Co Ltd filed Critical Shandong Yingxin Computer Technology Co Ltd
Priority to CN202110341722.3A priority Critical patent/CN113127298B/en
Publication of CN113127298A publication Critical patent/CN113127298A/en
Application granted granted Critical
Publication of CN113127298B publication Critical patent/CN113127298B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3037Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/16Matrix or vector computation, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization

Abstract

The invention discloses a method, a system, equipment and a storage medium for protecting a mechanical hard disk, wherein the method comprises the following steps: acquiring acceleration values of a back plate and all mechanical hard disks; creating a first matrix according to the acceleration values of the back plate, and creating a second matrix according to the acceleration values of all the mechanical hard disks; multiplying the product of the first matrix and the second matrix by an identity matrix to obtain a first value, and judging whether the difference value between the first value and zero is smaller than a first threshold value; responding to the difference value between the first value and zero and smaller than the first threshold, acquiring the acceleration value of each mechanical hard disk at the first moment and the second moment, calculating the vibration parameter corresponding to each mechanical hard disk according to the acceleration value of the first moment and the acceleration value of the second moment, and judging whether all the vibration parameters are larger than the second threshold; and responding to the condition that all the vibration parameters are not larger than the second threshold value, and prompting that the position of the mechanical hard disk is normal.

Description

Method, system, equipment and medium for protecting mechanical hard disk
Technical Field
The present invention relates to the field of servers, and more particularly, to a method, a system, a computer device, and a readable medium for protecting a mechanical hard disk.
Background
Although the speed of the mechanical hard disk is not as high as that of the solid state hard disk, most of the current servers use the mechanical hard disk, and the solid state hard disks are relatively few. Ordinary solid state hard drives are more expensive than mechanical hard drives, enterprise-level solid state hard drives are cheaper, and the capacity of the solid state hard drives is generally small, so that if servers all use the solid state hard drives, the cost is very high, and the ordinary enterprises are hard to bear. The server stores important mass data and has high requirements on the capacity of the hard disk. However, the capacity of a single block of the existing server mechanical hard disk can reach more than 2TB, and the capacity of the mainstream server mechanical hard disk reaches about 10 TB. Even hard disks with 14TB and 18TB are going to be marketed. Moreover, the traditional mechanical hard disk has been used for decades, the technology is mature, the reliability is excellent, the damaged mechanical hard disk can be maintained, data is lost, and the damaged mechanical hard disk can be retrieved at a high rate through professional data recovery software. The solid state disk starts later, and although the speed has absolute advantage, the solid state disk is stored in a wafer level mode, once the solid state disk is damaged, data can hardly be retrieved. In addition, the solid state disk loses data and is hardly restored again. However, in the mechanical hard disk, since the motor drives the hard disk to rotate for reading, the hard disk needs to be placed vertically or horizontally to prolong the service life of the hard disk.
The existing system basically uses vertical or horizontal placement to prolong the service life of the hard disk, but in fact, the chassis of the system or the bracket of the hard disk can cause the hard disk to incline or even vibrate after long-time use or under the condition of too large design tolerance, the inclined and vibrating hard disk bracket is easy to cause damage to the hard disk after long-time use, and the user must replace the hard disk at this time. The conventional hard disk bracket is not provided with an angle detection device, when the bracket is inclined or abnormally vibrates, a BMC monitoring end cannot be effectively informed to monitor, and a worker is dispatched to handle the inclined vibration condition of the hard disk in time, so that the hard disk is in an abnormal operation mode for a long time, and the hard disk is easy to damage, and the situations of data loss and the like are possibly caused.
Disclosure of Invention
In view of this, an embodiment of the present invention provides a method, a system, a computer device, and a computer readable storage medium for protecting a mechanical hard disk, in which the method determines whether a position of the mechanical hard disk is correct by obtaining acceleration values of a back plate and the mechanical hard disk, and can locate an abnormal mechanical hard disk according to the acceleration values, thereby enhancing stability of the system.
Based on the above object, an aspect of the embodiments of the present invention provides a method for protecting a mechanical hard disk, including the following steps: acquiring acceleration values of a back plate and all mechanical hard disks; creating a first matrix according to the acceleration values of the back plate, and creating a second matrix according to the acceleration values of all the mechanical hard disks; multiplying the product of the first matrix and the second matrix by an identity matrix to obtain a first value, and judging whether the difference value between the first value and zero is smaller than a first threshold value; responding to the difference value between the first value and zero and smaller than the first threshold, acquiring the acceleration value of each mechanical hard disk at the first moment and the second moment, calculating the vibration parameter corresponding to each mechanical hard disk according to the acceleration value of the first moment and the acceleration value of the second moment, and judging whether all the vibration parameters are larger than the second threshold; and responding to the condition that all the vibration parameters are not larger than the second threshold value, and prompting that the position of the mechanical hard disk is normal.
In some embodiments, the method further comprises: and in response to that the difference value between the first value and zero is not less than the first threshold value, multiplying the second matrix and the transposed matrix of the second matrix to obtain a positioning matrix, and determining the abnormal hard disk according to the diagonal element value of the positioning matrix.
In some embodiments, said determining an abnormal hard disk according to diagonal element values of said positioning matrix comprises: judging whether element values with a difference value smaller than the first threshold value exist in diagonal element values of the positioning matrix or not; and determining the position of the abnormal hard disk according to the serial number of the element value in response to the fact that the element value with the difference value smaller than the first threshold exists in the diagonal element value of the positioning matrix.
In some embodiments, the calculating the vibration parameter corresponding to each mechanical hard disk according to the acceleration value at the first time and the acceleration value at the second time comprises: and calculating the absolute value of the difference value between the acceleration value at the first moment and the acceleration value at the second moment in each direction to obtain the sub-vibration parameters in each direction, and adding the sub-vibration parameters in all directions to obtain the vibration parameters.
In another aspect of the embodiments of the present invention, a system for protecting a mechanical hard disk is provided, including: the acquisition module is configured for acquiring acceleration values of the back plate and all the mechanical hard disks; the creating module is configured to create a first matrix according to the acceleration values of the backboard and create a second matrix according to the acceleration values of all the mechanical hard disks; the first calculation module is configured to multiply a product of the first matrix and the second matrix by an identity matrix to obtain a first value, and judge whether a difference value between the first value and zero is smaller than a first threshold value; the second calculation module is configured to respond that the difference value between the first value and zero is smaller than the first threshold, acquire the acceleration value of each mechanical hard disk at a first moment and a second moment, calculate the vibration parameter corresponding to each mechanical hard disk according to the acceleration value of the first moment and the acceleration value of the second moment, and judge whether all the vibration parameters are larger than the second threshold; and the prompting module is configured to respond to the condition that all the vibration parameters are not larger than the second threshold value and prompt that the position of the mechanical hard disk is normal.
In some embodiments, the system further comprises a positioning module configured to: and in response to that the difference value between the first value and zero is not less than the first threshold value, multiplying the second matrix and the transposed matrix of the second matrix to obtain a positioning matrix, and determining the abnormal hard disk according to the diagonal element value of the positioning matrix.
In some embodiments, the positioning module is further configured to: judging whether element values with a difference value smaller than the first threshold value exist in diagonal element values of the positioning matrix or not; and responding to the fact that element values with the difference value smaller than the first threshold value exist in the diagonal element values of the positioning matrix, and determining the position of the abnormal hard disk according to the serial numbers of the element values.
In some embodiments, the second computing module is configured to: calculating the vibration parameter corresponding to each mechanical hard disk according to the acceleration value at the first moment and the acceleration value at the second moment comprises the following steps: and calculating the absolute value of the difference value between the acceleration value at the first moment and the acceleration value at the second moment in each direction to obtain the sub-vibration parameters in each direction, and adding the sub-vibration parameters in all directions to obtain the vibration parameters.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method as above.
In a further aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has the following beneficial technical effects: whether the position of the hard disk is correct or not is confirmed by obtaining the acceleration values of the back plate and the mechanical hard disk, the abnormal hard disk can be positioned according to the acceleration values, and the stability of the system is enhanced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of an embodiment of a method for protecting a mechanical hard disk according to the present invention;
FIG. 2 is a schematic diagram of a hardware structure of an embodiment of a computer device for protecting a mechanical hard disk according to the present invention;
FIG. 3 is a schematic diagram of an embodiment of a computer storage medium for protecting a mechanical hard disk according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In view of the above object, a first aspect of the embodiments of the present invention provides an embodiment of a method for protecting a mechanical hard disk. Fig. 1 is a schematic diagram illustrating an embodiment of a method for protecting a mechanical hard disk according to the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
s1, acquiring acceleration values of a back plate and all mechanical hard disks;
s2, creating a first matrix according to the acceleration values of the back plate, and creating a second matrix according to the acceleration values of all the mechanical hard disks;
s3, multiplying the product of the first matrix and the second matrix by the identity matrix to obtain a first value, and judging whether the difference value between the first value and zero is smaller than a first threshold value;
s4, responding to the fact that the difference value between the first value and zero is smaller than a first threshold, obtaining the acceleration value of each mechanical hard disk at the first moment and the second moment, calculating the vibration parameter corresponding to each mechanical hard disk according to the acceleration value of the first moment and the acceleration value of the second moment, and judging whether all the vibration parameters are larger than the second threshold or not; and
and S5, responding to the fact that all the vibration parameters are not larger than a second threshold value, and prompting that the position of the mechanical hard disk is normal.
And acquiring the acceleration values of the back plate and all the mechanical hard disks. An accelerometer may be provided on the backplate and each mechanical hard disk, and the BMC may read acceleration values in three directions (X, Y, and Z axes) in the accelerometer.
And creating a first matrix according to the acceleration values of the back plate, and creating a second matrix according to the acceleration values of all the mechanical hard disks.
Creating a first matrix from the acceleration values of the backplate:
BPB=[X BPB Y BPB Z BPB ]
taking 4 hard disk systems as an example, the reading of the accelerometer of the mechanical hard disk can be read as follows:
Figure BDA0002999321700000051
Figure BDA0002999321700000052
Figure BDA0002999321700000053
Figure BDA0002999321700000061
placing the array of all mechanical hard disks into one matrix to create a second matrix:
Figure BDA0002999321700000062
and multiplying the product of the first matrix and the second matrix by the identity matrix to obtain a first value, and judging whether the difference value between the first value and zero is smaller than a first threshold value.
The first Value _ a is calculated as follows:
Figure BDA0002999321700000063
it is determined whether the first value approaches zero, that is, whether a difference between the first value and zero is smaller than a first threshold, which may be, for example, 0.01. Responding to the fact that the difference value between the first value and zero is smaller than a first threshold value, obtaining the acceleration value of each mechanical hard disk at the first moment and the second moment, calculating the vibration parameter corresponding to each mechanical hard disk according to the acceleration value of the first moment and the acceleration value of the second moment, and judging whether all the vibration parameters are larger than a second threshold value or not.
In some embodiments, the calculating the vibration parameter corresponding to each mechanical hard disk according to the acceleration value at the first time and the acceleration value at the second time comprises: and calculating the absolute value of the difference value between the acceleration value at the first moment and the acceleration value at the second moment in each direction to obtain the sub-vibration parameters in each direction, and adding the sub-vibration parameters in all directions to obtain the vibration parameters.
The acceleration value at the first time T comprises X HDD1(T) 、Y HDD1(T) And Z HDD1(T) The acceleration value at the second time T +1 includes X HDD1(T+1) 、Y HDD1(T+1) And Z HDD1(T+1) Sub-vibration parameters in each direction, e.g. sub-vibration parameters Kx = | X in the X direction HDD1(T+1) -X HDD1(T) Similarly, the sub-vibration parameters in the Y direction and the Z direction are Ky = | Y, respectively HDD1(T+1) -Y HDD1(T) And Kz = | Z HDD1(T+1) -Z HDD1(T) L. Vibration parameter K = Kx + Ky + Kz.
The vibration parameter K should ideally be 0, which represents that no vibration occurs, and once abnormal vibration occurs, K is greater than a second threshold (e.g. 1), and the system management needs to be notified to stop the hard disk from operating. And if K is not larger than the second threshold value, prompting that the position of the mechanical hard disk is normal.
In some embodiments, the method further comprises: and in response to that the difference value between the first value and zero is not less than the first threshold value, multiplying the second matrix and the transposed matrix of the second matrix to obtain a positioning matrix, and determining the abnormal hard disk according to the diagonal element value of the positioning matrix.
The calculation formula of the positioning Matrix _ HDD is as follows:
Figure BDA0002999321700000071
in some embodiments, said determining an abnormal hard disk according to diagonal element values of said positioning matrix comprises: judging whether element values with a difference value smaller than the first threshold value exist in diagonal element values of the positioning matrix or not; and determining the position of the abnormal hard disk according to the serial number of the element value in response to the fact that the element value with the difference value smaller than the first threshold exists in the diagonal element value of the positioning matrix.
And respectively calculating the values of the diagonal element values V11, V22, V33 and V44, and judging whether a value which is not close to 1 exists in the values of V11, V22, V33 and V44, namely a value of which the difference value with one is smaller than a first threshold value, if so, for example, the difference value of V33 with one is smaller than the first threshold value, then determining that the hard disk number 3 has an abnormality according to the serial number of V33.
In some embodiments, said determining an abnormal hard disk according to diagonal element values of said positioning matrix comprises: and in response to the fact that no element value with a difference value smaller than the first threshold value exists in the diagonal element values of the positioning matrix, reducing the value of the first threshold value and judging whether the difference value of the first value and zero is smaller than the first threshold value again.
If there is no value in V11, V22, V33, and V44 that differs from one by less than the first threshold, indicating that the first threshold may be too high, finding the location of the abnormal hard disk may be accomplished by adjusting the first threshold.
It should be noted that, the steps in the embodiments of the method for protecting a mechanical hard disk described above can be mutually intersected, replaced, added, or deleted, and therefore, the method for protecting a mechanical hard disk should also belong to the scope of the present invention through these reasonable permutation and combination transformations, and should not limit the scope of the present invention to the embodiments.
In view of the above object, according to a second aspect of the embodiments of the present invention, there is provided a system for protecting a mechanical hard disk, including: the acquisition module is configured to acquire the acceleration values of the back plate and all the mechanical hard disks; the creating module is configured to create a first matrix according to the acceleration values of the backboard and create a second matrix according to the acceleration values of all the mechanical hard disks; the first calculation module is configured to multiply a product of the first matrix and the second matrix by an identity matrix to obtain a first value, and judge whether a difference value between the first value and zero is smaller than a first threshold value; the second calculation module is configured to respond that the difference value between the first value and zero is smaller than the first threshold, acquire the acceleration value of each mechanical hard disk at a first moment and a second moment, calculate the vibration parameter corresponding to each mechanical hard disk according to the acceleration value of the first moment and the acceleration value of the second moment, and judge whether all the vibration parameters are larger than the second threshold; and the prompting module is configured to respond to the condition that all the vibration parameters are not larger than the second threshold value and prompt that the position of the mechanical hard disk is normal.
In some embodiments, the system further comprises a positioning module configured to: and in response to the fact that the difference value between the first value and zero is not smaller than the first threshold value, multiplying the second matrix by the transposed matrix of the second matrix to obtain a positioning matrix, and determining the abnormal hard disk according to the diagonal element value of the positioning matrix.
In some embodiments, the positioning module is further configured to: judging whether element values with a difference value smaller than the first threshold value exist in diagonal element values of the positioning matrix or not; and responding to the fact that element values with the difference value smaller than the first threshold value exist in the diagonal element values of the positioning matrix, and determining the position of the abnormal hard disk according to the serial numbers of the element values.
In some embodiments, the second computing module is configured to: and calculating the absolute value of the difference value between the acceleration value at the first moment and the acceleration value at the second moment in each direction to obtain the sub-vibration parameters in each direction, and adding the sub-vibration parameters in all directions to obtain the vibration parameters.
In view of the above object, a third aspect of an embodiment of the present invention provides a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: s1, acquiring acceleration values of a back plate and all mechanical hard disks; s2, creating a first matrix according to the acceleration values of the back plate, and creating a second matrix according to the acceleration values of all the mechanical hard disks; s3, multiplying the product of the first matrix and the second matrix by the identity matrix to obtain a first value, and judging whether the difference value between the first value and zero is smaller than a first threshold value; s4, responding to the fact that the difference value between the first value and zero is smaller than a first threshold, obtaining the acceleration value of each mechanical hard disk at the first moment and the second moment, calculating the vibration parameter corresponding to each mechanical hard disk according to the acceleration value of the first moment and the acceleration value of the second moment, and judging whether all the vibration parameters are larger than the second threshold or not; and S5, responding to the situation that all the vibration parameters are not larger than a second threshold value, and prompting that the position of the mechanical hard disk is normal.
In some embodiments, the steps further comprise: and in response to that the difference value between the first value and zero is not less than the first threshold value, multiplying the second matrix and the transposed matrix of the second matrix to obtain a positioning matrix, and determining the abnormal hard disk according to the diagonal element value of the positioning matrix.
In some embodiments, the determining an abnormal hard disk according to diagonal element values of the positioning matrix includes: judging whether element values with a difference value smaller than the first threshold value exist in diagonal element values of the positioning matrix or not; and determining the position of the abnormal hard disk according to the serial number of the element value in response to the fact that the element value with the difference value smaller than the first threshold exists in the diagonal element value of the positioning matrix.
In some embodiments, the calculating the vibration parameter corresponding to each mechanical hard disk according to the acceleration value at the first time and the acceleration value at the second time comprises: and calculating the absolute value of the difference value between the acceleration value at the first moment and the acceleration value at the second moment in each direction to obtain the sub-vibration parameters in each direction, and adding the sub-vibration parameters in all directions to obtain the vibration parameters.
Fig. 2 is a schematic diagram of a hardware structure of an embodiment of the computer device for protecting a mechanical hard disk according to the present invention.
Taking the apparatus shown in fig. 2 as an example, the apparatus includes a processor 201 and a memory 202, and may further include: an input device 203 and an output device 204.
The processor 201, the memory 202, the input device 203 and the output device 204 may be connected by a bus or other means, and fig. 2 illustrates the connection by a bus as an example.
The memory 202, which is a non-volatile computer-readable storage medium, may be used for storing non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method for protecting a mechanical hard disk in the embodiments of the present application. The processor 201 executes various functional applications of the server and data processing by running the nonvolatile software programs, instructions and modules stored in the memory 202, that is, implements the method for protecting a mechanical hard disk of the above-described method embodiment.
The memory 202 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of a method of protecting a mechanical hard disk, and the like. Further, the memory 202 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 202 may optionally include memory located remotely from processor 201, which may be connected to local modules via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 203 may receive information such as a user name and a password that are input. The output device 204 may include a display device such as a display screen.
One or more program instructions/modules corresponding to the method for protecting a mechanical hard disk are stored in the memory 202, and when being executed by the processor 201, the method for protecting a mechanical hard disk in any method embodiment is executed.
Any embodiment of the computer device executing the method for protecting a mechanical hard disk can achieve the same or similar effects as any corresponding embodiment of the method.
The invention also provides a computer readable storage medium storing a computer program which, when executed by a processor, performs the method as above.
Fig. 3 is a schematic diagram of an embodiment of the computer storage medium for protecting a mechanical hard disk according to the present invention. Taking the computer storage medium as shown in fig. 3 as an example, the computer readable storage medium 3 stores a computer program 31 which, when executed by a processor, performs the method as described above.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate that all or part of the processes of the methods of the above embodiments can be implemented by a computer program to instruct related hardware, and the program of the method for protecting a mechanical hard disk can be stored in a computer readable storage medium, and when executed, the program can include the processes of the embodiments of the methods as described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant only to be exemplary, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A method for protecting a mechanical hard disk, comprising the steps of:
acquiring acceleration values of a back plate and all mechanical hard disks in three different directions of an X axis, a Y axis and a Z axis;
creating a first matrix according to the acceleration values of the back plate, and creating a second matrix according to the acceleration values of all the mechanical hard disks;
multiplying the product of the acceleration values of the back plate in different directions in the first matrix and the acceleration values of each mechanical hard disk in the second matrix in the corresponding direction by the unit matrix to obtain a first value, and judging whether the difference value between the first value and zero is smaller than a first threshold value;
responding to the difference value between the first value and zero and smaller than the first threshold, acquiring the acceleration value of each mechanical hard disk at the first moment and the second moment, calculating the vibration parameter corresponding to each mechanical hard disk according to the acceleration value of the first moment and the acceleration value of the second moment, and judging whether all the vibration parameters are larger than the second threshold; and
and responding to the condition that all the vibration parameters are not larger than the second threshold value, and prompting that the position of the mechanical hard disk is normal.
2. The method of claim 1, further comprising:
and in response to that the difference value between the first value and zero is not less than the first threshold value, multiplying the second matrix and the transposed matrix of the second matrix to obtain a positioning matrix, and determining the abnormal hard disk according to the diagonal element value of the positioning matrix.
3. The method of claim 2, wherein the determining an abnormal hard disk according to diagonal element values of the positioning matrix comprises:
judging whether element values with the difference value smaller than the first threshold value exist in diagonal element values of the positioning matrix or not; and
and responding to the fact that element values with the difference value smaller than the first threshold value exist in the diagonal element values of the positioning matrix, and determining the position of the abnormal hard disk according to the serial numbers of the element values.
4. The method of claim 1, wherein calculating the vibration parameter corresponding to each mechanical hard disk according to the acceleration value at the first moment and the acceleration value at the second moment comprises:
and calculating the absolute value of the difference value between the acceleration value at the first moment and the acceleration value at the second moment in each direction to obtain the sub-vibration parameters in each direction, and adding the sub-vibration parameters in all directions to obtain the vibration parameters.
5. A system for protecting a mechanical hard disk, comprising:
the acquisition module is configured for acquiring acceleration values of the back plate and all the mechanical hard disks in three different directions of an X axis, a Y axis and a Z axis;
the creating module is configured to create a first matrix according to the acceleration values of the backboard and create a second matrix according to the acceleration values of all the mechanical hard disks;
the first calculation module is configured to multiply the product of the acceleration values of the back plate in different directions in the first matrix and the acceleration values of each mechanical hard disk in the corresponding direction in the second matrix by the unit matrix to obtain a first value, and judge whether the difference value between the first value and zero is smaller than a first threshold value;
the second calculation module is configured to respond that the difference value between the first value and zero is smaller than the first threshold, acquire the acceleration value of each mechanical hard disk at a first moment and a second moment, calculate the vibration parameter corresponding to each mechanical hard disk according to the acceleration value of the first moment and the acceleration value of the second moment, and judge whether all the vibration parameters are larger than the second threshold; and
and the prompting module is configured for responding to the condition that all the vibration parameters are not larger than the second threshold value and prompting that the position of the mechanical hard disk is normal.
6. The system of claim 5, further comprising a positioning module configured to:
and in response to the fact that the difference value between the first value and zero is not smaller than the first threshold value, multiplying the second matrix by the transposed matrix of the second matrix to obtain a positioning matrix, and determining the abnormal hard disk according to the diagonal element value of the positioning matrix.
7. The system of claim 6, wherein the positioning module is further configured to:
judging whether element values with a difference value smaller than the first threshold value exist in diagonal element values of the positioning matrix or not; and
and responding to the fact that element values with the difference value smaller than the first threshold value exist in the diagonal element values of the positioning matrix, and determining the position of the abnormal hard disk according to the serial numbers of the element values.
8. The system of claim 5, wherein the second computing module is configured to:
and calculating the absolute value of the difference value between the acceleration value at the first moment and the acceleration value at the second moment in each direction to obtain the sub-vibration parameters in each direction, and adding the sub-vibration parameters in all directions to obtain the vibration parameters.
9. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method of any one of claims 1 to 4.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN202110341722.3A 2021-03-30 2021-03-30 Method, system, equipment and medium for protecting mechanical hard disk Active CN113127298B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110341722.3A CN113127298B (en) 2021-03-30 2021-03-30 Method, system, equipment and medium for protecting mechanical hard disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110341722.3A CN113127298B (en) 2021-03-30 2021-03-30 Method, system, equipment and medium for protecting mechanical hard disk

Publications (2)

Publication Number Publication Date
CN113127298A CN113127298A (en) 2021-07-16
CN113127298B true CN113127298B (en) 2023-01-06

Family

ID=76774574

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110341722.3A Active CN113127298B (en) 2021-03-30 2021-03-30 Method, system, equipment and medium for protecting mechanical hard disk

Country Status (1)

Country Link
CN (1) CN113127298B (en)

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1910434A (en) * 2004-01-14 2007-02-07 Abb公司 Method and apparatus to diagnose mechanical problems in machinery
JP2007147304A (en) * 2005-11-24 2007-06-14 Tdk Corp Acceleration sensor and magnetic disk drive device
JP2009217890A (en) * 2008-03-11 2009-09-24 Fujitsu Ltd Disk array device and recording control method of disk array device
CN101866309A (en) * 2009-04-17 2010-10-20 鸿富锦精密工业(深圳)有限公司 Monitoring system
CN102467943A (en) * 2010-11-17 2012-05-23 鸿富锦精密工业(深圳)有限公司 Electronic device and method for preventing hard disc from operating on same resonance point with same
US8549219B1 (en) * 2010-12-07 2013-10-01 Hewlett-Packard Development Company, L.P. Preventing hard drive failure and data loss due to vibration
CN103499382A (en) * 2013-09-30 2014-01-08 国家电网公司 Vibration data fusion and image recognition-based transformer fault diagnosis method
US9431039B1 (en) * 2013-05-21 2016-08-30 Western Digital (Fremont), Llc Multiple sensor array usable in two-dimensional magnetic recording
CN106844123A (en) * 2017-03-01 2017-06-13 郑州云海信息技术有限公司 The method for gathering the hard disk false module and its collection vibration data of vibration data
CN107341088A (en) * 2017-06-29 2017-11-10 联想(北京)有限公司 Data identification method and its equipment
CN107678927A (en) * 2017-10-31 2018-02-09 郑州云海信息技术有限公司 Distribute hard disk I O method, device, equipment and computer-readable recording medium
CN108052441A (en) * 2017-12-29 2018-05-18 郑州云海信息技术有限公司 A kind of test method, system, device and the storage medium of hard disk performance level
CN109032833A (en) * 2018-06-06 2018-12-18 深圳先进技术研究院 Correcting method, device, equipment and the storage medium of multi-bit error data
CN208580577U (en) * 2018-05-29 2019-03-05 联想(北京)有限公司 Hard-disk cartridge, hard disk backboard and electronic equipment
CN110706723A (en) * 2019-09-26 2020-01-17 上海本安仪表系统有限公司 Storage device and storage method of vehicle-mounted mechanical hard disk
CN111649886A (en) * 2019-03-04 2020-09-11 三菱重工业株式会社 Abnormality detection device, rotating machine, abnormality detection method, and program
CN112461934A (en) * 2020-11-20 2021-03-09 北京化工大学 Aero-engine blade crack source positioning method based on acoustic emission
CN112530475A (en) * 2020-12-11 2021-03-19 杭州鸿泉物联网技术股份有限公司 Mechanical hard disk shockproof device, method and system, electronic equipment and storage medium

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1910434A (en) * 2004-01-14 2007-02-07 Abb公司 Method and apparatus to diagnose mechanical problems in machinery
JP2007147304A (en) * 2005-11-24 2007-06-14 Tdk Corp Acceleration sensor and magnetic disk drive device
JP2009217890A (en) * 2008-03-11 2009-09-24 Fujitsu Ltd Disk array device and recording control method of disk array device
CN101866309A (en) * 2009-04-17 2010-10-20 鸿富锦精密工业(深圳)有限公司 Monitoring system
CN102467943A (en) * 2010-11-17 2012-05-23 鸿富锦精密工业(深圳)有限公司 Electronic device and method for preventing hard disc from operating on same resonance point with same
US8549219B1 (en) * 2010-12-07 2013-10-01 Hewlett-Packard Development Company, L.P. Preventing hard drive failure and data loss due to vibration
US9431039B1 (en) * 2013-05-21 2016-08-30 Western Digital (Fremont), Llc Multiple sensor array usable in two-dimensional magnetic recording
CN103499382A (en) * 2013-09-30 2014-01-08 国家电网公司 Vibration data fusion and image recognition-based transformer fault diagnosis method
CN106844123A (en) * 2017-03-01 2017-06-13 郑州云海信息技术有限公司 The method for gathering the hard disk false module and its collection vibration data of vibration data
CN107341088A (en) * 2017-06-29 2017-11-10 联想(北京)有限公司 Data identification method and its equipment
CN107678927A (en) * 2017-10-31 2018-02-09 郑州云海信息技术有限公司 Distribute hard disk I O method, device, equipment and computer-readable recording medium
CN108052441A (en) * 2017-12-29 2018-05-18 郑州云海信息技术有限公司 A kind of test method, system, device and the storage medium of hard disk performance level
CN208580577U (en) * 2018-05-29 2019-03-05 联想(北京)有限公司 Hard-disk cartridge, hard disk backboard and electronic equipment
CN109032833A (en) * 2018-06-06 2018-12-18 深圳先进技术研究院 Correcting method, device, equipment and the storage medium of multi-bit error data
CN111649886A (en) * 2019-03-04 2020-09-11 三菱重工业株式会社 Abnormality detection device, rotating machine, abnormality detection method, and program
CN110706723A (en) * 2019-09-26 2020-01-17 上海本安仪表系统有限公司 Storage device and storage method of vehicle-mounted mechanical hard disk
CN112461934A (en) * 2020-11-20 2021-03-09 北京化工大学 Aero-engine blade crack source positioning method based on acoustic emission
CN112530475A (en) * 2020-12-11 2021-03-19 杭州鸿泉物联网技术股份有限公司 Mechanical hard disk shockproof device, method and system, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113127298A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
US7533292B2 (en) Management method for spare disk drives in a raid system
CN107547595B (en) Cloud resource scheduling system, method and device
CN109274544B (en) Fault detection method and device for distributed storage system
US20180018822A1 (en) Augmented reality system and method
CN111522703A (en) Method, apparatus and computer program product for monitoring access requests
WO2023226380A1 (en) Disk processing method and system, and electronic device
CN117280327B (en) Detecting data center large scale interruptions through near real time/offline data using machine learning models
US20160094392A1 (en) Evaluating Configuration Changes Based on Aggregate Activity Level
CN113127298B (en) Method, system, equipment and medium for protecting mechanical hard disk
CN112436958B (en) Method, system, device and medium for predicting failure of data center network device
US11930292B2 (en) Device state monitoring method and apparatus
CN105471616A (en) Cache system management method and system
CN110780815A (en) Log deleting method and device
CN107154960B (en) Method and apparatus for determining service availability information for distributed storage systems
CN113535477B (en) Method and equipment for data disaster recovery
CN108845772A (en) A kind of hard disc failure processing method, system, equipment and computer storage medium
CN110968456A (en) Method and device for processing fault disk in distributed storage system
CN112702198A (en) Abnormal root cause positioning method and device, electronic equipment and storage medium
WO2021170048A1 (en) Data storage method and apparatus, and storage medium
JP2015176168A (en) Administration server, fault restoration method, and computer program
CN111367467B (en) Storage resource mounting method and device, server and distributed system
CN113722022A (en) State management system and method
CN112131201A (en) Method, system, equipment and medium for high availability of network additional storage
CN109669814A (en) A kind of restoration methods of Metadata Service, device, equipment and readable storage medium storing program for executing
CN110955556B (en) Database recovery method and device, storage medium and database system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant