CN113568559B - Method, device, equipment and medium for processing hard disk write errors - Google Patents

Method, device, equipment and medium for processing hard disk write errors Download PDF

Info

Publication number
CN113568559B
CN113568559B CN202010348304.2A CN202010348304A CN113568559B CN 113568559 B CN113568559 B CN 113568559B CN 202010348304 A CN202010348304 A CN 202010348304A CN 113568559 B CN113568559 B CN 113568559B
Authority
CN
China
Prior art keywords
write
hard disk
writing
data
new
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
CN202010348304.2A
Other languages
Chinese (zh)
Other versions
CN113568559A (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.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN202010348304.2A priority Critical patent/CN113568559B/en
Publication of CN113568559A publication Critical patent/CN113568559A/en
Application granted granted Critical
Publication of CN113568559B publication Critical patent/CN113568559B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0619Improving the reliability of storage systems in relation to data integrity, e.g. data losses, bit errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • G06F3/0676Magnetic disk device

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The embodiment of the invention discloses a method, a device, equipment and a medium for processing hard disk write errors. The method comprises the following steps: determining whether the duration of the write operation sent by the upper layer application to the hard disk reaches a duration threshold value or not; if the duration threshold is reached and the writing result fed back by the hard disk is not received, controlling the hard disk to carry out power-down and power-up operations, and retransmitting the writing operation to the hard disk or transmitting a new writing operation transmitted by an upper application to the hard disk; if the write error information fed back by the hard disk is received, processing the write error according to the write error information. The embodiment of the invention can continuously write the data into the hard disk when writing data in the hard disk has writing errors, thereby improving the reliability of data writing.

Description

Method, device, equipment and medium for processing hard disk write errors
Technical Field
The embodiment of the invention relates to the technical field of hard disk storage, in particular to a method, a device, equipment and a medium for processing hard disk write errors.
Background
With the development of hard disk technology, the capacity of a single disk is rapidly increasing, and the capacity per unit disk area is approaching the theoretical upper limit. In the case of a conventional hard disk, data is written onto non-overlapping parallel tracks with a certain pitch between the tracks, as shown in fig. 1 (a). When recording data, the shingled magnetic recording ((Shingled Magnetic Recording, abbreviated as SMR) hard disk utilizes the fact that the track width required for reading the SMR hard disk can be smaller than the track width required for writing, and the width of the read head can be smaller than the width of the write head, and the data is written by partially overlapping the previous track, and simultaneously, enough space is reserved for the narrower read head to read the data of the previous track, as shown in the specific figure 1 (b).
In practical applications, although the SMR hard disk adopts shingled recording, tracks in an area (zone) are partially overlapped in sequence, so that higher data storage density, larger disk capacity and lower unit capacity cost can be obtained, when the SMR hard disk writes data in the zone, only sequential writing can be performed, random writing is not supported, and each zone is provided with a write pointer, so that the logical block address (Logical Block Address, abbreviated as: LBA) of the data writing operation is the same as the write pointer address in the zone. If the SMR hard disk judges that the logical block address of the data writing operation is different from the address of the writing pointer, the upper layer application returns an error and returns the current address of the writing pointer, so that the upper layer application cannot continuously execute the writing operation in the zone area.
For example, in the field of video monitoring, when a monitoring video application (upper application) needs to store generated video data in a hard disk according to a time sequence, if the hard disk judges that the LBA of a video data writing operation issued by the monitoring video application is different from the write pointer address of a target area, an error is returned to the monitoring video application, so that the monitoring video application cannot write the generated video data in the hard disk.
Therefore, when the write pointer address of the target area is different from the LBA of the data write operation issued by the upper layer application, it is a problem to be solved in the present day.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a medium for processing hard disk write errors, which can continuously write data into a hard disk when write errors occur in the data written into the hard disk.
In a first aspect, an embodiment of the present invention provides a method for processing a hard disk write error, where the method includes:
determining whether the duration of the write operation sent by the upper layer application to the hard disk reaches a duration threshold value or not;
if the duration threshold is reached and the writing result fed back by the hard disk is not received, controlling the hard disk to perform power-down and power-up operations, and retransmitting the writing operation to the hard disk or transmitting a new writing operation transmitted by the upper application to the hard disk;
and if the write error information fed back by the hard disk is received, processing the write error according to the write error information.
In a second aspect, an embodiment of the present invention further provides a device for processing a hard disk write error, where the device includes:
the determining module is used for determining whether the duration of the write operation sent by the upper layer application to the hard disk reaches a duration threshold value or not;
The control module is used for controlling the hard disk to carry out power-down and power-up operations if the duration threshold is reached and the writing result fed back by the hard disk is not received, and resending the writing operation to the hard disk or sending a new writing operation sent by the upper application to the hard disk;
and the processing module is used for processing the write error according to the write error information if the write error information fed back by the hard disk is received.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
one or more processors;
storage means for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for processing hard disk write errors according to any one of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored, where the program when executed by a processor implements a method for processing a hard disk write error according to any one of the embodiments of the present invention.
The technical scheme disclosed by the embodiment of the invention has the following beneficial effects:
And if the write error information fed back by the hard disk is received, processing the write error according to the write error information, so that the hard disk writes data corresponding to the write operation into the hard disk, and further, when the write error occurs in the hard disk, the data can be continuously written into the hard disk, thereby improving the reliability of data writing.
Drawings
FIG. 1 (a) is a schematic diagram of recording data using a conventional hard disk in the related art;
FIG. 1 (b) is a schematic diagram of a related art recording data using a shingled magnetic recording hard disk;
FIG. 2 is a flow chart of a method for handling hard disk write errors according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another method for handling a hard disk write error according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for handling a hard disk write error according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a method for handling a hard disk write error according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a device for handling hard disk write errors according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in further detail below with reference to the drawings and examples. It should be understood that the particular embodiments described herein are illustrative only and are not limiting of embodiments of the invention. It should be further noted that, for convenience of description, only some, but not all of the structures related to the embodiments of the present invention are shown in the drawings.
The following refers to a method, a device, equipment and a medium for processing hard disk write errors in the embodiments of the present invention.
Fig. 2 is a flow chart of a method for processing a hard disk write error according to an embodiment of the present invention, where the method can be applied to a case of processing a write error when write data in a hard disk has a write error, and the method can be performed by a device for processing a hard disk write error, where the device can be composed of hardware and/or software and can be generally integrated in an electronic device. As shown in fig. 2, the method specifically includes the following steps:
S201, determining whether the duration of the write operation sent by the upper layer application to the hard disk reaches a duration threshold.
In the embodiment of the present invention, the upper layer application may be any application with a data storage requirement, for example, a surveillance video application or various office software, which is not specifically limited herein. Among the various office software may be, but is not limited to: word, excel, visio, etc.
In this embodiment, the hard disk is a shingled magnetic recording (Shingled Magnetic Recording, abbreviated as SMR) hard disk.
The time length threshold can be set according to actual application requirements. For example, 15 seconds(s), 20s or 30s, etc. Preferably, the embodiment of the invention can set the time duration threshold to 15s.
For example, when the upper layer application generates data to be stored, a write operation carrying the data to be stored may be sent to the middle layer, and then the middle layer sends the write operation to the drive layer (processing device for writing errors on the hard disk), and then the drive layer sends the write operation to the hard disk, so that the hard disk writes the data to be stored into a target area corresponding to the data according to the write operation. After the hard disk successfully writes the data into the target area or does not successfully write the data into the target area, the writing result is fed back to the driving layer, the driving layer feeds back the writing result to the middle layer, and then the middle layer feeds back the writing result to the upper layer application, so that the upper layer application determines whether to send the writing operation of the new data to be stored according to the writing result. The middle layer may be selected as a small computer system interface (Small Computer System Interface, abbreviated as SCSI). In this embodiment, the writing result includes: a successful write result and a write error result.
The write operation is typically sent to the hard disk such that the time spent by the hard disk writing data to the target area and receiving the hard disk feedback write result is relatively stable and typically does not reach a time threshold, such as 15s. Therefore, after the upper layer application sends the write operation to the hard disk, the processing device of the hard disk write error starts a preconfigured timer to monitor whether the hard disk returns the write result within the duration threshold. In this embodiment, the duration threshold is adaptively set according to actual needs, which is not specifically limited herein.
And S202, if the duration threshold is reached and the writing result fed back by the hard disk is not received, controlling the hard disk to carry out power-down and power-up operations, and retransmitting the writing operation to the hard disk or transmitting a new writing operation transmitted by the upper application to the hard disk.
It should be noted that, the write operation sent to the hard disk includes, in addition to carrying the data to be stored: a target logical block address of the data. That is, after the hard disk receives the write operation, the hard disk first analyzes the write operation to obtain the data to be stored and the target logical block address of the data; then, comparing the target logical block address of the data with the write pointer address in the target area corresponding to the target logical block to determine whether the target logical block address and the write pointer address are the same; if the data are the same, writing the data (data to be stored) of the writing operation into the area pointed by the address of the writing pointer, and returning a successful writing result to the processing device of the hard disk writing error; if the data is different, a writing error result is returned to the processing device for writing errors to the hard disk, wherein the writing error result is specifically writing error information in the embodiment.
However, when the hard disk feeds back the writing result, but a link between the hard disk and the processing device for the hard disk writing error is abnormal instantaneously, or the processing device for the hard disk writing error is abnormal instantaneously, the processing device for the hard disk writing error cannot receive the writing result fed back by the hard disk, so that when the upper layer application does not receive the writing result beyond the time threshold, the upper layer application mistakenly considers that the hard disk writing operation fails, and automatically initiates a rewriting mechanism; or when the hard disk is abnormally powered down, the hard disk stops working, so that the writing operation on the data carried by the writing operation cannot be executed, the processing device for the writing error of the hard disk monitors that the duration of sending the writing operation to the hard disk reaches a duration threshold value, and fails to receive a writing result fed back by the hard disk, the writing operation of the hard disk is mistakenly considered to be executed, and a new writing operation issued by an upper application is received, so that the new writing operation is sent to the hard disk.
Therefore, when it is determined that the duration of sending the writing operation to the hard disk reaches the duration threshold and the writing result fed back by the hard disk is not received, the embodiment first controls the hard disk to perform the power-down operation and the power-up operation, so as to check whether the problem that the writing result is not fed back because the hard disk is abnormally powered down or not. And when the hard disk is controlled to carry out power-down and power-up operations, the power-down and power-up times are counted. And then, re-sending a write operation to the re-electrified hard disk or sending a new write operation sent by the upper application to the hard disk, so that the hard disk performs a data write operation according to the write operation, and the data sent by the upper application is written into the hard disk.
It should be noted that, the following conditions need to be satisfied by controlling the hard disk to perform power-down and power-up operations, and retransmitting a write operation to the hard disk or transmitting a new write operation to an upper application of the hard disk: the link between the hard disk and the processing device of the hard disk write error is recovered to be normal, or the processing device of the hard disk write error is recovered to be normal. That is, when the link between the hard disk and the processing device of the hard disk write error is restored to normal, or the processing device of the hard disk write error is restored to normal, the retransmission of the write operation to the hard disk or the transmission of a new write operation to the hard disk can be performed.
And S203, if the write error information fed back by the hard disk is received, processing the write error according to the write error information.
Wherein the write error information includes: the current address of the write pointer, the target logical block address of the write operation, or the target logical block address of the new write operation, wherein the write pointer is located in a target area corresponding to the target logical block address.
If a writing result fed back by the hard disk is received and the writing result is determined to be writing error information, the current address of the writing pointer in the writing error information and the target logical block address of the writing operation are obtained by analyzing the writing error information, or the current address of the writing pointer in the writing error information and the target logical block address of the new writing operation are obtained. And then, according to the current address of the write pointer in the write error information and the target logic block address of the write operation or the comparison result of the current address of the write pointer and the target logic block address of the new write operation, processing the write error so as to write the data carried by the write operation into the hard disk.
That is, according to the write error information, the processing the write error in this embodiment may include: determining a first comparison result of the current address of the write pointer and the target logic block address of the write operation in the write error information; or determining a second comparison result of the current address of the write pointer and the target logic block address of the new write operation in the write error information; and processing the writing error according to the first comparison result or the second comparison result.
Since the types of hard disks may include a variety of, for example, host managed shingled magnetic recording (Host Managed Shingled Magnetic Recording, abbreviated as HM SMR) hard disks, host aware shingled magnetic recording (Host Aware Shingled Magnetic Recording, abbreviated as HA SMR) hard disks, and drive self-managed shingled magnetic recording (Drive Managed Shingled Magnetic Recording, abbreviated as DM SMR) hard disks. The DM SMR disc may have unpredictable performance affected by background operations such as data migration and garbage collection, and has huge performance fluctuation. The HM SMR hard disk does not disguise itself as a traditional disk, but exposes an abstract structure of a zone and a Write Pointer (WP) to the outside according to the ZBC/ZAC standard, allows upper layer applications to fully manage sequential write constraints of the SMR disk, and directly returns errors to I/O requests which do not accord with the sequential write rules. By exposing the new interface upwards, the I/O behavior of the HM SMR hard disk is fully application controlled, so its performance is controllable, and the advantages of the SMR disk can be maximally exploited. HA SMR hard disk provides the same new interface as HM SMR hard disk, but when it receives I/O that does not conform to the sequential write principle, HA SMR shall allow it to write instead of reporting errors, with some flexibility.
For this reason, before processing the write error according to the write error information, the embodiment of the present invention may optionally further include: determining whether the type of the hard disk is a host managed shingled magnetic recording hard disk; if yes, executing the processing step of the writing error.
That is, when the type of the hard disk is determined to be the shingled magnetic recording hard disk managed by the host, the write error processing is performed, otherwise, the processing is not performed.
In one embodiment of the present invention, after resending the write operation to the hard disk or sending a new write operation sent by the upper application to the hard disk, if it is detected that the write result fed back by the hard disk has not been received when the re-arrival time period threshold is reached, it is determined whether the number of times of powering down and the number of times of powering up of the hard disk reach a preset number of times (for example, 3 times). If the power-on operation is not performed for 3 times, controlling the hard disk to perform power-off and power-on operations again, and retransmitting the write operation to the hard disk or transmitting a new write operation transmitted by an upper application to the hard disk; if the time length threshold is detected to be reached again, the writing result fed back by the hard disk is not received yet, whether the power-down times and the power-up times reach 3 is determined, and if the time length threshold reaches 3, the hard disk is replaced to carry out data writing operation.
According to the method for processing the hard disk write errors, whether the duration of the write operation sent to the hard disk by the upper layer application reaches the duration threshold is determined, if the duration reaches the duration threshold and the write result fed back by the hard disk is not received, the hard disk is controlled to perform power-down and power-up operations, the write operation is resent to the hard disk or a new write operation sent by the upper layer application is sent to the hard disk, if write error information fed back by the hard disk is received, the write error is processed according to the write error information, so that the hard disk writes data corresponding to the write operation into the hard disk, and the problem that when write errors occur in the data written into the hard disk, the data can be continuously written into the hard disk is solved, and therefore the reliability of data writing is improved.
Fig. 3 is a flow chart of another method for processing a hard disk write error according to an embodiment of the present invention, where the method is further optimized based on the foregoing embodiment. On the basis, a first comparison result of determining the current address of the write pointer and the target logical block address of the write operation; and processing the writing error according to the first comparison result to further optimize. As shown in fig. 3, the method specifically includes the following steps:
S301, determining whether the duration of the write operation sent by the upper layer application to the hard disk reaches a duration threshold.
S302, if the duration threshold is reached and the writing result fed back by the hard disk is not received, controlling the hard disk to perform power-down and power-up operations, and retransmitting the writing operation to the hard disk.
And S303, if the write error information fed back by the hard disk is received, performing difference between the current address of the write pointer in the write error information and the target logic block address of the write operation to obtain a first difference value.
Illustratively, the current address of the write pointer and the target logical block address of the write operation included in the write error information are obtained by analyzing the write error information fed back by the hard disk. Then, the current address of the write pointer and the target logical block address of the write operation are differenced to obtain a first difference value.
For example, if the current address of the write pointer is: x1, the target logical block address of the write operation is Y1, X1-y1=d1.
S304, the I/O size of the write operation is obtained.
Alternatively, the I/O size of the write operation may be obtained by:
mode one
When receiving a write operation sent by an upper application, the processing device for the write error of the hard disk analyzes the write operation to obtain the I/O size of the write operation, and stores the I/O size of the write operation into the self memory module. Therefore, when the write error information fed back by the hard disk is the error information of the write operation resending to the hard disk, the I/O size of the corresponding write operation can be obtained from the storage module based on the identification of the write operation.
Mode two
When the upper layer application sends a write operation, the I/O size of the write operation is carried in the write operation. After the processing device of the hard disk write error receives the write operation sent by the upper layer application, the I/O size of the write operation can be obtained by analyzing the write operation. And then, the I/O size of the writing operation is stored in a self storage module, so that when the writing error information fed back by the hard disk is received as the error information of the writing operation resending to the hard disk, the I/O size of the corresponding writing operation can be obtained from the storage module based on the identification of the writing operation.
It should be noted that the two ways of obtaining the I/O size of the write operation are merely exemplary of the embodiments of the present invention, and are not specific to the embodiments of the present invention.
S305, determining whether the first difference is larger than the I/O size of the write operation, if so, executing S306, otherwise, executing S307.
Continuing with the above example, assuming the I/O size of the write operation is Z1, subtracting Z1 from D1 to obtain a difference, and then determining whether the difference is greater than zero; if the difference is greater than zero, determining that D1 is greater than Z1; otherwise, it is determined that D1 is less than or equal to Z1.
S306, if the first difference value is larger than the I/O size of the writing operation, determining that the upper layer application is abnormal, controlling the hard disk to write the data of the writing operation into a reserved area, and recording the mapping relation between the address of the reserved area and the address of the target area.
The target area is an area corresponding to the logic block of the write operation.
The reserved area refers to an area reserved in advance at a starting position or an ending position of the hard disk.
That is, when it is determined that the first difference is greater than the I/O size of the write operation, it may be determined that the current address (where the write pointer is located) of the write pointer is behind the target logical block address of the write operation, and the difference is greater, i.e., it is determined that the hard disk has successfully stored the data of the write operation to the target area. Therefore, the embodiment can write the data of the writing operation into the reserved area, so as to avoid that the hard disk feeds back the writing error information to the processing device for writing the error again. After writing the data of the writing operation into the reserved area, the mapping relation between the address of the reserved area and the address of the target area is recorded, so as to lay a foundation for moving the data of the writing operation in the reserved area to the target area.
S307, if the first difference value is smaller than or equal to the I/O size of the writing operation, determining that the writing result of the hard disk is successful, and feeding back information of successful data writing to an upper layer application.
Specifically, when the first difference value is smaller than or equal to the I/O size of the write operation, it is determined that the data of the write operation sent by the upper layer application is successfully stored in the target area by the hard disk, information of the write success of the data is fed back to the upper layer application, so that the upper layer application determines whether to issue the next write operation according to the information of the write success.
According to the method for processing the hard disk write errors, whether the duration of the write operation sent to the hard disk by the upper layer application reaches the duration threshold is determined, if the duration reaches the duration threshold and the write result fed back by the hard disk is not received, the hard disk is controlled to perform power-down and power-up operations, the write operation is resent to the hard disk, and if the write error information fed back by the hard disk is received and is the result of resending the write operation to the hard disk, the write error is processed according to the write error information, so that the data corresponding to the write operation can be written into the hard disk when the current address of the target logic block address of the write operation is different from the current address of the write pointer, and the problem that the write error occurs in the hard disk when the write data is written into the hard disk is solved, and the reliability of the data writing is improved.
Based on the above embodiment, after the embodiment of the present invention processes the write error according to the write error information, the method optionally further includes: and if the data quantity stored in the reserved area reaches a preset threshold value or the write pointer moves to a target area of any data in the reserved area again, moving the data in the reserved area to the target area according to the target area address of the data.
The preset threshold value can be adaptively set according to the size of the reserved area. For example, if the reserved area is 512 Kilobytes (KB), the preset threshold may be set to 409.6KB or 435.2KB, etc.
That is, when the amount of data stored in the reserved area reaches a preset threshold or the write pointer moves to a target area of any data in the reserved area again, the data in the reserved area is moved to the corresponding target area, so that when a write error occurs, the data is temporarily stored in the reserved area, so that the hard disk can continue to perform data storage operation, and no data loss occurs.
Fig. 4 is a flow chart of a processing method of a hard disk write error according to an embodiment of the present invention, which is further optimized based on the above embodiment. On the basis, a second comparison result of the current address of the write pointer in the write error information and the target logic block address of the new write operation is determined; and processing the writing error according to the second comparison result to further optimize. As shown in fig. 4, the method specifically includes:
S401, determining whether the duration of the write operation sent by the upper layer application to the hard disk reaches a duration threshold.
And S402, if the duration threshold is reached and the writing result fed back by the hard disk is not received, controlling the hard disk to carry out power-down and power-up operations, and sending a new writing operation sent by the upper application to the hard disk.
And S403, if the write error information fed back by the hard disk is received, performing difference between the target logical block address of the new write operation in the write error information and the current address of the write pointer to obtain a second difference value.
Illustratively, the current address of the write pointer and the target logical block address of the new write operation included in the write error information are obtained by analyzing the write error information fed back by the hard disk. Then, the target logical block address of the new write operation and the current address of the write pointer are differenced to obtain a second difference value.
For example, if the current address of the write pointer is: the target logical block address of the write operation is: m, then M-p=d2.
S404, acquiring the I/O size of the new write operation.
Alternatively, the acquisition of the I/O size of the new write operation may be accomplished by:
mode one
When receiving a new write operation sent by an upper application, the processing device for the hard disk write error analyzes and processes the new write operation to obtain the I/O size of the new write operation, and stores the I/O size of the new write operation into the self storage module. Therefore, when the write error information fed back by the hard disk is the error information of the new write operation sent to the upper layer application sent to the hard disk, the corresponding I/O size of the new write operation can be obtained from the storage module based on the identification of the new write operation.
Mode two
When the upper layer application sends a new write operation, the I/O size of the new write operation is carried in the new write operation. After the processing device of the hard disk write error receives the new write operation sent by the upper layer application, the I/O size of the new write operation can be obtained by analyzing the new write operation. And then, storing the I/O size of the new write operation into a self storage module, so that when the write error information fed back by the hard disk is received and is the error information of the new write operation sent by the upper application to the hard disk, the I/O size corresponding to the new write operation can be obtained from the storage module based on the identification of the new write operation.
It should be noted that the two ways of obtaining the I/O size of the new write operation are merely exemplary of the embodiments of the present invention, and are not meant to be a specific limitation of the embodiments of the present invention.
S405, determining whether the second difference is larger than the I/O size of the new write operation, if so, executing S406, otherwise, executing S407.
Continuing with the above example, assuming the I/O size of the write operation is Z2, subtracting Z2 from D2 to obtain a difference, and then determining whether the difference is greater than zero; if the difference is greater than zero, determining that D2 is greater than Z2; otherwise, it is determined that D2 is less than or equal to Z2.
S406, if the second difference value is larger than the I/O size of the new writing operation, determining that the upper application or the hard disk is abnormal, controlling the hard disk to write the data of the new writing operation into a reserved area, and recording the mapping relation between the address of the reserved area and the address of the target area.
The target area is an area corresponding to the logic block of the new writing operation.
The occurrence of the abnormality of the upper layer application or the hard disk means that the upper layer application or the hard disk is abnormally powered down.
The reserved area refers to an area reserved in advance at a starting position or an ending position of the hard disk.
That is, when it is determined that the second difference is greater than the I/O size of the new write operation, it may be determined that the current address (where the write pointer is located) of the write pointer is before the target logical block address of the new write operation, and the difference is large, that is, it is determined that the target area pointed by the current address of the write pointer is not written with data, so that the data of the new write operation cannot be written into the target area corresponding to the target logical area address of the new write operation. Therefore, the embodiment can write the data of the new writing operation into the reserved area, so as to avoid that the hard disk feeds back the writing error information to the processing device for writing the error again. After writing the data of the new writing operation into the reserved area, the mapping relation between the address of the reserved area and the address of the target area is recorded, so as to lay a foundation for moving the data of the new writing operation in the reserved area to the target area.
And S407, if the second difference value is smaller than or equal to the I/O size of the new writing operation, writing a first numerical value in a region corresponding to the second difference value, and writing the data of the new writing operation into a target region.
The first value can be set according to actual needs. Preferably, the present embodiment sets the first value to 0.
Specifically, when the second difference is determined to be less than or equal to the I/O size of the new write operation, the current address of the write pointer is determined to precede the target logical block address of the new write operation, and the difference is small. In order to enable the hard disk to write the data of the new write operation into the target area, the present embodiment may write the first data in the second difference corresponding area, so that the current address of the write pointer moves to be the same as the target logical block address of the new write operation, thereby writing the data of the new write operation into the target area.
Next, a method for handling a hard disk write error according to the present embodiment will be described with reference to fig. 5.
If a hard disk write error occurs in an array of SMR hard disks, the array is written in stripes. In the following, taking RAID5 as an example, the hard disk array is composed of three SMR hard disks A, B and C. When the upper layer application is writing to the RAID, hard disk C is abnormally powered down when writing to segment B0 in stripe 0, but the upper layer application misbelieves that the stripe 0 write was successful. Resulting in the write pointers of hard disk a and hard disk B having reached the start of segments A1, B1, but the write pointer of hard disk C is also at the start of C0. In view of this situation, the embodiment of the present invention processes the write error based on the current address F of the write pointer and the target logical block address G of the new write operation in the write error information fed back by the hard disk. If G-F < = I/O size of new write operation, then write 0 in the region between G and F complement the region and retry the write operation, avoiding subsequent write failure. If G-F > the I/O size of the new writing operation, writing the data of the new writing operation into the reserved area of the hard disk, and recording the mapping relation between the reserved area address and the target area address.
According to the method for processing the hard disk write error, whether the duration of the write operation sent to the hard disk by the upper layer application reaches the duration threshold is determined, if the duration reaches the duration threshold and the write result fed back by the hard disk is not received, the hard disk is controlled to perform power-down and power-up operations, the write operation is resent to the hard disk or a new write operation sent to the upper layer application is sent to the hard disk, if the write error information fed back by the hard disk is received and the write error information is the result of the new write operation sent to the upper layer application, the write error is processed according to the write error information, so that when the target logical block address of the new write operation is determined to be different from the current address of the write pointer, the data corresponding to the write operation can be written into the hard disk, and when the write error occurs in the hard disk, the data can be written into the hard disk continuously, and therefore the reliability of the data writing is improved.
Based on the above embodiment, after the embodiment of the present invention processes the write error according to the write error information, the method optionally further includes: and if the data quantity stored in the reserved area reaches a preset threshold value or the write pointer moves to a target area of any data in the reserved area again, moving the data in the reserved area to the target area according to the target area address of the data.
The preset threshold value can be adaptively set according to the size of the reserved area. For example, if the reserved area is 512 Kilobytes (KB), the preset threshold may be set to 409.6KB or 435.2KB, etc.
That is, when the amount of data stored in the reserved area reaches a preset threshold or the write pointer moves to a target area of any data in the reserved area again, the data in the reserved area is moved to the corresponding target area, so that when a write error occurs, the data is temporarily stored in the reserved area, so that the hard disk can continue to perform data storage operation, and no data loss occurs.
In order to achieve the above objective, the embodiment of the present invention further provides a device for processing a hard disk write error. Fig. 6 is a schematic structural diagram of a processing device for hard disk write errors according to an embodiment of the present invention. As shown in fig. 6, the apparatus 600 includes: a determination module 610, a control module 620, and a processing module 630.
The determining module 610 is configured to determine whether a duration of the write operation sent by the upper layer application to the hard disk reaches a duration threshold;
the control module 620 is configured to control the hard disk to perform power-down and power-up operations if the duration threshold is reached and the writing result fed back by the hard disk is not received, and resend the writing operation to the hard disk or send a new writing operation sent by the upper layer application to the hard disk;
And the processing module 630 is configured to process the write error according to the write error information if the write error information fed back by the hard disk is received.
As an alternative implementation manner of the embodiment of the present invention, the write error information includes: the method comprises the steps of writing a current address of a pointer, a target logic block address of a writing operation or a target logic block address of a new writing operation, wherein the writing pointer is positioned in a target area corresponding to the target logic block address;
accordingly, the processing module 630 includes: the device comprises a first determining unit, a second determining unit and a processing unit;
the first determining unit is used for determining a first comparison result of the current address of the write pointer and the target logic block address of the write operation in the write error information; or,
a second determining unit, configured to determine a second comparison result between the current address of the write pointer and a target logical block address of a new write operation in the write error information;
and the processing unit is used for processing the write error according to the first comparison result or the second comparison result.
As an optional implementation manner of the embodiment of the present invention, the first determining unit is specifically configured to:
Performing difference between the current address of the write pointer in the write error information and the target logic block address of the write operation to obtain a first difference value;
correspondingly, the processing unit is specifically configured to:
acquiring the I/O size of the write operation;
determining whether the first difference is greater than an I/O size of the write operation;
and processing the writing error according to the comparison result.
As an optional implementation manner of the embodiment of the present invention, the processing unit is further configured to:
if the first difference value is larger than the I/O size of the writing operation, determining that the upper layer application is abnormal, controlling the hard disk to write the data of the writing operation into a reserved area, and recording the mapping relation between the address of the reserved area and the address of a target area; the target area is an area corresponding to the logic block of the writing operation;
if the first difference value is smaller than or equal to the I/O size of the writing operation, determining that the writing result of the hard disk is successful, and feeding back information of successful data writing to an upper layer.
As an optional implementation manner of the embodiment of the present invention, the second determining unit is specifically configured to:
performing a difference between the target logical block address of the new write operation in the write error information and the current address of the write pointer to obtain a second difference value;
Correspondingly, the processing unit is specifically configured to:
acquiring the I/O size of the new write operation;
determining whether the second difference is greater than an I/O size of the new write operation;
and processing the writing error according to the comparison result.
As an optional implementation manner of the embodiment of the present invention, the processing unit is further configured to:
if the second difference value is larger than the I/O size of the new writing operation, determining that the upper layer application or the hard disk is abnormal, controlling the hard disk to write the data of the new writing operation into a reserved area, and recording the mapping relation between the address of the reserved area and the address of a target area; the target area is an area corresponding to the logic block of the new writing operation;
and if the second difference value is smaller than or equal to the I/O size of the new writing operation, writing a first numerical value in a region corresponding to the second difference value, and writing the data of the new writing operation into a target region.
As an alternative implementation manner of the embodiment of the present invention, the apparatus 600 further includes: a data movement module;
and the data moving module is used for moving the data in the reserved area to the target area according to the target area address of the data if the data amount stored in the reserved area reaches a preset threshold value or the write pointer moves to the target area of any data in the reserved area again.
As an optional implementation manner of the embodiment of the present invention, the apparatus 600, the method further includes: a hard disk type determining module;
the hard disk type determining module is used for determining whether the type of the hard disk is a shingled magnetic recording hard disk managed by a host;
and the control module is also used for executing the step of processing the write error if the write error is detected.
It should be noted that the foregoing explanation of the embodiment of the method for processing a hard disk write error is also applicable to the apparatus for processing a hard disk write error of this embodiment, and the implementation principle is similar, and will not be repeated here.
According to the processing device for the hard disk write errors, whether the duration of the write operation sent to the hard disk by the upper layer application reaches the duration threshold is determined, if the duration reaches the duration threshold and the write result fed back by the hard disk is not received, the hard disk is controlled to perform power-down and power-up operations, the write operation is resent to the hard disk or a new write operation sent by the upper layer application is sent to the hard disk, if write error information fed back by the hard disk is received, the write error is processed according to the write error information, so that the hard disk writes data corresponding to the write operation into the hard disk, and the problem that when write errors occur in the data written into the hard disk, the data can be continuously written into the hard disk is solved, and therefore the reliability of data writing is improved.
In order to achieve the above objective, the embodiment of the present invention further provides an electronic device.
Fig. 7 is a schematic structural diagram of an electronic device provided by the present invention. Fig. 7 illustrates a block diagram of an exemplary electronic device 700 suitable for use in implementing embodiments of the invention. The electronic device 700 shown in fig. 7 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 7, the electronic device 700 is embodied in the form of a general purpose computing device. Components of electronic device 700 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 700 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by electronic device 700 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. Electronic device 700 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, commonly referred to as a "hard disk drive"). Although not shown in fig. 7, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The electronic device 700 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the electronic device 700, and/or any device (e.g., network card, modem, etc.) that enables the electronic device 700 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, the electronic device 700 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through the network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 700 over the bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 700, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running a program stored in the system memory 28, for example, implementing a method for processing a hard disk write error provided by an embodiment of the present invention, including:
determining whether the duration of the write operation sent by the upper layer application to the hard disk reaches a duration threshold value or not;
if the duration threshold is reached and the writing result fed back by the hard disk is not received, controlling the hard disk to perform power-down and power-up operations, and retransmitting the writing operation to the hard disk or transmitting a new writing operation transmitted by the upper application to the hard disk;
and if the write error information fed back by the hard disk is received, processing the write error according to the write error information.
It should be noted that the foregoing explanation of the embodiment of the method for processing the hard disk write error is also applicable to the electronic device of this embodiment, and the implementation principle is similar, which is not repeated here.
According to the electronic equipment provided by the embodiment of the invention, whether the duration of the write operation sent to the hard disk by the upper layer application reaches the duration threshold is determined, if the duration reaches the duration threshold and the write result fed back by the hard disk is not received, the hard disk is controlled to perform power-down and power-up operations, the write operation is resent to the hard disk or the new write operation sent by the upper layer application is sent to the hard disk, if the write error information fed back by the hard disk is received, the write error is processed according to the write error information, so that the hard disk writes the data corresponding to the write operation into the hard disk, and the problem that when the write error occurs in the data written into the hard disk, the data can be continuously written into the hard disk is solved, so that the reliability of data writing is improved.
To achieve the above object, the present invention also proposes a computer-readable storage medium.
The computer readable storage medium provided by the embodiment of the invention stores a computer program, and when the program is executed by a processor, the method for processing the hard disk write error according to the embodiment of the invention is realized, and the method comprises the following steps:
determining whether the duration of the write operation sent by the upper layer application to the hard disk reaches a duration threshold value or not;
if the duration threshold is reached and the writing result fed back by the hard disk is not received, controlling the hard disk to perform power-down and power-up operations, and retransmitting the writing operation to the hard disk or transmitting a new writing operation transmitted by the upper application to the hard disk;
and if the write error information fed back by the hard disk is received, processing the write error according to the write error information.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (9)

1. A method for handling hard disk write errors, comprising:
determining whether the duration of the write operation sent by the upper layer application to the hard disk reaches a duration threshold value or not;
if the duration threshold is reached and the writing result fed back by the hard disk is not received, controlling the hard disk to perform power-down and power-up operations, and retransmitting the writing operation to the hard disk or transmitting a new writing operation transmitted by the upper application to the hard disk;
if the write error information fed back by the hard disk is received, processing the write error according to the write error information;
The write error information includes: the method comprises the steps of writing a current address of a pointer, a target logic block address of a writing operation or a target logic block address of a new writing operation, wherein the writing pointer is positioned in a target area corresponding to the target logic block address;
correspondingly, the processing the write error according to the write error information includes:
determining a first comparison result of the current address of the write pointer and the target logic block address of the write operation in the write error information; or,
determining a second comparison result of the current address of the write pointer and the target logical block address of the new write operation in the write error information;
and processing the writing error according to the first comparison result or the second comparison result.
2. The method of claim 1, wherein the determining a first comparison of the current address of the write pointer and the target logical block address of the write operation in the write error information comprises:
performing difference between the current address of the write pointer in the write error information and the target logic block address of the write operation to obtain a first difference value;
correspondingly, the processing the write error according to the first comparison result includes:
Acquiring the I/O size of the write operation;
determining whether the first difference is greater than an I/O size of the write operation;
and processing the writing error according to the comparison result.
3. The method of claim 2, wherein the processing the write error based on the comparison result comprises:
if the first difference value is larger than the I/O size of the writing operation, determining that the upper layer application is abnormal, controlling the hard disk to write the data of the writing operation into a reserved area, and recording the mapping relation between the address of the reserved area and the address of a target area; the target area is an area corresponding to the logic block of the writing operation;
if the first difference value is smaller than or equal to the I/O size of the writing operation, determining that the writing result of the hard disk is successful, and feeding back information of successful data writing to an upper layer.
4. The method of claim 1, wherein the determining a second comparison of the current address of the write pointer and the target logical block address of the new write operation in the write error information comprises:
performing a difference between the target logical block address of the new write operation in the write error information and the current address of the write pointer to obtain a second difference value;
Correspondingly, the processing the write error according to the second comparison result includes:
acquiring the I/O size of the new write operation;
determining whether the second difference is greater than an I/O size of the new write operation;
and processing the writing error according to the comparison result.
5. The method of claim 4, wherein the processing the write error based on the comparison result comprises:
if the second difference value is larger than the I/O size of the new writing operation, determining that the upper layer application or the hard disk is abnormal, controlling the hard disk to write the data of the new writing operation into a reserved area, and recording the mapping relation between the address of the reserved area and the address of a target area; the target area is an area corresponding to the logic block of the new writing operation;
and if the second difference value is smaller than or equal to the I/O size of the new writing operation, writing a first numerical value in a region corresponding to the second difference value, and writing the data of the new writing operation into a target region.
6. The method of claim 3 or 5, wherein after the processing of the write error, further comprising:
And if the data quantity stored in the reserved area reaches a preset threshold value or the write pointer moves to a target area of any data in the reserved area again, moving the data in the reserved area to the target area according to the target area address of the data.
7. A device for handling hard disk write errors, comprising:
the determining module is used for determining whether the duration of the write operation sent by the upper layer application to the hard disk reaches a duration threshold value or not;
the control module is used for controlling the hard disk to carry out power-down and power-up operations if the duration threshold is reached and the writing result fed back by the hard disk is not received, and resending the writing operation to the hard disk or sending a new writing operation sent by the upper application to the hard disk;
the processing module is used for processing the writing error according to the writing error information if the writing error information fed back by the hard disk is received;
the write error information includes: the method comprises the steps of writing a current address of a pointer, a target logic block address of a writing operation or a target logic block address of a new writing operation, wherein the writing pointer is positioned in a target area corresponding to the target logic block address;
Correspondingly, the processing module comprises: the device comprises a first determining unit, a second determining unit and a processing unit;
a first determining unit, configured to determine a first comparison result between a current address of the write pointer and a target logical block address of the write operation in the write error information; or,
a second determining unit, configured to determine a second comparison result between the current address of the write pointer and a target logical block address of a new write operation in the write error information;
and the processing unit is used for processing the write error according to the first comparison result or the second comparison result.
8. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of handling hard disk write errors as recited in any of claims 1-6.
9. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements a method for handling hard disk write errors according to any of claims 1-6.
CN202010348304.2A 2020-04-28 2020-04-28 Method, device, equipment and medium for processing hard disk write errors Active CN113568559B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010348304.2A CN113568559B (en) 2020-04-28 2020-04-28 Method, device, equipment and medium for processing hard disk write errors

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010348304.2A CN113568559B (en) 2020-04-28 2020-04-28 Method, device, equipment and medium for processing hard disk write errors

Publications (2)

Publication Number Publication Date
CN113568559A CN113568559A (en) 2021-10-29
CN113568559B true CN113568559B (en) 2024-02-27

Family

ID=78157893

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010348304.2A Active CN113568559B (en) 2020-04-28 2020-04-28 Method, device, equipment and medium for processing hard disk write errors

Country Status (1)

Country Link
CN (1) CN113568559B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115327583B (en) * 2022-10-13 2023-02-10 北京凯芯微科技有限公司 Receiver, signal processing device and signal processing method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000035920A (en) * 1998-07-17 2000-02-02 Nec Corp Fault restoration method for system and storage medium storing program for fault restoration of system
CN104020963A (en) * 2014-06-04 2014-09-03 浙江宇视科技有限公司 Method and device for preventing misjudgment of hard disk read-write errors
CN106610788A (en) * 2015-10-26 2017-05-03 华为技术有限公司 Hard disk array control method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8432633B2 (en) * 2010-10-26 2013-04-30 HGST Netherlands B.V. System, method and apparatus for storage architecture for bit patterned media using both erase band and shingled magnetic recording

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000035920A (en) * 1998-07-17 2000-02-02 Nec Corp Fault restoration method for system and storage medium storing program for fault restoration of system
CN104020963A (en) * 2014-06-04 2014-09-03 浙江宇视科技有限公司 Method and device for preventing misjudgment of hard disk read-write errors
CN106610788A (en) * 2015-10-26 2017-05-03 华为技术有限公司 Hard disk array control method and device

Also Published As

Publication number Publication date
CN113568559A (en) 2021-10-29

Similar Documents

Publication Publication Date Title
US8266375B2 (en) Automated on-line capacity expansion method for storage device
US9164840B2 (en) Managing a solid state drive (‘SSD’) in a redundant array of inexpensive drives (‘RAID’)
US8583853B1 (en) Error-handling for write-distribute command in raid mirroring
US11500707B2 (en) Controller, memory controller, storage device, and method of operating the controller
EP3667504B1 (en) Storage medium management method, device and readable storage medium
US11137918B1 (en) Administration of control information in a storage system
US11755447B2 (en) Predictive performance indicator for storage devices
US20050114562A1 (en) Method, system, and program for throttling data transfer
US20130080725A1 (en) Control apparatus, control method, and storage apparatus
CN111240879B (en) SAS card firmware log collection method, system, device and storage medium
CN113568559B (en) Method, device, equipment and medium for processing hard disk write errors
JP2005107838A (en) Disk array controller and log information recording method
US9836370B2 (en) Backup memory administration using an active memory device and a backup memory device
KR20120021490A (en) Storage device wihh bi-directional communication techniques and system including the same
US20170123657A1 (en) Systems and methods for back up in scale-out storage area network
US10534683B2 (en) Communicating outstanding maintenance tasks to improve disk data integrity
US10014983B2 (en) System, receiving device, and method
US20070226547A1 (en) Disk controller and controlling method of the same
US11416365B2 (en) Method and system for open NAND block detection and correction in an open-channel SSD
US20220100403A1 (en) Systems for modular hybrid storage devices
US11586508B2 (en) Systems and methods for backing up volatile storage devices
US11550506B2 (en) Systems and methods for accessing hybrid storage devices
US20240231651A1 (en) Maintaining Control Information for Storage Devices
US20230297249A1 (en) Storage system and method of controlling storage system
US20230153206A1 (en) Selective rebuild of interrupted devices in data storage device arrays

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