CN112562774A - Storage device mounting method and device, computer device and storage medium - Google Patents

Storage device mounting method and device, computer device and storage medium Download PDF

Info

Publication number
CN112562774A
CN112562774A CN202011467498.4A CN202011467498A CN112562774A CN 112562774 A CN112562774 A CN 112562774A CN 202011467498 A CN202011467498 A CN 202011467498A CN 112562774 A CN112562774 A CN 112562774A
Authority
CN
China
Prior art keywords
repair
storage device
result
storage
detection
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.)
Granted
Application number
CN202011467498.4A
Other languages
Chinese (zh)
Other versions
CN112562774B (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.)
Shenzhen Onething Technology Co Ltd
Original Assignee
Shenzhen Onething 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 Shenzhen Onething Technology Co Ltd filed Critical Shenzhen Onething Technology Co Ltd
Priority to CN202011467498.4A priority Critical patent/CN112562774B/en
Publication of CN112562774A publication Critical patent/CN112562774A/en
Application granted granted Critical
Publication of CN112562774B publication Critical patent/CN112562774B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/04Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
    • G11C29/08Functional testing, e.g. testing during refresh, power-on self testing [POST] or distributed testing
    • G11C29/12Built-in arrangements for testing, e.g. built-in self testing [BIST] or interconnection details
    • G11C29/44Indication or identification of errors, e.g. for repair
    • G11C29/4401Indication or identification of errors, e.g. for repair for self repair
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C7/00Arrangements for writing information into, or reading information out from, a digital store
    • G11C7/24Memory cell safety or protection circuits, e.g. arrangements for preventing inadvertent reading or writing; Status cells; Test cells

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The application relates to a storage device mounting method and device, computer equipment and a storage medium. The method comprises the following steps: when the storage device to be mounted is detected, performing first repair on the storage device to obtain a first repair result; when the first repair result is a repair failure, performing second repair on the storage device to obtain a second repair result; wherein the repair range of the second repair is larger than the repair range of the first repair; and when the second repair result is that the repair is successful, mounting the storage device. By adopting the method, the normal work of the storage equipment can be ensured, and the data security is improved.

Description

Storage device mounting method and device, computer device and storage medium
Technical Field
The present application relates to the field of data storage technologies, and in particular, to a storage device mounting method and apparatus, a computer device, and a storage medium.
Background
With the development of computer technology, various data is more and more, the data volume is more and more increased, and in order to ensure the security of the data, the data is often required to be stored through a storage device, such as a magnetic disk, a magnetic tape, and the like. When the storage device is used, the storage device needs to be mounted in a computer system, so that computer data on the storage device can be accessed by a user through a file system of the computer.
At present, when data storage is carried out on a storage device after mounting, device abnormality may occur, such as the problems of incapability of writing, data writing error, data loss and the like, so that normal work of the storage device is influenced, data loss or abnormal error is caused, and the safety of data is reduced.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a storage device mounting method, an apparatus, a computer device, and a storage medium, which can ensure that a storage device operates normally and improve data security.
A storage device mount method, the method comprising:
when the storage device to be mounted is detected, performing first repair on the storage device to obtain a first repair result;
when the first repair result is a repair failure, performing second repair on the storage device to obtain a second repair result; wherein the repair range of the second repair is larger than the repair range of the first repair;
and when the second repair result is that the repair is successful, mounting the storage device.
In one embodiment, when a storage device to be mounted is detected, performing a first repair on the storage device, and obtaining a first repair result includes:
when the access to the external storage device is detected, performing local repair on the storage device to obtain a first repair result comprising a local repair result;
when the first repair result is a repair failure, performing a second repair on the storage device, and obtaining a second repair result includes:
and when the local repair result is a repair failure, performing comprehensive repair on the storage device to obtain a second repair result comprising a comprehensive repair result.
In one embodiment, after the mounting the storage device, the method further includes:
when the storage equipment is mounted successfully and meets preset storage equipment detection conditions, carrying out storage equipment detection on the storage equipment to obtain a storage equipment detection result;
and when the detection result of the storage equipment is that the storage equipment is abnormal, sending an abnormal prompt message of the storage equipment.
In one embodiment, when the storage device is mounted successfully and meets a preset storage device detection condition, performing storage device detection on the storage device, and obtaining a storage device detection result includes:
when the mounting result of the storage equipment represents that mounting is successful and the detection period of the storage equipment is reached, detecting the mounting information of the storage equipment to obtain a mounting information detection result;
performing read-write detection on the storage equipment to obtain a read-write detection result;
and obtaining a storage device detection result according to the mounting information detection result and the read-write detection result.
In one embodiment, detecting mounting information of the storage device, and obtaining a mounting information detection result includes:
acquiring file system information of a storage device;
respectively carrying out anomaly detection on various types of system information in the file system information to obtain a file system information detection result;
and obtaining a mounting information detection result based on the file system information detection result.
In one embodiment, performing read-write detection on the storage device, and obtaining a read-write detection result includes:
acquiring read-write test data respectively corresponding to each sector in the storage device;
writing the read-write test data into the sectors corresponding to the storage equipment, and respectively reading the read-write test data from the sectors corresponding to the storage equipment to obtain sector test data;
and obtaining a read-write detection result based on a comparison result between the sector test data and the read-write test data.
In one embodiment, the storage device mounting method further includes:
when the first repairing result is that the repairing is successful, mounting the storage equipment;
when the mounting of the storage equipment is successful and the preset storage equipment detection condition is met, carrying out storage equipment detection on the storage equipment;
and when the detection result of the storage equipment is that the storage equipment is normal, reading and writing data based on the storage equipment.
An apparatus for mounting a storage device, the apparatus comprising:
the first repairing module is used for performing first repairing on the storage equipment to be mounted when the storage equipment to be mounted is detected to obtain a first repairing result;
the second repair module is used for performing second repair on the storage device to obtain a second repair result when the first repair result is a repair failure; wherein the repair range of the second repair is larger than the repair range of the first repair;
and the storage device mounting module is used for mounting the storage device when the second repair result is that the repair is successful.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
when the storage device to be mounted is detected, performing first repair on the storage device to obtain a first repair result;
when the first repair result is a repair failure, performing second repair on the storage device to obtain a second repair result; wherein the repair range of the second repair is larger than the repair range of the first repair;
and when the second repair result is that the repair is successful, mounting the storage device.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
when the storage device to be mounted is detected, performing first repair on the storage device to obtain a first repair result;
when the first repair result is a repair failure, performing second repair on the storage device to obtain a second repair result; wherein the repair range of the second repair is larger than the repair range of the first repair;
and when the second repair result is that the repair is successful, mounting the storage device.
According to the storage device mounting method, the storage device mounting device, the computer device and the storage medium, the detected storage device to be mounted is subjected to first repair, the storage device is subjected to second repair with a larger repair range when the first repair result is that the repair fails, and the storage device is mounted when the second repair result is that the repair succeeds. Before the storage device is mounted, the storage device which fails in the first repair is repaired sequentially through two times of repair, the second repair range is larger than the first repair range, the storage device is mounted after the repair is successful, the storage device can work normally after the mounting of the storage device is successful, the normal storage of data is ensured, and the safety of the data is improved.
Drawings
FIG. 1 is a diagram of an application environment of a method for mounting a storage device in one embodiment;
FIG. 2 is a flow diagram illustrating a method for mounting a storage device according to an embodiment;
FIG. 3 is a flow diagram illustrating storage device detection in one embodiment;
FIG. 4 is a flowchart illustrating a method for mounting a storage device according to another embodiment;
FIG. 5 is a block diagram showing the structure of a storage device mounting apparatus according to an embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The storage device mounting method provided by the application can be applied to the application environment shown in fig. 1. Wherein the storage device 102 can communicate with the server 104 after the mount is successful. When the storage device 102 accesses the server 104, the server 104 needs to mount the accessed storage device 102, the server 104 performs a first repair on the storage device 102 to be mounted, performs a second repair with a larger repair range on the storage device 102 when the first repair result is a repair failure, and mounts the storage device 102 when the second repair result is a repair success. The storage device 102 may be, but is not limited to, various devices for storing information, such as a hard disk, a magnetic tape, a magnetic core memory, a magneto-optical disk, and the like, and the server 104 may be implemented by an independent server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a storage device mount method is provided, which is described by taking the application of the method to the server in fig. 1 as an example, and includes the following steps:
step 202, when the storage device to be mounted is detected, performing a first repair on the storage device to obtain a first repair result.
Mount, among other things, refers to a process by which a computer operating system makes computer files and directories on a storage device, such as a hard disk or shared resource, available to a user for access through the computer's file system. When the computer is shut down, each mounted storage will undergo an offload to ensure that all queued data is written and to ensure the integrity of the file system structure on the storage device. Specifically, in the Linux operating system, all devices are regarded as files, resources of the entire computer are integrated into a large file directory, and when a file in the storage device needs to be accessed, a partition in which the file is located must be mounted on an existing directory, and then the storage device is accessed by accessing the directory. Therefore, successful mounting of the storage device is a necessary prerequisite for normal access to the storage device. The storage device is a device for storing information, and generally, the information is digitized and then stored in a medium using electricity, magnetism, or optics, such as a hard disk, a magnetic tape, and a magneto-optical disk. When a storage device such as a hard disk has errors and generates a bad track, the corresponding part of the hard disk cannot carry out normal data reading and writing, the bad track of the hard disk is divided into a logic bad track and a physical bad track, the former is a soft bad track which is usually caused by improper software operation or use and can be repaired by software; the latter is a physical bad track, indicating that physical damage is generated on the hard disk track, and can only be solved by changing the use condition of the hard disk partition or sector. The repair is to repair a bad track existing in the storage device, so that the part of the storage device where the error occurs can continue to operate normally. The first repair is a first mode type repair, for example, the repair may be a quick repair, that is, a repair is performed for a critical location in the storage device or a portion where an error easily occurs, and the quick repair is fast and takes little time. The first repair result is a result of the first repair to the storage device, and may include a repair success and a repair failure.
Specifically, when the server detects the storage device to be mounted, for example, when the server enumerates or finds that the storage device of the peripheral device is accessed, the server performs first repair on the storage device, so as to quickly repair a key part of the storage device, and obtain a first repair result.
Step 204, when the first repair result is a repair failure, performing a second repair on the storage device to obtain a second repair result; wherein the repair range of the second repair is larger than the repair range of the first repair.
The second repair is a second mode type repair, for example, a full scan repair may be performed on the storage device, and the full scan repair may traverse all locations of the storage device, so that the storage device may be repaired accurately and fully. The repair range of the second repair is greater than the repair range of the first repair, i.e., the second repair may repair the storage device more accurately and more comprehensively than the first repair.
Specifically, after the server obtains a first repair result after the first repair is performed on the storage device, if the first repair result is a repair failure, that is, it indicates that the problem existing in the storage device cannot be completely solved by the first repair, the server further performs a second repair with a larger repair range on the storage device, so that the gradient repair on the storage device is realized by two repairs with an increased repair range, the comprehensiveness of the repair on the storage device can be improved, and a second repair result is obtained.
And step 206, mounting the storage device when the second repair result is that the repair is successful.
After the second repair result is obtained, if the second repair result is successful, it is indicated that the storage device has been repaired and the corresponding existing problems are solved, normal work can be performed, and the server mounts the storage device, so that normal data read-write operation can be performed through the storage device after the storage device is successfully mounted.
In the storage device mounting method, the detected storage device to be mounted is subjected to first repair, the storage device is subjected to second repair with a larger repair range when the first repair result is that the repair fails, and the storage device is mounted when the second repair result is that the repair succeeds. Before the storage device is mounted, the storage device which fails in the first repair is repaired sequentially through two times of repair, the second repair range is larger than the first repair range, the storage device is mounted after the repair is successful, the storage device can work normally after the mounting of the storage device is successful, the normal storage of data is ensured, and the safety of the data is improved.
In one embodiment, when a storage device to be mounted is detected, performing a first repair on the storage device, and obtaining a first repair result includes: and when detecting that the external storage device is accessed, performing local repair on the storage device until a first repair result comprising a local repair result.
In this embodiment, the first repair is a partial repair, and the first repair result includes a partial repair result. Local repair is a fast mode repair, i.e., repair is performed only on local locations of the storage device, such as locations in the storage device where errors are likely to occur. Specifically, when the server detects that the external storage device is accessed, the server performs local repair on the storage device, so that a local repair result can be quickly obtained.
Further, if the first repair result is successful, that is, it indicates that the storage device has solved the existing errors through the first repair and can normally operate, the server may directly mount the first repaired storage device, and perform data read-write operation through the storage device after the mount is successful.
Further, when the first repair result is a repair failure, performing a second repair on the storage device, and obtaining a second repair result includes: and when the local repair result is a repair failure, performing comprehensive repair on the storage device to obtain a second repair result comprising a comprehensive repair result.
In this embodiment, the second repair is a full repair, and the second repair result includes a full repair result. The comprehensive repair is to comprehensively scan the storage device, traverse all positions of the storage device and repair each position, wherein the repair range of the comprehensive repair is larger than that of the quick repair, and the storage device can be completely and comprehensively repaired. Specifically, when the storage device is locally repaired and the obtained local repair result is a repair failure, the server performs comprehensive repair on the storage device, and traverses all parts of the storage device, for example, traverses all sectors of a hard disk to perform repair, so as to obtain a comprehensive repair result.
In this embodiment, the local repair is performed on the storage device to be mounted first, so that the processing speed of repair can be ensured, and when the local repair is successful, the storage device after the local repair can be directly mounted. When the local repair fails, the storage device is repaired comprehensively to improve the comprehensiveness of the repair. Through two times of gradient repair processing, the processing efficiency of the repair before the mounting of the storage device can be improved on the premise of ensuring the repair effect before the mounting of the storage device.
In one embodiment, after the mounting the storage device, the method further includes: when the storage equipment is mounted successfully and meets preset storage equipment detection conditions, carrying out storage equipment detection on the storage equipment to obtain a storage equipment detection result; and when the detection result of the storage equipment is that the storage equipment is abnormal, sending an abnormal prompt message of the storage equipment.
The storage device detection condition is used for determining that the storage device needs to be triggered to detect, and the storage device detection condition is preset according to actual needs, such as timing detection, instruction trigger detection and the like. The storage device detection is to detect the attribute and function of the storage device to determine whether the storage device can operate normally.
Specifically, after the storage device is mounted, the server obtains a mounting result, if the mounting result indicates that the storage device is successfully mounted, the server monitors whether a preset storage device detection condition is met, if so, the server monitors whether a preset storage device detection period is reached, if so, the server detects the storage device, and if so, the server detects the mounting information and the read-write function of the storage device respectively to obtain a storage device detection result. And if the detection result of the storage equipment is that the storage equipment is abnormal, namely the storage equipment is abnormal and cannot work normally, the server sends a storage equipment abnormity prompting message. In specific application, if the storage device detection result is that the storage device is abnormal, the server can further determine the abnormal type of the storage device, generate a corresponding abnormal prompt message based on the abnormal type of the storage device, and prompt by sending the abnormal prompt message, so as to prompt the abnormal type of the storage device in time. On the other hand, if the detection result of the storage device is that the storage device is normal, which indicates that the storage device can perform normal operation, the server may perform data read-write operation through the storage device, and further, the server may also send a prompt message that the storage device is normal to prompt the state of the storage device.
In this embodiment, when the storage device is successfully mounted and a preset storage device detection condition is met, the server detects the storage device for the storage device, and sends a storage device exception prompt message when the storage device is abnormal and normal operation cannot be performed, so that the state of the storage device can be effectively monitored, and the storage device exception prompt is timely performed to ensure normal operation of the storage device, thereby ensuring data safety.
In an embodiment, as shown in fig. 3, the processing of storage device detection, that is, when the storage device is mounted successfully and a preset storage device detection condition is met, performing storage device detection on the storage device, and obtaining a storage device detection result includes:
step 302, when the mounting result of the storage device represents that the mounting is successful and the detection period of the storage device is reached, detecting the mounting information of the storage device to obtain a mounting information detection result.
In this embodiment, the storage device detection condition includes a storage device detection period. The storage device detection period is a period for detecting the storage device at regular time, and can be flexibly set according to actual needs, for example, the period can be set to 12 hours, that is, the storage device is detected every 12 hours. The detection period of the storage device can be specifically set according to the application environment of the storage device, and if the data of the storage device is frequently read and written, the value of the detection period of the storage device can be set to be smaller; and when the data read-write interval time of the storage device is longer, the value of the detection period of the storage device can be set longer, so that the detection resources are more effectively utilized on the premise of ensuring the detection effect of the storage device. The mount information is attribute information of the storage device, and may specifically include file system information of the storage device, such as whether the storage device is readable and writable, whether there is a recording error, whether there is a "specific character string" in the initial plurality of sectors, and the like.
Specifically, when it is determined that the mount result of the storage device represents that the mount is successful and the storage device detection period is reached, the storage device is triggered to be detected, the server detects mount information of the storage device, and if the server can acquire file system information of the storage device to perform anomaly detection, the mount information detection result is obtained.
And step 304, performing read-write detection on the storage device to obtain a read-write detection result.
The read-write detection is to detect whether the storage device can perform normal read-write, and if the storage device can perform normal read-write, that is, the read data corresponds to the actually written data, the storage device is reliable, and data read-write operation can be performed based on the storage device. On the contrary, if the reading and writing of the storage device are abnormal, that is, the read data does not correspond to the actually written data, the storage device is unreliable, and if the data reading and writing operation is performed through the storage device, data loss or errors can be caused, and data safety is affected.
Specifically, the server performs read-write detection on the storage device, and specifically, may write specific test data into the storage device, re-read the data from the storage device, and compare the re-read data with the written data to obtain a read-write detection result.
And step 306, obtaining a storage device detection result according to the mounting information detection result and the read-write detection result.
And after the mounting information detection result and the read-write detection result are obtained, the server combines the mounting information detection result and the read-write detection result to obtain a storage device detection result. Specifically, if any one of the mount information detection result and the read-write detection result is abnormal, the storage device detection result is detected to be abnormal; and when the mounting information detection result and the read-write detection result are both detected normally, the storage device detection result is detected normally. During specific implementation, if the detection result of the storage device is abnormal, the storage device is indicated to be abnormal, and normal operation cannot be performed, the server can send a prompt message to prompt the storage device to perform abnormal processing; if the storage device detection result is that the detection is normal, the device read-write operation can be performed based on the storage device, and the storage device is repeatedly detected after waiting for the next storage device detection period.
In the embodiment, the mounting information and the read-write function of the storage device are detected regularly, so that the abnormality of the storage device can be found in time, and the influence on the data security when the data is read and written through the abnormal storage device is avoided.
In one embodiment, detecting mounting information of a storage device, and obtaining a mounting information detection result includes: acquiring file system information of a storage device; respectively carrying out anomaly detection on various types of system information in the file system information to obtain a file system information detection result; and obtaining a mounting information detection result based on the file system information detection result.
In this embodiment, the mount information of the storage device includes file system information, which may specifically include, but is not limited to, various types of system information including whether to be readable and writable, whether to have a recording error, whether to have a "specific character string" in the initial sectors, and the like. Whether the storage equipment supports read-write operation or not is determined, and whether the storage equipment is changed into read-only attribute or not is determined; whether a recording error exists is used for determining whether an error exception exists in the storage device; whether the initial sectors have "special strings" is used to determine whether certain erroneous strings exist in the first few sectors of the storage device. Generally, if there is a specific character string in the first few sectors of the storage device, errors may have occurred in other parts of the storage device, so that it can be determined whether the storage device is abnormal.
Specifically, when detecting mount information of the storage device, the server obtains file system information of the storage device, and may specifically detect attribute information of the storage device to obtain the file system information of the storage device. And after the file system information of the storage device is obtained, the server respectively performs exception detection on various types of system information in the file system information to obtain a file system information detection result. For example, the file system information may include various types of system information such as whether the file system information is readable and writable, whether a recording error exists, whether specific character strings exist in initial sectors, and the like, and the server may perform anomaly detection on the various types of system information, such as whether the storage device supports reading and writing according to identification information that is readable and writable in the file system information, whether an error exists in the storage device according to identification information that is whether a recording error exists in the file system information, and may also perform character string matching on character string information of the initial sectors of the storage device, to determine whether specific character strings exist in the initial sectors, thereby determining whether the storage device is anomalous. The file system information detection result comprises an abnormal detection result corresponding to each type of system information.
After obtaining the file system information detection result, the server obtains a mount information detection result based on the file system information detection, for example, the file system information detection result may be directly used as the mount information detection result; or analyzing the abnormal detection results respectively corresponding to various types of system information in the file system information detection results, and sequencing according to the abnormal severity to obtain the mounting information detection results.
In this embodiment, each type of system information in the file system information of the storage device is respectively subjected to anomaly detection, a mount information detection result is obtained based on the obtained file system information detection result, the storage device can be subjected to anomaly analysis based on the file system information of the storage device, and it can be determined that the normal or abnormal state of the storage device is monitored, so that the normal operation of the storage device is ensured.
In one embodiment, performing read-write detection on the storage device, and obtaining a read-write detection result includes: acquiring read-write test data respectively corresponding to each sector in the storage device; writing the read-write test data into the sectors corresponding to the storage equipment, and respectively reading the read-write test data from the sectors corresponding to the storage equipment to obtain sector test data; and obtaining a read-write detection result based on a comparison result between the sector test data and the read-write test data.
The sector refers to a divided area on a storage device such as a magnetic disk, each magnetic track on the magnetic disk is equally divided into a plurality of arc segments, the arc segments are sectors of the magnetic disk, and the reading and writing of the hard disk take the sectors as basic units. The read-write detection of the storage device needs to be performed by re-reading after specific data is written in each sector of the storage device, so that the read-write detection of each area of the storage device is realized.
Specifically, when performing read-write detection on the storage device, the server acquires read-write test data corresponding to each sector in the storage device, and the read-write test data is generated in advance according to actual requirements, and random number data can be generated through a specific data generation algorithm, for example, through a random number generation algorithm. In order to distinguish read and write of each area in the storage device, the read and write test data may correspond to each area of the storage device, that is, different areas may correspond to different read and write test data, thereby ensuring the accuracy of read and write detection. After the read-write test data are obtained, the server writes the read-write test data into the corresponding sectors of the storage device, and different sectors can write corresponding different read-write test data. And the server respectively reads sector test data from the sectors corresponding to the storage equipment, wherein the sector test data refers to data obtained by re-reading the read-write test data after the read-write test data is written into the storage equipment. And the server compares the sector test data with the read-write test data, and obtains a read-write detection result according to a comparison result. Specifically, the sector test data and the read-write test data corresponding to each sector in the storage device can be compared one by one, if the comparison is consistent, it is indicated that the sector test data read from the sector is consistent with the read-write test data written into the sector, i.e. the read-write is consistent, the read-write function of the sector is normal, and the data security can be ensured; if the comparison is inconsistent, it indicates that the reading and writing of the sector are inconsistent, and the reading and writing function of the sector is abnormal, so that the data security cannot be ensured. The read-write detection result reflects the read-write function state of the storage device, and in specific implementation, the read-write detection result can include the sector read-write detection result corresponding to each sector in the storage device, so that the read-write of each sector of the storage device is visually fed back. In addition, the read-write detection result may also include a determination of the whole read-write function of the storage device, for example, when the number of sectors with abnormal read-write in the storage device exceeds a preset abnormal number threshold, the number of sectors with abnormal read-write in the storage device is considered to be too large, and the storage device is not trusted, so the read-write detection result may be abnormal read-write.
In the embodiment, the read-write test data is directly and respectively written into each sector of the storage device to read the data, and the read-write detection result of the storage device is obtained according to the comparison result between the re-read sector test data and the read-write test data, so that the read-write function of each sector in the storage device is detected in a direct read-write mode, the read-write function state of the storage device can be accurately determined, and the normal work of the storage device is ensured.
In one embodiment, the storage device mounting method further comprises: when the first repairing result is that the repairing is successful, mounting the storage equipment; when the mounting of the storage equipment is successful and the preset storage equipment detection condition is met, carrying out storage equipment detection on the storage equipment; and when the detection result of the storage equipment is that the storage equipment is normal, reading and writing data based on the storage equipment.
In this embodiment, if the storage device is successfully repaired after the first repair, the storage device is directly mounted, the storage device is detected when the storage device is successfully mounted and the detection condition of the storage device is met, if the detection result is that the storage device is normal, it indicates that the state of the storage device is normal, data read-write operation can be normally performed, and data read-write operation is performed based on the storage device.
Specifically, after the server performs the first repair on the storage device, if the first repair result is that the repair is successful, it indicates that the storage device has solved the existing errors through the first repair and can normally operate, the server directly mounts the storage device after the first repair. The server obtains the mounting result, if the mounting result shows that the storage device is successfully mounted, the server monitors whether a preset storage device detection condition is met, if so, the server detects whether a preset storage device detection period is reached, if so, the server detects the storage device, and if so, the server respectively detects the mounting information and the read-write function of the storage device to obtain a storage device detection result. And if the detection result of the storage equipment indicates that the storage equipment is normal, the state of the storage equipment is normal, and corresponding data reading and writing operation can be normally executed, the server reads and writes data based on the storage equipment, so that the data reading and writing processing is realized.
In the embodiment, after the first repair is successful, the storage device is mounted, the storage device is detected when the mounting is successful and the detection condition of the storage device is met, if the storage device is normal, data reading and writing are performed based on the storage device, so that the reading and writing processing of data is realized, the storage device in a normal state can be efficiently detected and effectively monitored, normal data reading and writing of the storage device can be guaranteed, and the data safety is improved.
In one embodiment, as shown in fig. 4, there is provided a storage device mounting method, including the steps of:
step 402, initializing a background;
step 404, whether to access an external storage device; if yes, go to step 406; if not, go to step 404;
step 406, whether the fast mode repair is successful; if yes, go to step 410; if not, go to step 408;
step 408, whether the full-disk scanning repair is successful or not; if yes, go to step 410; if not, go to step 422;
in this embodiment, the storage device is a disk, specifically, a multi-gradient detection and repair is performed on the disk when the disk is mounted, specifically, after a background server serving as a disk manager is successfully initialized, whether the external storage device is accessed is detected, after enumeration or discovery of the external storage device, repair in a fast mode is performed for the first time, and if the repair process is not abnormal, mounting is attempted; if the repairing process in the fast mode is abnormal or an error is returned, performing two-layer repairing, namely performing full-disk scanning repairing, and then mounting.
Step 410, mounting;
step 412, whether the mount is successful; if yes, go to step 414; if not, go to step 422;
step 414, regularly detecting mounting information and performing read-write detection;
step 416, judging whether the mounting information is normal or not; if yes, go to step 418; if not, go to step 422;
step 418, whether the reading and writing are normal or not; if yes, go to step 420; if not, go to step 422;
in step 420, the storage device is normal.
Further, when the storage device is successfully repaired in the fast mode or the full-disk scanning, the storage device is mounted, and whether the mounting is normal or not is judged after the mounting is finished. If the storage device is mounted successfully, the background server performs file system (fs) information detection and direct io (direct read-write) data read-write detection on the successfully mounted storage device periodically, for example, once every half a day. The file system information is attribute information of mounting of the storage device, and specifically includes whether the storage device can be read and written, whether recording errors exist, whether specific character strings exist in the first sectors, and the like; the latter firstly generates a section of data by a specific algorithm, such as 4MB (megabit), then writes the data into the storage device by a direct io mode, then reads back and checks the data, and a failure in checking represents that the disk is abnormal currently, so that the situation that the device which is normal during mounting but is abnormal after a period of time is used is avoided.
Step 422, storing the device exception;
step 424, an exception prompting message is sent.
Further, if the storage device is abnormal, it indicates that the storage device cannot perform normal reading and writing, and sends an abnormal prompt message to prompt the storage device to be repaired or replaced, so that data loss or errors caused when the storage device performs data storage are avoided, and data safety is ensured.
In this embodiment, when the storage device is mounted, gradient detection and repair are introduced, the storage device to be mounted is subjected to fast mode repair with a first gradient first, and when the fast mode repair fails, the storage device is repaired by comprehensive scanning repair with a second gradient, so that the repair effect of the storage device is ensured. In addition, based on a regular detection mechanism, fs mounting information of the storage device is regularly detected, and specific data is read and written in a direct io mode for verification, so that the problem that detection is inaccurate due to fs caching can be avoided, the storage device is effectively monitored, more abnormal disk scenes are covered, the disk repair success rate and the disk utilization rate are improved, abnormal disks are discovered more timely, a user can be prompted to update the disks early, data loss or abnormality is avoided, and data safety is ensured.
It should be understood that although the various steps in the flow charts of fig. 2-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 5, there is provided a storage device mounting apparatus 500, including: a first repair module 502, a second repair module 504, and a storage device mount module 506, wherein:
a first repair module 502, configured to perform a first repair on a storage device to be mounted when the storage device to be mounted is detected, so as to obtain a first repair result;
a second repair module 504, configured to perform a second repair on the storage device to obtain a second repair result when the first repair result is a repair failure; wherein the repair range of the second repair is larger than the repair range of the first repair;
and a storage device mount module 506, configured to mount the storage device when the second repair result is that the repair is successful.
In one embodiment, the first repairing module 502 includes a local repairing module, configured to, when it is detected that an external storage device is accessed, perform local repairing on the storage device to obtain a first repairing result including a local repairing result; the second repairing module 504 includes a comprehensive repairing module, configured to repair the storage device comprehensively when the local repairing result is a repairing failure, and obtain a second repairing result including a comprehensive repairing result.
In one embodiment, the system further comprises a device detection module and an abnormality prompt module; wherein: the device detection module is used for detecting the storage device when the storage device is mounted successfully and meets the preset storage device detection conditions to obtain a storage device detection result; and the abnormity prompting module is used for sending out an abnormity prompting message of the storage equipment when the detection result of the storage equipment is that the storage equipment is abnormal.
In one embodiment, the device detection module comprises a mounting information detection module, a read-write detection module and a detection result acquisition module; wherein: the mounting information detection module is used for detecting the mounting information of the storage equipment to obtain a mounting information detection result when the mounting result of the storage equipment represents that the mounting is successful and the detection period of the storage equipment is reached; the read-write detection module is used for performing read-write detection on the storage equipment to obtain a read-write detection result; and the detection result obtaining module is used for obtaining a storage device detection result according to the mounting information detection result and the read-write detection result.
In one embodiment, the mounting information detection module comprises a file system information acquisition module, a file system information detection module and a mounting information detection result module; wherein: the file system information acquisition module is used for acquiring file system information of the storage device; the file system information detection module is used for respectively carrying out anomaly detection on various types of system information in the file system information to obtain a file system information detection result; and the mounting information detection result module is used for obtaining a mounting information detection result based on the file system information detection result.
In one embodiment, the read-write detection module comprises a test data acquisition module, a write-read module and a read-write comparison module; wherein: the test data acquisition module is used for acquiring read-write test data respectively corresponding to each sector in the storage equipment; the writing and reading module is used for writing the reading and writing test data into the sectors corresponding to the storage equipment and respectively reading the sector test data from the sectors corresponding to the storage equipment; and the read-write comparison module is used for obtaining a read-write detection result based on a comparison result between the sector test data and the read-write test data.
In one embodiment, the system further comprises a successful repair mounting module, a device detection module and a device normal processing module; wherein: the successful repair mounting module is used for mounting the storage equipment when the first repair result is that the repair is successful; the device detection module is used for detecting the storage device when the storage device is mounted successfully and meets the preset storage device detection condition; and the equipment normal processing module is used for reading and writing data based on the storage equipment when the detection result of the storage equipment is that the storage equipment is normal.
For specific limitations of the storage device mounting apparatus, reference may be made to the above limitations of the storage device mounting method, which are not described herein again. The modules in the storage device mounting apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a storage device mounting method.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
when the storage device to be mounted is detected, performing first repair on the storage device to obtain a first repair result;
when the first repair result is a repair failure, performing second repair on the storage device to obtain a second repair result; wherein the repair range of the second repair is larger than the repair range of the first repair;
and when the second repair result is that the repair is successful, mounting the storage device.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when the access to the external storage device is detected, performing local repair on the storage device to obtain a first repair result comprising a local repair result; and when the local repair result is a repair failure, performing comprehensive repair on the storage device to obtain a second repair result comprising a comprehensive repair result.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when the storage equipment is mounted successfully and meets preset storage equipment detection conditions, carrying out storage equipment detection on the storage equipment to obtain a storage equipment detection result; and when the detection result of the storage equipment is that the storage equipment is abnormal, sending an abnormal prompt message of the storage equipment.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when the mounting result of the storage equipment represents that mounting is successful and the detection period of the storage equipment is reached, detecting the mounting information of the storage equipment to obtain a mounting information detection result; performing read-write detection on the storage equipment to obtain a read-write detection result; and obtaining a storage device detection result according to the mounting information detection result and the read-write detection result.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring file system information of a storage device; respectively carrying out anomaly detection on various types of system information in the file system information to obtain a file system information detection result; and obtaining a mounting information detection result based on the file system information detection result.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring read-write test data respectively corresponding to each sector in the storage device; writing the read-write test data into the sectors corresponding to the storage equipment, and respectively reading the read-write test data from the sectors corresponding to the storage equipment to obtain sector test data; and obtaining a read-write detection result based on a comparison result between the sector test data and the read-write test data.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when the first repairing result is that the repairing is successful, mounting the storage equipment; when the mounting of the storage equipment is successful and the preset storage equipment detection condition is met, carrying out storage equipment detection on the storage equipment; and when the detection result of the storage equipment is that the storage equipment is normal, reading and writing data based on the storage equipment.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
when the storage device to be mounted is detected, performing first repair on the storage device to obtain a first repair result;
when the first repair result is a repair failure, performing second repair on the storage device to obtain a second repair result; wherein the repair range of the second repair is larger than the repair range of the first repair;
and when the second repair result is that the repair is successful, mounting the storage device.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the access to the external storage device is detected, performing local repair on the storage device to obtain a first repair result comprising a local repair result; and when the local repair result is a repair failure, performing comprehensive repair on the storage device to obtain a second repair result comprising a comprehensive repair result.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the storage equipment is mounted successfully and meets preset storage equipment detection conditions, carrying out storage equipment detection on the storage equipment to obtain a storage equipment detection result; and when the detection result of the storage equipment is that the storage equipment is abnormal, sending an abnormal prompt message of the storage equipment.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the mounting result of the storage equipment represents that mounting is successful and the detection period of the storage equipment is reached, detecting the mounting information of the storage equipment to obtain a mounting information detection result; performing read-write detection on the storage equipment to obtain a read-write detection result; and obtaining a storage device detection result according to the mounting information detection result and the read-write detection result.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring file system information of a storage device; respectively carrying out anomaly detection on various types of system information in the file system information to obtain a file system information detection result; and obtaining a mounting information detection result based on the file system information detection result.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring read-write test data respectively corresponding to each sector in the storage device; writing the read-write test data into the sectors corresponding to the storage equipment, and respectively reading the read-write test data from the sectors corresponding to the storage equipment to obtain sector test data; and obtaining a read-write detection result based on a comparison result between the sector test data and the read-write test data.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the first repairing result is that the repairing is successful, mounting the storage equipment; when the mounting of the storage equipment is successful and the preset storage equipment detection condition is met, carrying out storage equipment detection on the storage equipment; and when the detection result of the storage equipment is that the storage equipment is normal, reading and writing data based on the storage equipment.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for mounting a storage device, the method comprising:
when the storage device to be mounted is detected, performing first repair on the storage device to obtain a first repair result;
when the first repair result is a repair failure, performing second repair on the storage device to obtain a second repair result; wherein the repair range of the second repair is greater than the repair range of the first repair;
and when the second repair result is that the repair is successful, mounting the storage equipment.
2. The method according to claim 1, wherein when the storage device to be mounted is detected, performing a first repair on the storage device, and obtaining a first repair result comprises:
when the access to an external storage device is detected, performing local repair on the storage device to obtain a first repair result comprising a local repair result;
when the first repair result is a repair failure, performing a second repair on the storage device, and obtaining a second repair result includes:
and when the local repair result is a repair failure, performing comprehensive repair on the storage device to obtain a second repair result comprising a comprehensive repair result.
3. The method of claim 1, further comprising, after said mounting said storage device:
when the storage equipment is mounted successfully and meets preset storage equipment detection conditions, carrying out storage equipment detection on the storage equipment to obtain a storage equipment detection result;
and when the detection result of the storage equipment is that the storage equipment is abnormal, sending an abnormal prompt message of the storage equipment.
4. The method according to claim 3, wherein when the storage device is mounted successfully and a preset storage device detection condition is met, performing storage device detection on the storage device, and obtaining a storage device detection result comprises:
when the mounting result of the storage equipment represents that mounting is successful and reaches the detection period of the storage equipment, detecting the mounting information of the storage equipment to obtain a mounting information detection result;
performing read-write detection on the storage device to obtain a read-write detection result;
and obtaining a storage device detection result according to the mounting information detection result and the read-write detection result.
5. The method according to claim 4, wherein the detecting mounting information of the storage device, and obtaining a mounting information detection result comprises:
acquiring file system information of the storage device;
respectively carrying out anomaly detection on various types of system information in the file system information to obtain a file system information detection result;
and obtaining a mounting information detection result based on the file system information detection result.
6. The method of claim 4, wherein performing read-write detection on the storage device to obtain a read-write detection result comprises:
acquiring read-write test data respectively corresponding to each sector in the storage device;
writing the read-write test data into the sectors corresponding to the storage equipment, and respectively reading the read-write test data from the sectors corresponding to the storage equipment to obtain sector test data;
and obtaining a read-write detection result based on a comparison result between the sector test data and the read-write test data.
7. The method of any one of claims 1 to 6, further comprising:
when the first repairing result is that the repairing is successful, mounting the storage equipment;
when the storage equipment is mounted successfully and meets preset storage equipment detection conditions, carrying out storage equipment detection on the storage equipment;
and when the detection result of the storage equipment is that the storage equipment is normal, reading and writing data based on the storage equipment.
8. An apparatus for mounting a storage device, the apparatus comprising:
the first repairing module is used for performing first repairing on the storage equipment to be mounted when the storage equipment to be mounted is detected to obtain a first repairing result;
the second repair module is used for performing second repair on the storage device to obtain a second repair result when the first repair result is a repair failure; wherein the repair range of the second repair is greater than the repair range of the first repair;
and the storage device mounting module is used for mounting the storage device when the second repair result is that the repair is successful.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202011467498.4A 2020-12-14 2020-12-14 Storage device mounting method and device, computer device and storage medium Active CN112562774B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011467498.4A CN112562774B (en) 2020-12-14 2020-12-14 Storage device mounting method and device, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011467498.4A CN112562774B (en) 2020-12-14 2020-12-14 Storage device mounting method and device, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN112562774A true CN112562774A (en) 2021-03-26
CN112562774B CN112562774B (en) 2024-02-23

Family

ID=75064448

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011467498.4A Active CN112562774B (en) 2020-12-14 2020-12-14 Storage device mounting method and device, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN112562774B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944052A (en) * 2010-10-25 2011-01-12 上海申瑞电力科技股份有限公司 U disk capable of automatically repairing damaged data and damaged data repair method thereof
CN102902563A (en) * 2012-09-24 2013-01-30 中标软件有限公司 Linux operating system and method for mounting file system in starting process of Linux operating system
US20140181445A1 (en) * 2012-12-21 2014-06-26 Cirrus Data Solutions, Inc. Systems and methods for processing instructions while repairing and providing access to a copied volume of data
CN109086079A (en) * 2018-06-11 2018-12-25 青岛海信移动通信技术股份有限公司 A kind of storage equipment carry management method and device
CN109408259A (en) * 2018-09-21 2019-03-01 深圳点猫科技有限公司 A kind of restorative procedure and system based on after educating operating system carry unsuccessfully
CN109426586A (en) * 2017-08-25 2019-03-05 中兴通讯股份有限公司 A kind of data file restorative procedure, equipment and computer readable storage medium
CN110162429A (en) * 2019-05-27 2019-08-23 深圳市网心科技有限公司 System repair, server and storage medium
CN110502386A (en) * 2019-08-30 2019-11-26 西安易朴通讯技术有限公司 The on-line fault diagnosis method and apparatus of hard disk
CN111048125A (en) * 2018-10-15 2020-04-21 深信服科技股份有限公司 Bad channel scanning method and system
CN111143106A (en) * 2019-12-31 2020-05-12 苏州浪潮智能科技有限公司 Repair method, device, equipment and medium for dual-port SSD
CN111209138A (en) * 2018-11-22 2020-05-29 浙江宇视科技有限公司 Operation and maintenance method and device of data storage system
CN111475101A (en) * 2019-01-23 2020-07-31 安凯(广州)微电子技术有限公司 Method, system, device and storage medium for repairing flash memory card
CN111897686A (en) * 2020-08-05 2020-11-06 腾讯科技(深圳)有限公司 Server cluster hard disk fault processing method and device, electronic equipment and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944052A (en) * 2010-10-25 2011-01-12 上海申瑞电力科技股份有限公司 U disk capable of automatically repairing damaged data and damaged data repair method thereof
CN102902563A (en) * 2012-09-24 2013-01-30 中标软件有限公司 Linux operating system and method for mounting file system in starting process of Linux operating system
US20140181445A1 (en) * 2012-12-21 2014-06-26 Cirrus Data Solutions, Inc. Systems and methods for processing instructions while repairing and providing access to a copied volume of data
CN109426586A (en) * 2017-08-25 2019-03-05 中兴通讯股份有限公司 A kind of data file restorative procedure, equipment and computer readable storage medium
CN109086079A (en) * 2018-06-11 2018-12-25 青岛海信移动通信技术股份有限公司 A kind of storage equipment carry management method and device
CN109408259A (en) * 2018-09-21 2019-03-01 深圳点猫科技有限公司 A kind of restorative procedure and system based on after educating operating system carry unsuccessfully
CN111048125A (en) * 2018-10-15 2020-04-21 深信服科技股份有限公司 Bad channel scanning method and system
CN111209138A (en) * 2018-11-22 2020-05-29 浙江宇视科技有限公司 Operation and maintenance method and device of data storage system
CN111475101A (en) * 2019-01-23 2020-07-31 安凯(广州)微电子技术有限公司 Method, system, device and storage medium for repairing flash memory card
CN110162429A (en) * 2019-05-27 2019-08-23 深圳市网心科技有限公司 System repair, server and storage medium
CN110502386A (en) * 2019-08-30 2019-11-26 西安易朴通讯技术有限公司 The on-line fault diagnosis method and apparatus of hard disk
CN111143106A (en) * 2019-12-31 2020-05-12 苏州浪潮智能科技有限公司 Repair method, device, equipment and medium for dual-port SSD
CN111897686A (en) * 2020-08-05 2020-11-06 腾讯科技(深圳)有限公司 Server cluster hard disk fault processing method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
钟明辉;朱守元: "基于嵌入式LINUX系统的一种硬盘管理机制的研究与开发", 《软件工程师》, vol. 17, no. 4, pages 38 - 42 *

Also Published As

Publication number Publication date
CN112562774B (en) 2024-02-23

Similar Documents

Publication Publication Date Title
US11003536B2 (en) Method, device and computer readable storage medium for writing to disk array
TWI552158B (en) Systems and methods for testing memory
US7356744B2 (en) Method and system for optimizing testing of memory stores
US20060215297A1 (en) Storage apparatus, control method therefor and program
US6550019B1 (en) Method and apparatus for problem identification during initial program load in a multiprocessor system
KR100561495B1 (en) Self healing storage system
JP2007220284A (en) Memory device fail summary data reduction for improved redundancy analysis
CN104685474A (en) Notification of address range including non-correctable error
CN110990187B (en) Memory inspection method and system
CN112416670A (en) Hard disk test method, device, server and storage medium
US5822513A (en) Method and apparatus for detecting stale write data
US11551778B2 (en) System and method for detecting and repairing defective memory cells
US7506224B2 (en) Failure recovering method and recording apparatus
US7181641B2 (en) Data storage verification techniques for disk drivers
CN109086162B (en) Memory diagnosis method and device
CN112562774B (en) Storage device mounting method and device, computer device and storage medium
US20100169572A1 (en) Data storage method, apparatus and system for interrupted write recovery
CN113190179B (en) Method for prolonging service life of mechanical hard disk, storage device and system
CN113094221B (en) Fault injection method, device, computer equipment and readable storage medium
JP2015108986A (en) Information processing apparatus, test instruction string for information processing apparatus, and testing method
CN110826114B (en) User data testing method and device based on SSD after safe erasure
US6229743B1 (en) Method of a reassign block processing time determination test for storage device
US20220374310A1 (en) Write request completion notification in response to partial hardening of write data
JP2005196680A (en) Computer system
CN113470725A (en) Method and device for testing dynamic random access memory

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