CN104318960A - Method and device for repairing hard disk bad track - Google Patents

Method and device for repairing hard disk bad track Download PDF

Info

Publication number
CN104318960A
CN104318960A CN201410468320.XA CN201410468320A CN104318960A CN 104318960 A CN104318960 A CN 104318960A CN 201410468320 A CN201410468320 A CN 201410468320A CN 104318960 A CN104318960 A CN 104318960A
Authority
CN
China
Prior art keywords
hard disk
bad track
data type
subregion
target
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
CN201410468320.XA
Other languages
Chinese (zh)
Other versions
CN104318960B (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.)
Huawei Digital Technologies Chengdu Co Ltd
Original Assignee
Huawei Symantec 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 Huawei Symantec Technologies Co Ltd filed Critical Huawei Symantec Technologies Co Ltd
Priority to CN201410468320.XA priority Critical patent/CN104318960B/en
Publication of CN104318960A publication Critical patent/CN104318960A/en
Application granted granted Critical
Publication of CN104318960B publication Critical patent/CN104318960B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a method and a device for repairing a hard disk bad track. The method comprises the following steps: after a phenomenon that the hard disk bad track exists in a disk array is detected, obtaining the bad track information of the hard disk bad track, wherein the bad track information comprises a target hard disk where the hard disk bad track is positioned, a first initial position of the hard disk bad track in the target hard disk, and the bad track length of the hard disk bad track; on the basis of the bad track information and mapping relationship between the hard disk and LUN (Logic Unit Number), obtaining a target LUN where the hard disk bad track is positioned and a second initial position of the hard disk bad track in the target LUN; then, on the basis of the second initial position and the bad track length, analyzing the target LUN to obtain a data type of data stored in the hard disk bad track; and finally, on the basis of the data type, repairing the hard disk bad track. When the embodiment of the invention is implemented, the hard disk bad track can be repaired according to the data type of the data stored in the hard disk bad track so as to fundamentally eliminate business impact brought by the hard disk bad track.

Description

A kind of restorative procedure of bad track of hard disk and device
Technical field
The present invention relates to field of computer technology, be specifically related to a kind of restorative procedure and device of bad track of hard disk.
Background technology
RAID (Redundant Array of Independent Disk, disk array) technology be a kind of polylith independently hard disk combine formation hard disk groups (also known as RAID) in different ways to provide the technology of data redundancy function and the memory property higher than single hard disk.LUN (Logical Unit Number, logical unit number) be that main frame is to SCSI (Small Computer System Interface, small computer system interface) can the numbering of locking equipment in bus, wherein, the equipment that can mount is commonly called LUN equipment, also usually LUN is called for short, and in actual applications, LUN can also be used to represent mark off from RAID one section in logic continuous print storage space and this in logic continuous print storage space can be divided into multiple subregion, the data stored in LUN can separate storage in multiple subregion, wherein, each subregion is exactly a subregion, these need the data stored finally to be stored in RAID, as user can by with operation system (as file system, database and virtual machine etc.) relevant data are stored in RAID.Any fault on RAID all may cause service disconnection and loss of data, and modal fault is bad track of hard disk on RAID, for file system, bad track of hard disk may cause file system carry, directory name to lose and the problem such as File lose, for database, the problem that bad track of hard disk cannot normally start after tables of data may be caused to inquire about failure and the abnormal machine of delaying of database, therefore, repairs bad track of hard disk and seems particularly important.
In prior art, after the mode of being accessed by RAID background scanning and user's trigger business identifies hard disk, reference position and the bad track length residing for bad track of hard disk, RAID to the restorative procedure of bad track of hard disk for all to write zero to bad track position in units of sector, such restorative procedure fundamentally can not solve the service impact that bad track of hard disk brings, as when the storage data in bad track of hard disk are user data, the loss that zero can cause user data is all write to bad track position.
Summary of the invention
The embodiment of the invention discloses a kind of restorative procedure and device of bad track of hard disk, according to the data type storing data in bad track of hard disk, bad track of hard disk can be repaired, fundamentally solve the service impact that bad track of hard disk brings.
Embodiment of the present invention first aspect discloses a kind of restorative procedure of bad track of hard disk, comprising:
Detect in disk array and whether there is bad track of hard disk;
If testing result is yes, then obtain the bad track information of described bad track of hard disk, described bad track information comprises the target hard disk residing for described bad track of hard disk, the first start bit of described bad track of hard disk in described target hard disk is put and the bad track length of described bad track of hard disk;
With the mapping relations of described bad track information and hard disk and LUN for foundation, obtain the target LUN residing for described bad track of hard disk and second reference position of described bad track of hard disk in described target LUN;
With described second reference position and described bad track length for according to resolving described target LUN to obtain the data type storing data in described bad track of hard disk, described data type comprises at least one in user data type, non-user data type and empty data type;
With described data type for foundation repairs described bad track of hard disk.
In the first possible implementation of embodiment of the present invention first aspect, when there is subregion in described target LUN, described with described second reference position and described bad track length for comprising to obtain the data type storing data in described bad track of hard disk according to resolving described target LUN:
Obtain the partition length of each subregion that described target LUN comprises and described each subregion;
With described second reference position and described bad track length for foundation, obtain the target partition residing for described bad track of hard disk, described target partition comprises at least one subregion;
Obtain the data type storing data in each subregion that described target partition comprises, to store the data type of data in described bad track of hard disk.
In conjunction with the first possible implementation of embodiment of the present invention first aspect, in the implementation that the second of embodiment of the present invention first aspect is possible, before the partition length of each subregion that the described target LUN of described acquisition comprises and described each subregion, described method also comprises:
Judge whether described second reference position is in the target storage position in described target LUN, described target storage position stores the partition table corresponding with described each subregion, and described partition table comprises the partition length of described each subregion;
If judged result is no, then perform the operation of the partition length of each subregion that the described target LUN of described acquisition comprises and described each subregion;
If the determination result is YES, then export to user and be used to indicate the impaired indication information of partition table, to make user with described indication information for first operational order of foundation input for repairing described partition table;
Receive described first operational order;
Respond described first operational order to repair described partition table, and perform the operation of the partition length of each subregion that the described target LUN of described acquisition comprises and described each subregion.
In conjunction with embodiment of the present invention first aspect, in the third possible implementation of embodiment of the present invention first aspect, when described data type is described user data type, described with described data type for according to repair described bad track of hard disk comprise:
Obtain and store Data Identification corresponding to data in described bad track of hard disk, the data type of described storage data is described user data type;
Described Data Identification is exported, to make user with described Data Identification for second operational order of foundation input for repairing described bad track of hard disk to user;
Receive described second operational order;
Respond described second operational order to repair described bad track of hard disk.
In conjunction with the third possible implementation of embodiment of the present invention first aspect, in the 4th kind of possible implementation of embodiment of the present invention first aspect, when described data type is described non-user data type, described with described data type for according to repair described bad track of hard disk comprise:
Obtain the reparation rule corresponding with described non-user data type;
With described reparation rule for foundation repairs described bad track of hard disk.
In conjunction with the third possible implementation of embodiment of the present invention first aspect, in the 5th kind of possible implementation of embodiment of the present invention first aspect, when described data type is described empty data type, described with described data type for according to repair described bad track of hard disk comprise:
Z-operation is write to the position that the data type storing data in described bad track of hard disk is described empty data type.
In conjunction with embodiment of the present invention first aspect, in the 6th kind of possible implementation of embodiment of the present invention first aspect, when there is described bad track of hard disk in described disk array, before the bad track information of the described bad track of hard disk of described acquisition, described method also comprises:
Export for pointing out the information of whether repairing described bad track of hard disk to user;
Receive the response message for described information of user's input, to repair described bad track of hard disk.
Embodiment of the present invention second aspect discloses a kind of prosthetic device of bad track of hard disk, comprising:
Detection module, for detecting in disk array whether there is bad track of hard disk;
Acquisition module, for when the testing result of described detection module is for being, obtain the bad track information of described bad track of hard disk, described bad track information comprises the target hard disk residing for described bad track of hard disk, the first start bit of described bad track of hard disk in described target hard disk is put and the bad track length of described bad track of hard disk;
Described acquisition module, also for the mapping relations of described bad track information and hard disk and LUN for according to obtaining target LUN residing for described bad track of hard disk and second reference position of described bad track of hard disk in described target LUN;
Parsing module, for with described second reference position and described bad track length for according to resolving described target LUN to obtain the data type storing data in described bad track of hard disk, described data type comprises at least one in user data type, non-user data type and empty data type;
Repair module, for described data type for according to repair described bad track of hard disk.
In the first possible implementation of embodiment of the present invention second aspect, described parsing module comprises the first acquisition submodule and second and obtains submodule, wherein:
Described first obtains submodule, for when there is subregion in described target LUN, obtain the partition length of each subregion that described target LUN comprises and described each subregion, and with described second reference position and described bad track length for foundation, obtain the target partition residing for described bad track of hard disk, described target partition comprises at least one subregion;
Described second obtains submodule, for obtaining the data type storing data in each subregion that described target partition comprises, to store the data type of data in described bad track of hard disk.
In conjunction with the first possible implementation of embodiment of the present invention second aspect, in the implementation that the second of embodiment of the present invention second aspect is possible, described parsing module also comprise judge submodule, the first output sub-module, first input submodule and first repair submodule, wherein:
Described judgement submodule, for when there is subregion in described target LUN and obtaining before submodule obtains the partition length of each subregion that described target LUN comprises and described each subregion described first, judge whether described second reference position is in the target storage position in described target LUN, described target storage position stores the partition table corresponding with described each subregion, and described partition table comprises the partition length of described each subregion;
Described first obtains submodule, also for when the judged result of described judgement submodule is no, obtains the partition length of each subregion that described target LUN comprises and described each subregion;
Described first output sub-module, for described judge the judged result of submodule as being time, export to user and be used to indicate the impaired indication information of partition table, to make user with described indication information for first operational order of foundation input for repairing described partition table;
Described first input submodule, for receiving described first operational order;
Described first repairs submodule, for responding described first operational order to repair described partition table.
In conjunction with embodiment of the present invention second aspect, in the third possible implementation of embodiment of the present invention second aspect, described reparation module comprises the 3rd and obtains submodule, the second output sub-module, the second input submodule and the second reparation submodule, wherein:
Described 3rd obtains submodule, and for when described data type is described user data type, obtain and store Data Identification corresponding to data in described bad track of hard disk, the data type of described storage data is described user data type;
Described second output sub-module, for exporting described Data Identification to user, to make user with described Data Identification for second operational order of foundation input for repairing described bad track of hard disk;
Described second input submodule, for receiving described second operational order;
Described second repairs submodule, for responding described second operational order to repair described bad track of hard disk.
In conjunction with the third possible implementation of embodiment of the present invention second aspect, in the 4th kind of possible implementation of embodiment of the present invention second aspect, described 3rd obtains submodule, also for when described data type is described non-user data type, obtain the reparation rule corresponding with described non-user data type;
Described second repairs submodule, also for regular for the described bad track of hard disk of foundation reparation with described reparation.
In conjunction with the third possible implementation of embodiment of the present invention second aspect, in the 5th kind of possible implementation of embodiment of the present invention second aspect, described second repairs submodule, also for when described data type is described empty data type, Z-operation is write to the position that the data type storing data in described bad track of hard disk is described empty data type.
In conjunction with embodiment of the present invention second aspect, in the 6th kind of possible implementation of embodiment of the present invention second aspect, described device also comprises output module and load module, wherein:
Described output module, for when described detection module testing result for be and in described reparation module with described data type for according to repairing before described bad track of hard disk, export for pointing out the information of whether repairing described bad track of hard disk to user;
Described load module, for receiving the response message for described information of user's input, to repair described bad track of hard disk.
In the embodiment of the present invention, detect there is bad track of hard disk in disk array after obtain the bad track information of bad track of hard disk, wherein, bad track information comprises the target hard disk residing for bad track of hard disk, the first start bit of bad track of hard disk in target hard disk is put and the bad track length of bad track of hard disk, and with the mapping relations of bad track information and hard disk and LUN for according to the target LUN obtained residing for bad track of hard disk and second reference position of bad track of hard disk in target LUN, then with the second reference position and bad track length for according to resolving target LUN to obtain the data type storing data in bad track of hard disk, last is according to repairing bad track of hard disk with data type.Implement the embodiment of the present invention to repair bad track of hard disk according to the data type storing data in bad track of hard disk, fundamentally solve the service impact that bad track of hard disk brings.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the restorative procedure of a kind of bad track of hard disk disclosed in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the restorative procedure of another kind of bad track of hard disk disclosed in the embodiment of the present invention;
Fig. 3 is a kind of schematic flow sheet obtaining in bad track of hard disk the method for the data type storing data disclosed in the embodiment of the present invention;
Fig. 4 is the structural representation of the prosthetic device of a kind of bad track of hard disk disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of the prosthetic device of another kind of bad track of hard disk disclosed in the embodiment of the present invention;
Fig. 6 is the structural representation of the prosthetic device of the embodiment of the present invention another bad track of hard disk disclosed.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of restorative procedure and device of bad track of hard disk, according to the data type storing data in bad track of hard disk, bad track of hard disk can be repaired, fundamentally solve the service impact that bad track of hard disk brings.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of the restorative procedure of a kind of bad track of hard disk disclosed in the embodiment of the present invention.Wherein, the method shown in Fig. 1 can be applied in disk array or use disk array as in the device of storage system, and the embodiment of the present invention does not limit.As shown in Figure 1, the method can comprise the following steps:
Whether bad track of hard disk is there is in S101, detection disk array.
In the embodiment of the present invention, disk array or use disk array as storage system device can by disk array background scanning and user's trigger business access mode identify bad track of hard disk.
In the embodiment of the present invention, if the testing result of step S101 is yes, then perform step S102, if the testing result of step S101 is no, then terminates this and detect operation.
The bad track information of S102, acquisition bad track of hard disk.
In the embodiment of the present invention, bad track information can comprise target hard disk residing for bad track of hard disk, the first start bit of bad track of hard disk in target hard disk is put (as M sector, M be greater than zero integer) and the bad track length of bad track of hard disk, wherein, the bad track length of bad track of hard disk is in units of sector.
S103, with the mapping relations of bad track information and hard disk and LUN for foundation, obtain the target LUN residing for bad track of hard disk and second reference position of bad track of hard disk in target LUN.
In the embodiment of the present invention, the number of the target LUN residing for bad track of hard disk be more than or equal to 1 integer, when the number of target LUN is greater than 1, then represent that bad track of hard disk is the bad track of hard disk across LUN, here the fractionation of bad track of hard disk is related to, split into multiple bad track of hard disk by bad track of hard disk, the number of the target LUN residing for each bad track of hard disk after fractionation is 1, and disk array or use disk array as storage system device to the Analytic principle of each target LUN and Principles identical.
S104, with the second reference position and bad track length for according to resolving target LUN to obtain the data type storing data in bad track of hard disk.
In the embodiment of the present invention, data type can comprise at least one in user data type, non-user data type and empty data type, and the embodiment of the present invention does not limit.
As the optional embodiment of one, when there is subregion in target LUN, resolving target LUN with the second reference position and bad track length for foundation and can comprise to obtain the data type storing data in bad track of hard disk:
The partition length of each subregion that acquisition target LUN comprises and each subregion;
With the second reference position and bad track length for foundation, obtain the target partition residing for bad track of hard disk, wherein, target partition comprises at least one subregion;
The data type of data is stored, to store the data type of data in bad track of hard disk in each subregion that acquisition target partition comprises.
As the optional embodiment of another kind, when there is subregion in target LUN, resolving target LUN with the second reference position and bad track length for foundation and can comprise to obtain the data type storing data in bad track of hard disk:
Judge whether the second reference position is in the target storage position in target LUN, wherein, target storage position stores the partition table corresponding with each subregion, and partition table comprises the partition length of each subregion;
When judged result is no, the partition length of each subregion that acquisition target LUN comprises and each subregion, and with the second reference position and bad track length for according to the target partition obtained residing for bad track of hard disk, the data type of data is stored, to store the data type of data in bad track of hard disk in each subregion that acquisition target partition comprises.
When judged result is for being, export to user and be used to indicate the impaired indication information of partition table, be according to first operational order of input for repairing partition table with indication information to make user, receive and respond the first operational order to repair partition table, the partition length of each subregion that acquisition target LUN comprises and each subregion, and with the second reference position and bad track length for according to the target partition obtained residing for bad track of hard disk, the data type of data is stored, to store the data type of data in bad track of hard disk in each subregion that acquisition target partition comprises.
S105, be according to repairing bad track of hard disk with data type.
As the optional embodiment of one, when data type is user data type, be can comprise according to repairing bad track of hard disk with data type:
Obtain the Data Identification corresponding with storing data in bad track of hard disk, wherein, the data type storing data is user data type;
Exporting Data Identification to user, is according to second operational order of input for repairing bad track of hard disk with Data Identification to make user;
Receive the second operational order;
Respond the second operational order to repair bad track of hard disk.
As the optional embodiment of another kind, when data type is non-user data type, be can comprise according to repairing bad track of hard disk with data type:
Obtain the reparation rule corresponding with non-user data type;
To repair rule for foundation reparation bad track of hard disk.
As another optional embodiment, when data type is empty data type, be can comprise according to repairing bad track of hard disk with data type:
Z-operation is write to the position that the data type storing data in bad track of hard disk is sky data type.
In the embodiment of the present invention, detect there is bad track of hard disk in disk array after obtain the bad track information of bad track of hard disk, wherein, bad track information comprises the target hard disk residing for bad track of hard disk, the first start bit of bad track of hard disk in target hard disk is put and the bad track length of bad track of hard disk, and with the mapping relations of bad track information and hard disk and LUN for according to the target LUN obtained residing for bad track of hard disk and second reference position of bad track of hard disk in target LUN, then with the second reference position and bad track length for according to resolving target LUN to obtain the data type storing data in bad track of hard disk, last is according to repairing bad track of hard disk with data type.Implement the embodiment of the present invention to repair bad track of hard disk according to the data type storing data in bad track of hard disk, fundamentally solve the service impact that bad track of hard disk brings.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of the restorative procedure of another kind of bad track of hard disk disclosed in the embodiment of the present invention.Wherein, the method shown in Fig. 2 can be applied in disk array or use disk array as in the device of storage system, and the embodiment of the present invention does not limit.As shown in Figure 2, the method can comprise the following steps:
Whether bad track of hard disk is there is in S201, detection disk array.
In the embodiment of the present invention, if the testing result of step S201 is yes, then perform step S202, if the testing result of step S201 is no, then terminates this and detect operation.
S202, to user export for pointing out the information of whether repairing bad track of hard disk.
In the embodiment of the present invention, after detecting and there is bad track of hard disk in disk array, export for pointing out the information of whether repairing bad track of hard disk to user, there is bad track of hard disk to point out in user disk array and make user select whether repair bad track of hard disk according to self-demand, improve Consumer's Experience.
The response message for information of S203, reception user input.
In the embodiment of the present invention, response message is used to indicate disk array or uses disk array to repair bad track of hard disk as the device of storage system.
The bad track information of S204, acquisition bad track of hard disk.
S205, with the mapping relations of bad track information and hard disk and LUN for foundation, obtain the target LUN residing for bad track of hard disk and second reference position of bad track of hard disk in target LUN.
Whether subregion is there is in S206, detection target LUN;
In the embodiment of the present invention, the form of subregion can comprise GPT (GUID Partition Table, globally unique identifier's partition table) form or MBR (Master Boot Record, Main Boot Record) form, the embodiment of the present invention does not limit.
In the embodiment of the present invention, if the testing result of step S206 is yes, then perform step S207, if the testing result of step S206 is no, then perform step S208.
S207, judge whether the second reference position is in the target storage position in target LUN.
In the embodiment of the present invention, target storage position stores the partition table corresponding with the subregion that target LUN comprises, and partition table comprises the partition length of each subregion in target LUN, optionally, target storage position can be the memory location of the front 2K in target LUN, and the embodiment of the present invention does not limit.
In the embodiment of the present invention, if the judged result of step S207 is yes, if the judged result then performing step S209 step S207 is no, then perform step S214.
S208, with the second reference position and bad track length for according to resolving target LUN to obtain the data type storing data in bad track of hard disk.
In the embodiment of the present invention, data type can comprise at least one in user data type, non-user data type and empty data type, and the embodiment of the present invention does not limit.
S209, exporting be used to indicate the impaired indication information of partition table to user, is according to first operational order of input for repairing partition table with indication information to make user.
S210, receive the first operational order.
S211, respond the first operational order to repair partition table.
S212, obtain the partition length of each subregion of comprising of target LUN and each subregion.
S213, with the second reference position and bad track length for foundation, obtain the target partition residing for bad track of hard disk.
In the embodiment of the present invention, target partition comprises at least one subregion, when the number of target partition is greater than 1, then represent that bad track of hard disk is the bad track of hard disk across subregion, here the fractionation to bad track of hard disk is related to, split into multiple bad track of hard disk by bad track of hard disk, the number of the target partition residing for each bad track of hard disk after fractionation is 1, and disk array or use disk array as storage system device to the Analytic principle of each target partition and Principles identical.
The data type of data is stored in each subregion that S214, acquisition target partition comprise.
In the embodiment of the present invention, data type can comprise at least one in user data type and non-user data type, and the embodiment of the present invention does not limit.
S215, judge whether data type is user data type.
In the embodiment of the present invention, if the judged result of step S216 is yes, then perform step S217, if the judged result of step S216 is no, then perform step S221.
S216, obtain the Data Identification corresponding with storing data in bad track of hard disk.
In the embodiment of the present invention, the data type storing data is user data type.
S217, exporting Data Identification to user, is according to second operational order of input for repairing bad track of hard disk to make user with Data Identification.
S218, receive the second operational order.
S219, respond the second operational order to repair bad track of hard disk.
S220, to obtain the reparation corresponding with non-user data type regular.
S221, with repair rule for according to repair bad track of hard disk.
Implement the embodiment of the present invention and can send warning information before bad track of hard disk affects the Operational Visit of user, and can automatically repair bad track of hard disk in time according to the data type storing data in bad track of hard disk or export bad track of hard disk information to user in time according to the data type storing data in bad track of hard disk and manually bad track of hard disk is repaired to make user, fundamentally solve the service impact that bad track of hard disk brings.
Refer to Fig. 3, Fig. 3 is a kind of schematic flow sheet obtaining in bad track of hard disk the method for the data type storing data disclosed in the embodiment of the present invention.Wherein, method as shown in Figure 3 can be applied in the restorative procedure of the bad track of hard disk shown in Fig. 1 and Fig. 2.As shown in Figure 3, suppose to identify in the target LUN residing for bad track of hard disk that to store data be the data corresponding with EXT3 file system, wherein, namely the data corresponding with EXT3 can directly be stored in target LUN, also can be stored in the subregion in target LUN, and when supposing to be stored in when the data corresponding with EXT3 file system in the subregion in target LUN, before the reference position of bad track of hard disk in target LUN is not in 2k, the method storing the data type of data in this acquisition bad track of hard disk can comprise the following steps:
S301, judge each subregion 1K ~ 2K in target partition corresponding with bad track of hard disk in target LUN or target LUN memory location in whether there is bad track of hard disk.
In the embodiment of the present invention, if the judged result of step S301 is yes, then perform step S302, if the judged result of step S301 is no, then perform step S304.
S302, confirm that the main superblock of each subregion in target LUN or target partition is impaired.
S303, obtain the backup superblock corresponding with main superblock to repair main superblock.
S304, confirm that the memory location of the 1K ~ 2K of each subregion in target LUN or target partition stores the superblock of EXT3.
In the embodiment of the present invention, confirm that the concrete mode that the memory location of the 1K ~ 2K of each subregion in target LUN or target partition stores the superblock of EXT3 can be:
Whether the value judging 0x38 ~ 0x39 place in the superblock of each partitioned storage in target LUN or target partition is " 53EF ", if the determination result is YES, then determines that 1K ~ 2K memory location of each subregion in target LUN or target partition stores the superblock of EXT3.
S305, obtain superblock information and the block group number calculated in EXT3 file system according to the main superblock structure in EXT3.
In the embodiment of the present invention, block group number is rounded up by the total block data of EXT3 file system obtain divided by the block number in each piece of group.
S306, judge whether the position of the block group descriptor table of main superblock exists bad track of hard disk.
In the embodiment of the present invention, if the judged result of step S306 is yes, then perform step S307, if the judged result of step S306 is no, then perform step S309.
S307, confirm that the block group descriptor table of main superblock in target LUN or target partition is impaired.
S308, obtain the backup block group descriptor table corresponding with the block group descriptor table of main superblock to repair the block group descriptor table of main superblock.
S309, obtain the data type of each partitioned storage data in target LUN or target partition with the structural information of each block group of the block group descriptor table record of main superblock.
In the embodiment of the present invention, store at least one that the data type of data can comprise in user data type and non-user data type, wherein, the storage data of user data type can comprise index node and data block, the storage data of non-user data type can comprise backup superblock, backup block group descriptor table, Global Descriptor Table reserved block, bitmap block and index node bitmap, wherein:
Backup superblock and backup block group descriptor table are only occur in the block group of the power side of 3,5 and 7, if block group number is 1,3,5,7,9,25,27,49,81 in block group number ...
Global Descriptor Table reserved block is present in the block group comprising block group descriptor table, and Global Descriptor Table reserved block is not by region that block group descriptor table uses in block group descriptor table.
Block group descriptor table in units of 32 bytes and for describe each piece group structure, it comprises the information such as bitmap block reference position (as bitmap block block number), index node reference position (as index node bitmap block number) and index node table start address (as index node table starting block number), and the structure of block group descriptor table can be as shown in table 1.
Table 1 piece group descriptor table
Side-play amount (sexadecimal) Byte number Implication
00-03 4 Bitmap block block number
04-07 4 Index node bitmap block number
08-0B 4 Index node table starting block number
There is an inode number in each index node, the method for resolving the inode number of the index node corresponding with bad track of hard disk can parse the inode number of the index node corresponding with bad track of hard disk for the numbering rule of the reference position (as index node table starting block number) of each piece of index node table organized recording in the position residing for the index node corresponding with bad track of hard disk, block group descriptor table, index node size and index node.
When storage data are data block, the method of resolving the inode number of the data block corresponding with bad track of hard disk can for filtering out by bitmap block the data block that do not used by any index node and this not being set to 0 by the inode number of the data block used, for other data block, by traveling through the used data block of all indexed nodes to determine the data block corresponding with bad track of hard disk by which index node is used, and the inode number of data block is set to the inode number of the index node using this data block.
In the embodiment of the present invention, when parse store data be data block or index node time, disk array or use disk array need parse the filename that comprise fullpath corresponding with data block or index node as the device of storage system, and the method that parsing comprises the filename of fullpath can be: judge whether index node is used according to index node bitmap, if index node is not used, then the filename corresponding with this index node is set to " not used ", for other index node and data block, then resolved the directory entry that records in catalogue to obtain the filename that comprise fullpath corresponding with data block or index node by the catalogue of the index node that uses or data block by traversal is all.
S310, repair the bad track of hard disk in target LUN or target partition with the data type of the storage data got.
To store data be backup superblock and backup block group descriptor table bad track of hard disk reparation rule for utilizing the block group descriptor table of main superblock and main superblock to repair.
To store data be the bad track of hard disk of Global Descriptor Table reserved block reparation rule for write Z-operation to this bad track of hard disk position.
To store data be the bad track of hard disk of index node bitmap and bitmap block reparation rule for carry out one writing operation to this bad track of hard disk position, and in the alarm log of storage management software, record the alarm of " promptly " rank, and the FSCK using EXT3 file system to carry after carry EXT3 file system (File System Check, file system check) order correct reparation index node bitmap and bitmap block.
To store data be index node and the reparation rule of the bad track of hard disk of file by name " not used " for write Z-operation to this bad track of hard disk position.
To store data be index node and filename for the reparation rule of the bad track of hard disk of " not used " is written to this bad track of hard disk position for the correct index node (file size is 0) of edit structure, namely edit an empty index node can directly use the index node that this structure is correct when repairing bad track of hard disk.
To store data be the bad track of hard disk of data block reparation rule for write Z-operation to this bad track of hard disk position.
In the embodiment of the present invention, above-mentioned to store data be index node reparation rule just repaired the structure of index node, above-mentioned to store data be data block reparation rule just enable the file corresponding with this data block accessed, and cannot by the data restore corresponding with index node and data block difference, afterwards, disk array or use disk array can distinguish corresponding Data Identification (as filename) to user's output with index node and data block as the device of storage system, undertaken repairing index node and data block by the backup of upper layer application or disaster tolerance system to make user.
In the embodiment of the present invention, when there is subregion in target LUN and the reference position of bad track of hard disk in target LUN be in before in 2k time, this shows that the partition table in target LUN is impaired, disk array or use disk array as storage system device to user export be used to indicate the impaired indication information of the partition table corresponding with the divisional type of the target partition in target LUN, to make user with this indication information for first operational order of foundation input for repairing partition table, disk array or use disk array receive as the device of storage system and respond this first operational order to repair partition table.
Refer to Fig. 4, Fig. 4 is the structural representation of the prosthetic device of a kind of bad track of hard disk disclosed in the embodiment of the present invention.Wherein, device as shown in Figure 4 can perform the restorative procedure of the bad track of hard disk shown in Fig. 1 and Fig. 2.As shown in Figure 4, the prosthetic device 400 of this bad track of hard disk can comprise detection module 401, acquisition module 402, parsing module 403 and repair module 404, wherein:
Detection module 401 is for detecting in disk array whether there is bad track of hard disk.
Acquisition module 402, for when the testing result of detection module is for being, obtains the bad track information of bad track of hard disk.
In the embodiment of the present invention, the bad track information of bad track of hard disk can comprise target hard disk residing for bad track of hard disk, the first start bit of bad track of hard disk in target hard disk is put and the bad track length of bad track of hard disk.
Acquisition module 402 also for the mapping relations of bad track information and hard disk and LUN for according to obtaining target LUN residing for bad track of hard disk and second reference position of bad track of hard disk in target LUN.
Parsing module 403 for the second reference position and bad track length for according to resolving target LUN to obtain the data type storing data in bad track of hard disk.
In the embodiment of the present invention, data type comprises at least one in user data type, non-user data type and empty data type, and the embodiment of the present invention does not limit.
Repair module 404 for taking data type as foundation reparation bad track of hard disk.
Implement the embodiment of the present invention to repair bad track of hard disk according to the data type storing data in bad track of hard disk, fundamentally solve the service impact that bad track of hard disk brings.
Refer to Fig. 5, Fig. 5 is the structural representation of the prosthetic device of another kind of bad track of hard disk disclosed in the embodiment of the present invention.Wherein, device as shown in Figure 5 can perform the restorative procedure of the bad track of hard disk shown in Fig. 1 and Fig. 2.As shown in Figure 5, the prosthetic device 500 of this bad track of hard disk can comprise detection module 501, output module 502, load module 503, acquisition module 504, parsing module 505 and repair module 506, wherein:
Detection module 501 detects in disk array whether there is bad track of hard disk.
Output module 502, for when the testing result of detection module 501 is for being, exports for pointing out the information of whether repairing bad track of hard disk to user.
Load module 503 is for receiving the response message for information of user's input.
In the embodiment of the present invention, the prosthetic device 500 that response message is used to indicate bad track of hard disk repairs bad track of hard disk.
Acquisition module 504 is for obtaining the bad track information of bad track of hard disk.
Acquisition module 504 also for the mapping relations of bad track information and hard disk and LUN for according to obtaining target LUN residing for bad track of hard disk and second reference position of bad track of hard disk in target LUN.
Parsing module 505 for the second reference position and bad track length for according to resolving target LUN to obtain the data type storing data in bad track of hard disk.
As the optional embodiment of one, parsing module 505 can comprise the first acquisition submodule 5051 and second and obtain submodule 5052, wherein:
First obtains submodule 5051 for when there is subregion in target LUN, obtains the partition length of each subregion of comprising of target LUN and each subregion, and with the second reference position and bad track length for foundation, the target partition of acquisition residing for bad track of hard disk.
Second obtains submodule 5052 for storing the data type of data in each subregion of obtaining target partition and comprising, to store the data type of data in bad track of hard disk.
As the optional embodiment of another kind, parsing module 505 can also comprise and judges that submodule 5053, first output sub-module 5054, first input submodule 5055 and first repairs submodule 5056, wherein:
Judge that submodule 5053 is for when existing subregion in target LUN, judge whether the second reference position is in the target storage position in target LUN.
First obtains submodule 5051 can also be used for when judging that the judged result of submodule 5053 is no, the partition length of each subregion that acquisition target LUN comprises and each subregion.
First output sub-module 5054, for when judging the judged result of submodule 5053 as being, exporting to user and being used to indicate the impaired indication information of partition table, is according to first operational order of input for repairing partition table to make user with indication information.
First input submodule 5055 is for receiving the first operational order.
First repairs submodule 5056 for responding the first operational order to repair partition table.
In the embodiment of the present invention, first repairs submodule 5056 repairs partition table with the partition length of make the first acquisition submodule 5051 obtain from the partition table repaired each subregion that target LUN comprises and each subregion.
Repair module 506 for taking data type as foundation reparation bad track of hard disk.
As the optional embodiment of one, repair module 506 and can comprise the 3rd acquisition submodule 5061, second output sub-module 5062, second input submodule 5063 and the second reparation submodule 5064, wherein:
3rd obtains submodule 5061 for when data type is user data type, obtains the Data Identification corresponding with storing data in bad track of hard disk.
Second output sub-module 5062, for exporting Data Identification to user, is according to second operational order of input for repairing bad track of hard disk with Data Identification to make user.
Second input submodule 5063 is for receiving the second operational order.
Second repairs submodule 5064 for responding the second operational order to repair bad track of hard disk.
As the optional embodiment of another kind, the 3rd obtains submodule 5061 can also be used for when data type is non-user data type, obtains the reparation rule corresponding with non-user data type.
Second repairs submodule 5064 can also be used for repairing rule for foundation reparation bad track of hard disk.
As another optional embodiment, second repairs submodule 5064 can also be used for, when data type is empty data type, writing Z-operation to the position that the data type storing data in bad track of hard disk is sky data type.
Implement the embodiment of the present invention and can send warning information before bad track of hard disk affects the Operational Visit of user, and can automatically repair bad track of hard disk in time according to the data type storing data in bad track of hard disk or export bad track of hard disk information to user in time according to the data type storing data in bad track of hard disk and manually bad track of hard disk is repaired to make user, fundamentally solve the service impact that bad track of hard disk brings.
Refer to Fig. 6, Fig. 6 is the structural representation of the prosthetic device of the embodiment of the present invention another bad track of hard disk disclosed.Wherein, device as shown in Figure 6 can perform the restorative procedure of the bad track of hard disk shown in Fig. 1 and Fig. 2.As shown in Figure 6, the prosthetic device 600 of this bad track of hard disk can comprise: at least one processor 601, as CPU, input media 602, output unit 603, storer 604 and at least one communication bus 605, storer 604 can be high-speed RAM storer, also can be non-labile storer (non-volatile memory), as at least one magnetic disk memory, optionally, storer 604 can also be that at least one is positioned at the memory storage away from aforementioned processor 601.Wherein:
Communication bus 605 is for realizing the connection communication between these assemblies;
Processor 601 for call in storer 604 store program code, for performing following operation:
Detect in disk array and whether there is bad track of hard disk;
If testing result is yes, then obtain the bad track information of bad track of hard disk, wherein, bad track information comprises target hard disk residing for bad track of hard disk, the first start bit of bad track of hard disk in target hard disk is put and the bad track length of bad track of hard disk;
With the mapping relations of bad track information and hard disk and LUN for foundation, obtain the target LUN residing for bad track of hard disk and second reference position of bad track of hard disk in target LUN;
With the second reference position and bad track length for according to resolving target LUN to obtain the data type storing data in bad track of hard disk, wherein, data type can comprise at least one in user data type, non-user data type and empty data type;
Be according to repairing bad track of hard disk with data type.
As the optional embodiment of one, when there is subregion in target LUN, processor 601 is resolved target LUN with the second reference position and bad track length for foundation and to obtain the concrete mode of the data type storing data in bad track of hard disk can is:
The partition length of each subregion that acquisition target LUN comprises and each subregion;
With the second reference position and bad track length for foundation, obtain the target partition residing for bad track of hard disk, wherein, target partition comprises at least one subregion;
The data type of data is stored, to store the data type of data in bad track of hard disk in each subregion that acquisition target partition comprises.
As a kind of optional embodiment, when there is subregion in target LUN, processor 601 is resolved target LUN with the second reference position and bad track length for foundation and to obtain the concrete mode of the data type storing data in bad track of hard disk can is:
Judge whether the second reference position is in the target storage position in target LUN, wherein, target storage position stores the partition table corresponding with each subregion, and partition table comprises the partition length of each subregion.
In the embodiment of the present invention, when the target storage position that the second reference position is not in target LUN judged by processor 601, processor 601 obtains the partition length of each subregion that target LUN comprises and each subregion, and with the second reference position and bad track length for foundation, obtain the target partition residing for bad track of hard disk, wherein, target partition comprises at least one subregion, then the data type of data is stored in each subregion that acquisition target partition comprises, to store the data type of data in bad track of hard disk, when the target storage position that the second reference position is in target LUN judged by processor 601, processor 601 exports to user that to be used to indicate the impaired indication information of partition table to make user be according to first operational order of input for repairing partition table with indication information, receive the first operational order and respond the first operational order to repair partition table, then the partition length of each subregion of comprising of target LUN and each subregion is obtained, and with the second reference position and bad track length for foundation, obtain the target partition residing for bad track of hard disk, wherein, target partition comprises at least one subregion, finally, the data type of data is stored in each subregion that acquisition target partition comprises, to store the data type of data in bad track of hard disk.
As the optional embodiment of one, when data type is user data type, processor 601 is can be with data type according to the concrete mode of repairing bad track of hard disk:
Obtain the Data Identification corresponding with storing data in bad track of hard disk, wherein, the data type storing data is user data type;
Exporting Data Identification to user, is according to second operational order of input for repairing bad track of hard disk with Data Identification to make user;
Receive the second operational order;
Respond the second operational order to repair bad track of hard disk.
As the optional embodiment of one, when data type is non-user data type, processor 601 is can be with data type according to the concrete mode of repairing bad track of hard disk:
Obtain the reparation rule corresponding with non-user data type;
To repair rule for foundation reparation bad track of hard disk.
As another optional embodiment, when data type is empty data type, processor 601 is can be with data type according to the concrete mode of repairing bad track of hard disk:
Z-operation is write to the position that the data type storing data in bad track of hard disk is sky data type.
As the optional embodiment of one, when processor 601 detects in disk array and there is bad track of hard disk, and obtain the bad track information of bad track of hard disk at processor 601 before, output unit 603 is for exporting for pointing out the information of whether repairing bad track of hard disk to user, the response message for information that input media 602 inputs for receiving user, to repair bad track of hard disk.
Implement the embodiment of the present invention and can send warning information before bad track of hard disk affects the Operational Visit of user, and can automatically repair bad track of hard disk in time according to the data type storing data in bad track of hard disk or export bad track of hard disk information to user in time according to the data type storing data in bad track of hard disk and manually bad track of hard disk is repaired to make user, fundamentally solve the service impact that bad track of hard disk brings.
It should be noted that, in the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and involved action, module and submodule might not be that the present invention is necessary.
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Module in embodiment of the present invention device and submodule can carry out merging, divide and deleting according to actual needs.
Module described in the embodiment of the present invention and submodule can pass through universal integrated circuit, such as CPU (Central Processing Unit, central processing unit), or realized by ASIC (Application Specific Integrated Circuit, special IC).
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above the restorative procedure of a kind of bad track of hard disk that the embodiment of the present invention provides and device are described in detail, apply instantiation herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (14)

1. a restorative procedure for bad track of hard disk, is characterized in that, comprising:
Detect in disk array and whether there is bad track of hard disk;
If testing result is yes, then obtain the bad track information of described bad track of hard disk, described bad track information comprises the target hard disk residing for described bad track of hard disk, the first start bit of described bad track of hard disk in described target hard disk is put and the bad track length of described bad track of hard disk;
With the mapping relations of described bad track information and hard disk and LUN for foundation, obtain the target LUN residing for described bad track of hard disk and second reference position of described bad track of hard disk in described target LUN;
With described second reference position and described bad track length for according to resolving described target LUN to obtain the data type storing data in described bad track of hard disk, described data type comprises at least one in user data type, non-user data type and empty data type;
With described data type for foundation repairs described bad track of hard disk.
2. method according to claim 1, it is characterized in that, when there is subregion in described target LUN, described with described second reference position and described bad track length for comprising to obtain the data type storing data in described bad track of hard disk according to resolving described target LUN:
Obtain the partition length of each subregion that described target LUN comprises and described each subregion;
With described second reference position and described bad track length for foundation, obtain the target partition residing for described bad track of hard disk, described target partition comprises at least one subregion;
Obtain the data type storing data in each subregion that described target partition comprises, to store the data type of data in described bad track of hard disk.
3. method according to claim 2, is characterized in that, before the partition length of each subregion that the described target LUN of described acquisition comprises and described each subregion, described method also comprises:
Judge whether described second reference position is in the target storage position in described target LUN, described target storage position stores the partition table corresponding with described each subregion, and described partition table comprises the partition length of described each subregion;
If judged result is no, then perform the operation of the partition length of each subregion that the described target LUN of described acquisition comprises and described each subregion;
If the determination result is YES, then export to user and be used to indicate the impaired indication information of partition table, to make user with described indication information for first operational order of foundation input for repairing described partition table;
Receive described first operational order;
Respond described first operational order to repair described partition table, and perform the operation of the partition length of each subregion that the described target LUN of described acquisition comprises and described each subregion.
4. method according to claim 1, is characterized in that, when described data type is described user data type, described with described data type for according to repair described bad track of hard disk comprise:
Obtain and store Data Identification corresponding to data in described bad track of hard disk, the data type of described storage data is described user data type;
Described Data Identification is exported, to make user with described Data Identification for second operational order of foundation input for repairing described bad track of hard disk to user;
Receive described second operational order;
Respond described second operational order to repair described bad track of hard disk.
5. method according to claim 4, is characterized in that, when described data type is described non-user data type, described with described data type for according to repair described bad track of hard disk comprise:
Obtain the reparation rule corresponding with described non-user data type;
With described reparation rule for foundation repairs described bad track of hard disk.
6. method according to claim 4, is characterized in that, when described data type is described empty data type, described with described data type for according to repair described bad track of hard disk comprise:
Z-operation is write to the position that the data type storing data in described bad track of hard disk is described empty data type.
7. method according to claim 1, is characterized in that, when there is described bad track of hard disk in described disk array, before the bad track information of the described bad track of hard disk of described acquisition, described method also comprises:
Export for pointing out the information of whether repairing described bad track of hard disk to user;
Receive the response message for described information of user's input, to repair described bad track of hard disk.
8. a prosthetic device for bad track of hard disk, is characterized in that, comprising:
Detection module, for detecting in disk array whether there is bad track of hard disk;
Acquisition module, for when the testing result of described detection module is for being, obtain the bad track information of described bad track of hard disk, described bad track information comprises the target hard disk residing for described bad track of hard disk, the first start bit of described bad track of hard disk in described target hard disk is put and the bad track length of described bad track of hard disk;
Described acquisition module, also for the mapping relations of described bad track information and hard disk and LUN for according to obtaining target LUN residing for described bad track of hard disk and second reference position of described bad track of hard disk in described target LUN;
Parsing module, for with described second reference position and described bad track length for according to resolving described target LUN to obtain the data type storing data in described bad track of hard disk, described data type comprises at least one in user data type, non-user data type and empty data type;
Repair module, for described data type for according to repair described bad track of hard disk.
9. device according to claim 8, is characterized in that, described parsing module comprises the first acquisition submodule and second and obtains submodule, wherein:
Described first obtains submodule, for when there is subregion in described target LUN, obtain the partition length of each subregion that described target LUN comprises and described each subregion, and with described second reference position and described bad track length for foundation, obtain the target partition residing for described bad track of hard disk, described target partition comprises at least one subregion;
Described second obtains submodule, for obtaining the data type storing data in each subregion that described target partition comprises, to store the data type of data in described bad track of hard disk.
10. device according to claim 9, is characterized in that, described parsing module also comprise judge submodule, the first output sub-module, first input submodule and first repair submodule, wherein:
Described judgement submodule, for when there is subregion in described target LUN and obtaining before submodule obtains the partition length of each subregion that described target LUN comprises and described each subregion described first, judge whether described second reference position is in the target storage position in described target LUN, described target storage position stores the partition table corresponding with described each subregion, and described partition table comprises the partition length of described each subregion;
Described first obtains submodule, also for when the judged result of described judgement submodule is no, obtains the partition length of each subregion that described target LUN comprises and described each subregion;
Described first output sub-module, for described judge the judged result of submodule as being time, export to user and be used to indicate the impaired indication information of partition table, to make user with described indication information for first operational order of foundation input for repairing described partition table;
Described first input submodule, for receiving described first operational order;
Described first repairs submodule, for responding described first operational order to repair described partition table.
11. devices according to claim 8, is characterized in that, described reparation module comprises the 3rd and obtains submodule, the second output sub-module, the second input submodule and the second reparation submodule, wherein:
Described 3rd obtains submodule, and for when described data type is described user data type, obtain and store Data Identification corresponding to data in described bad track of hard disk, the data type of described storage data is described user data type;
Described second output sub-module, for exporting described Data Identification to user, to make user with described Data Identification for second operational order of foundation input for repairing described bad track of hard disk;
Described second input submodule, for receiving described second operational order;
Described second repairs submodule, for responding described second operational order to repair described bad track of hard disk.
12. devices according to claim 11, is characterized in that, the described 3rd obtains submodule, also for when described data type is described non-user data type, obtain the reparation rule corresponding with described non-user data type;
Described second repairs submodule, also for regular for the described bad track of hard disk of foundation reparation with described reparation.
13. devices according to claim 11, it is characterized in that, described second repairs submodule, also for when described data type is described empty data type, writes Z-operation to the position that the data type storing data in described bad track of hard disk is described empty data type.
14. devices according to claim 8, is characterized in that, described device also comprises output module and load module, wherein:
Described output module, for when described detection module testing result for be and in described reparation module with described data type for according to repairing before described bad track of hard disk, export for pointing out the information of whether repairing described bad track of hard disk to user;
Described load module, for receiving the response message for described information of user's input, to repair described bad track of hard disk.
CN201410468320.XA 2014-09-15 2014-09-15 The restorative procedure and device of a kind of bad track of hard disk Expired - Fee Related CN104318960B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410468320.XA CN104318960B (en) 2014-09-15 2014-09-15 The restorative procedure and device of a kind of bad track of hard disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410468320.XA CN104318960B (en) 2014-09-15 2014-09-15 The restorative procedure and device of a kind of bad track of hard disk

Publications (2)

Publication Number Publication Date
CN104318960A true CN104318960A (en) 2015-01-28
CN104318960B CN104318960B (en) 2018-06-05

Family

ID=52374179

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410468320.XA Expired - Fee Related CN104318960B (en) 2014-09-15 2014-09-15 The restorative procedure and device of a kind of bad track of hard disk

Country Status (1)

Country Link
CN (1) CN104318960B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104794027A (en) * 2015-04-30 2015-07-22 四川效率源信息安全技术有限责任公司 Parameter identification error repair method
CN105068903A (en) * 2015-08-13 2015-11-18 广州慧存电子科技有限公司 Hard disk detection and repair system and apparatus
CN105095026A (en) * 2015-08-31 2015-11-25 小米科技有限责任公司 Superblock repair method and apparatus for EXT file system and intelligent device
CN111007992A (en) * 2020-03-04 2020-04-14 广东电网有限责任公司佛山供电局 Disk data storage representation method, system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100037091A1 (en) * 2008-08-06 2010-02-11 Anant Baderdinni Logical drive bad block management of redundant array of independent disks
CN102063348A (en) * 2010-12-27 2011-05-18 成都市华为赛门铁克科技有限公司 Partition table information backup method and device and storage system
CN102314383A (en) * 2011-09-28 2012-01-11 成都市华为赛门铁克科技有限公司 Failure recovery method and device for data index
CN102495777A (en) * 2011-12-13 2012-06-13 百度在线网络技术(北京)有限公司 Hard disc failure processing method and processing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100037091A1 (en) * 2008-08-06 2010-02-11 Anant Baderdinni Logical drive bad block management of redundant array of independent disks
CN102063348A (en) * 2010-12-27 2011-05-18 成都市华为赛门铁克科技有限公司 Partition table information backup method and device and storage system
CN102314383A (en) * 2011-09-28 2012-01-11 成都市华为赛门铁克科技有限公司 Failure recovery method and device for data index
CN102495777A (en) * 2011-12-13 2012-06-13 百度在线网络技术(北京)有限公司 Hard disc failure processing method and processing device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
崔崧: "基于Windows FAT的数据恢复系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104794027A (en) * 2015-04-30 2015-07-22 四川效率源信息安全技术有限责任公司 Parameter identification error repair method
CN105068903A (en) * 2015-08-13 2015-11-18 广州慧存电子科技有限公司 Hard disk detection and repair system and apparatus
CN105095026A (en) * 2015-08-31 2015-11-25 小米科技有限责任公司 Superblock repair method and apparatus for EXT file system and intelligent device
CN111007992A (en) * 2020-03-04 2020-04-14 广东电网有限责任公司佛山供电局 Disk data storage representation method, system and storage medium
CN111007992B (en) * 2020-03-04 2020-08-04 广东电网有限责任公司佛山供电局 Disk data storage representation method, system and storage medium

Also Published As

Publication number Publication date
CN104318960B (en) 2018-06-05

Similar Documents

Publication Publication Date Title
US11163472B2 (en) Method and system for managing storage system
CN110531940B (en) Video file processing method and device
CN103534688B (en) Data reconstruction method, memory device and storage system
CN103064765B (en) Data reconstruction method, device and cluster storage system
CN103309775B (en) A kind of fault-tolerance approach of high-reliability disk array
CN109542342B (en) Metadata management and data reconstruction method, equipment and storage medium
CN105468479B (en) A kind of disk array RAID bad block processing methods and device
CN103246478B (en) A kind of based on the disc array system of software PLC support without packet type overall situation HotSpare disk
CN103049354B (en) Data recovery method, data restore device and storage system
CN104461390A (en) Method and device for writing data into imbricate magnetic recording SMR hard disk
CN102495777B (en) Hard disc failure processing method and processing device
CN103699457A (en) Method and device for restoring disk arrays based on stripping
CN105938457A (en) Data filtering method, and device and data reading system
CN103019880B (en) A kind of data verification method and storage device, storage system
CN104318960A (en) Method and device for repairing hard disk bad track
US8799595B1 (en) Eliminating duplicate data in storage systems with boot consolidation
CN109726036B (en) Data reconstruction method and device in storage system
CN105354102B (en) A kind of method and apparatus of file system maintenance and reparation
CN114416665B (en) Method, device and medium for detecting and repairing data consistency
US6363457B1 (en) Method and system for non-disruptive addition and deletion of logical devices
CN103530322A (en) Method and device for processing data
CN113377569A (en) Method, apparatus and computer program product for recovering data
CN116339644B (en) Method, device, equipment and medium for creating redundant array of independent disk
CN111143116A (en) Method and device for processing bad blocks of disk
CN104205097A (en) De-duplicate method device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180605

Termination date: 20190915

CF01 Termination of patent right due to non-payment of annual fee