WO2017041670A1 - Data recovery method and apparatus - Google Patents

Data recovery method and apparatus Download PDF

Info

Publication number
WO2017041670A1
WO2017041670A1 PCT/CN2016/097953 CN2016097953W WO2017041670A1 WO 2017041670 A1 WO2017041670 A1 WO 2017041670A1 CN 2016097953 W CN2016097953 W CN 2016097953W WO 2017041670 A1 WO2017041670 A1 WO 2017041670A1
Authority
WO
WIPO (PCT)
Prior art keywords
metadata
address
head
target disk
target
Prior art date
Application number
PCT/CN2016/097953
Other languages
French (fr)
Chinese (zh)
Inventor
罗庆超
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2017041670A1 publication Critical patent/WO2017041670A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation

Definitions

  • the data repair process may be: when receiving the head fault information, determining the entire disk fault where the fault head is located. At this time, all the data stored in the entire fault disk may be directly backed up to other disks, and the The failed disk is formatted to repair the data in the failed disk, and the failed disk can continue to be used later.
  • an embodiment of the present invention provides a data repair method and apparatus.
  • the technical solution is as follows:
  • the acquiring the mapping information of the target disk includes:
  • the failed head is marked to identify that the failed head has failed.
  • a repairing module configured to repair data stored in the target disc based on the attribute information described by the acquired metadata.
  • a sending unit configured to send a mapping information obtaining instruction to the target disk, so that the target disk returns address information accessed by the plurality of magnetic heads included in the target disk respectively;
  • the technical solution provided by the embodiment of the present invention has the beneficial effects that, in the embodiment of the present invention, when the upper layer system receives the head fault information, the metadata corresponding to the fault head can be obtained from the target metadata backup location, and based on The acquired metadata quickly repairs the data stored in the target disk corresponding to the faulty head, so that the target disk can continue to be used without formatting the target disk, which reduces the cost of data recovery of the upper system and reduces data repair. Time to improve the efficiency of data recovery.
  • FIG. 7 is a schematic structural diagram of a second determining module device according to an embodiment of the present invention.
  • Step 201 Receive a head failure notification information, where the head failure notification information carries a fault head identifier.
  • Step 203 Obtain metadata corresponding to the fault head from the target metadata backup location, where the metadata is used to describe data address and attribute information of data stored in the target disc, where the target disc is the fault The disc accessed by the head.
  • mapping information of the target disk where the mapping information is used to identify address information accessed by the plurality of magnetic heads included in the target disk, where the target disk is the target disk and the disk where the faulty head is located;
  • the metadata is written to the determined metadata backup location to back up the metadata.
  • the obtaining mapping information of the target disk includes:
  • the metadata of the data stored in the disk accessed by the plurality of magnetic heads included in the target disk needs to be backed up, and before the metadata is backed up, the upper layer system further Need to get the mapping information of the target disk.
  • the operation of the upper layer system to obtain the target disk mapping information may be: the upper layer system sends a mapping information acquisition instruction to the target disk, so that the target disk returns address information accessed by the plurality of magnetic heads included in the target disk; when the upper layer system receives When the address information of the plurality of magnetic heads returned by the target disk is respectively stored, the head identifier of the plurality of magnetic heads and the address information respectively accessed by the plurality of magnetic heads are stored in a correspondence relationship between the head identifier and the address information. .
  • the upper layer system may be an operating system installed on the device, or may be an application running on the device, and the device may be a terminal or a server.
  • the upper layer system may be located in the same device as the target disk.
  • the upper layer system may also be located in a different device from the target disk, which is not specifically limited in this embodiment of the present invention.
  • the address information respectively accessed by the plurality of magnetic heads is a storage address of data stored in the discs accessed by the plurality of magnetic heads, and the address information accessed by the plurality of magnetic heads respectively may include a starting address and a partial offset.
  • the address of the address may also include an address range, which is not specifically limited in this embodiment of the present invention.
  • Step 302 Obtain metadata of a plurality of disks included in the target disk, and determine, for each metadata in the plurality of metadata, a metadata corresponding to the metadata address and the mapping information. The metadata backup location of the head.
  • the upper layer system In order to back up the metadata, the upper layer system needs to determine the metadata backup location of the metadata corresponding to the head based on the data address and mapping information described by the metadata.
  • the upper layer system determines, according to the data address and the mapping information described by the metadata, the operation of the metadata backup location of the metadata corresponding to the magnetic head: determining an address of the data address based on the data address described by the metadata And determining, according to the determined address information, a corresponding head identifier from the stored correspondence between the head identifier and the address information; and determining, according to the acquired head identifier, a metadata backup position of the metadata corresponding to the head.
  • Offset address 0040H the data address 1040H described by the metadata is subtracted from the start address 2000H, and the address difference is -0960H, the address difference is negative and less than the offset address 0040H corresponding to the start address 2000H;
  • the data address 1040H described by the metadata is subtracted from the start address 3000H, and the address difference is -1960H, and the address difference is a negative number and is smaller than the offset address 0040H corresponding to the start address 1000H; therefore, the start The address 1000H and the offset address 0040H corresponding to the start address are determined to be the data address described by the metadata. Start address and offset address.
  • the operation of the upper layer system from the address range to select the address range in which the data address described by the metadata is located may be: for each address range in the multiple address ranges, the upper layer system of the address range The start address is compared with the data address described by the metadata, and the end address of the address range is compared with the data address described by the metadata, when the data address is greater than or equal to the start address of the address range and When the end address of the address range is less than or equal to, the address range is determined as the address range in which the data address described by the metadata is located.
  • the metadata backup policy is used to determine the metadata backup location, and the metadata backup policy may be set in advance.
  • the metadata backup policy may be to back up the metadata to other disks in the disk where the metadata corresponding to the head is located.
  • the embodiment of the present invention does not specifically limit the slice, other disks, and other storable media.
  • the receiving module 401 is configured to receive a magnetic head failure notification information, where the magnetic head failure notification information carries a faulty magnetic head identifier;
  • the second obtaining module 405 is configured to obtain mapping information of the target disk, where the mapping information is used to identify address information accessed by the plurality of magnetic heads included in the target disk, where the target disk is the target disk and the fault head is located Disk
  • the first determining unit 4071 is configured to determine address information of the data address based on the data address described by the metadata;
  • the device further includes:
  • the method before the obtaining the metadata corresponding to the faulty head from the target metadata backup location, the method further includes:
  • the failed head is marked to identify that the failed head has failed.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

Provided are a data recovery method and apparatus, which fall within the field of computers. The method comprises: receiving fault notification information about a magnetic head, wherein the fault notification information about the magnetic head carries identification of a faulty magnetic head (201); based on the identification of the faulty magnetic head, determining a backup position of target metadata, wherein metadata of the faulty magnetic head is stored at the backup position of the target metadata, and each of the magnetic heads is provided with a metadata backup position in advance (202); acquiring metadata corresponding to the faulty magnetic head from the backup position of the target metadata, wherein the metadata is used to describe a data address and attribute information about data stored in a target disk sheet, and the target disk sheet is a disk sheet which is accessed by the faulty magnetic head (203); and based on the attribute information described by the acquired metadata, recovering the data stored in the target disk sheet (204).By means of metadata stored in a backup position of target metadata, data stored in a target disk sheet corresponding to a faulty magnetic head can be rapidly recovered, thereby reducing the cost of recovering data of an upper layer system, and improving the efficiency of data recovery.

Description

数据修复方法及装置Data repair method and device 技术领域Technical field
本发明涉及计算机领域,特别涉及一种数据修复方法及装置。The present invention relates to the field of computers, and in particular, to a data repair method and apparatus.
背景技术Background technique
磁头和盘片是磁盘的最基本组成部分,并且为了满足磁盘的容量需求,磁盘中可以包括多个磁头和多个盘片,一个磁头可以对一个盘片中存储的数据进行访问,也即是,磁头是磁盘访问数据的关键部件。当磁头故障时,将无法访问该磁头对应盘片上存储的数据,因此,对该磁头对应盘片中存储的数据进行修复是尤为重要的。The magnetic head and the disc are the most basic components of the magnetic disk, and in order to meet the capacity requirement of the magnetic disk, the magnetic disk may include a plurality of magnetic heads and a plurality of optical discs, and one magnetic head can access data stored in one disc, that is, The head is a key component of disk access data. When the head fails, the data stored on the corresponding disk of the head cannot be accessed. Therefore, it is especially important to repair the data stored in the corresponding disk of the head.
目前,数据修复的过程可以为:当接收到磁头故障信息时,确定该故障磁头所在的整个磁盘故障,此时,可以直接将该整个故障磁盘中存储的所有数据备份到其他磁盘,并将该故障磁盘进行格式化,以将该故障磁盘中的数据进行修复,且后续还可以继续使用该故障磁盘。At present, the data repair process may be: when receiving the head fault information, determining the entire disk fault where the fault head is located. At this time, all the data stored in the entire fault disk may be directly backed up to other disks, and the The failed disk is formatted to repair the data in the failed disk, and the failed disk can continue to be used later.
在实现本发明的过程中,发明人发现现有技术至少存在以下问题:In the process of implementing the present invention, the inventors have found that the prior art has at least the following problems:
由于一个磁头故障时,该磁头所在磁盘中的其他磁头还可以正常访问对应盘片中存储的数据,因此,将整个磁盘进行格式化不仅提高了数据修复的代价,同时也增加了数据修复的时间,降低了数据修复的效率。Since a head is faulty, other heads in the disk where the head is located can also normally access the data stored in the corresponding disk. Therefore, formatting the entire disk not only increases the cost of data repair, but also increases the time for data repair. , reducing the efficiency of data repair.
发明内容Summary of the invention
为了解决现有技术的问题,本发明实施例提供了一种数据修复方法及装置。所述技术方案如下:In order to solve the problem of the prior art, an embodiment of the present invention provides a data repair method and apparatus. The technical solution is as follows:
第一方面,提供了一种数据修复方法,所述方法包括:In a first aspect, a data repair method is provided, the method comprising:
接收磁头故障通知信息,所述磁头故障通知信息携带故障磁头标识;Receiving a head failure notification information, wherein the head failure notification information carries a fault head identifier;
基于所述故障磁头标识,确定目标元数据备份位置,所述目标元数据备份位置存储有故障磁头的元数据,每个磁头预先均设置有一个元数据备份位置;Determining, according to the faulty magnetic head identifier, a target metadata backup location, where the target metadata backup location stores metadata of the faulty magnetic head, and each of the magnetic heads is provided with a metadata backup location in advance;
从所述目标元数据备份位置中,获取所述故障磁头对应的元数据,所述元数据用于对目标盘片中存储的数据的数据地址和属性信息进行描述,所述目标盘片为所述故障磁头所访问的盘片;Obtaining, from the target metadata backup location, metadata corresponding to the faulty magnetic head, where the metadata is used to describe a data address and attribute information of data stored in a target disc, where the target disc is Describe the disk accessed by the faulty head;
基于获取的元数据所描述的属性信息,对所述目标盘片中存储的数据进行修复。 The data stored in the target disc is repaired based on the attribute information described by the acquired metadata.
结合第一方面,在上述第一方面的第一种可能的实现方式中,所述从所述目标元数据备份位置中,获取所述故障磁头对应的元数据之前,还包括:With reference to the first aspect, in the first possible implementation manner of the foregoing first aspect, the obtaining, before the acquiring the metadata corresponding to the faulty head from the target metadata backup location, the method further includes:
获取目标磁盘的映射信息,所述映射信息用于标识所述目标磁盘包括的多个磁头分别所访问的地址信息,所述目标磁盘为所述目标盘片和所述故障磁头所在的磁盘;Obtaining mapping information of the target disk, where the mapping information is used to identify address information accessed by the plurality of magnetic heads included in the target disk, where the target disk is the target disk and the disk where the faulty head is located;
获取所述目标磁盘包括的多个盘片的元数据;Obtaining metadata of a plurality of disks included in the target disk;
对于所述多个元数据中的每个元数据,基于所述元数据所描述的数据地址和所述映射信息,确定所述元数据对应磁头的元数据备份位置;Determining, for each of the plurality of metadata, a metadata backup location of the metadata corresponding to the head based on the data address and the mapping information described by the metadata;
将所述元数据写入确定的元数据备份位置中,以对所述元数据进行备份。The metadata is written into the determined metadata backup location to back up the metadata.
结合第一方面的第一种可能的实现方式,在上述第一方面的第二种可能的实现方式中,所述获取目标磁盘的映射信息,包括:With reference to the first possible implementation manner of the first aspect, in the second possible implementation manner of the foregoing first aspect, the acquiring the mapping information of the target disk includes:
向所述目标磁盘发送映射信息获取指令,使所述目标磁盘返回所述目标磁盘包括的多个磁头分别所访问的地址信息;Sending a mapping information obtaining instruction to the target disk, so that the target disk returns address information accessed by the plurality of magnetic heads included in the target disk respectively;
当接收到所述目标磁盘返回的所述多个磁头分别所访问的地址信息时,将所述多个磁头的磁头标识和所述多个磁头分别所访问的地址信息,存储在磁头标识与地址信息之间的对应关系中。When the address information accessed by the plurality of magnetic heads returned by the target disk is received, the head identifiers of the plurality of magnetic heads and the address information respectively accessed by the plurality of magnetic heads are stored in the head identification and address The correspondence between the information.
结合第一方面的第一种可能的实现方式或者第一方面的第二种可能的实现方式,在上述第一方面的第三种可能的实现方式中,所述基于所述元数据所描述的数据地址和所述映射信息,确定所述元数据对应磁头的元数据备份位置,包括:With reference to the first possible implementation of the first aspect or the second possible implementation of the first aspect, in a third possible implementation manner of the foregoing first aspect, the described based on the metadata Determining, by the data address and the mapping information, a metadata backup location of the metadata corresponding to the magnetic head, including:
基于所述元数据所描述的数据地址,确定所述数据地址所在的地址信息;Determining address information of the data address based on the data address described by the metadata;
基于确定的地址信息,从存储的磁头标识与地址信息之间的对应关系中,获取对应的磁头标识;Determining, according to the determined address information, a corresponding head identifier from a correspondence between the stored head identifier and the address information;
基于获取的磁头标识,确定所述元数据对应磁头的元数据备份位置。Based on the acquired head identification, the metadata backup location of the metadata corresponding to the head is determined.
结合第一方面,在上述第一方面的第四种可能的实现方式中,所述基于获取的元数据所描述的属性信息,对所述目标盘片中存储的数据进行修复之后,还包括:With reference to the first aspect, in the fourth possible implementation manner of the foregoing first aspect, after the repairing the data stored in the target disk based on the attribute information described by the acquired metadata, the method further includes:
对所述故障磁头进行标记,以标识所述故障磁头已故障。The failed head is marked to identify that the failed head has failed.
结合第一方面或者第一方面的第四种可能的实现方式,在上述第一方面的第五种可能的实现方式中,所述基于获取的元数据所描述的属性信息,对所述目标盘片中存储的数据进行修复之后,还包括: With reference to the first aspect, or the fourth possible implementation manner of the first aspect, in the fifth possible implementation manner of the foregoing first aspect, the attribute information that is described based on the acquired metadata, is related to the target disk After the data stored in the slice is repaired, it also includes:
向目标磁盘发送容量刷新指令,使所述目标磁盘确定目标磁盘新容量,以刷新所述目标磁盘的容量,所述目标磁盘新容量为刷新之后所述目标磁盘的容量。Sending a capacity refresh command to the target disk, so that the target disk determines a new capacity of the target disk to refresh the capacity of the target disk, and the target disk new capacity is the capacity of the target disk after the refresh.
第二方面,提供了一种数据修复装置,所述装置包括:In a second aspect, a data repair apparatus is provided, the apparatus comprising:
接收模块,用于接收磁头故障通知信息,所述磁头故障通知信息携带故障磁头标识;a receiving module, configured to receive a magnetic head failure notification information, where the magnetic head failure notification information carries a faulty magnetic head identifier;
第一确定模块,用于基于所述故障磁头标识,确定目标元数据备份位置,所述目标元数据备份位置存储有故障磁头的元数据,每个磁头预先均设置有一个元数据备份位置;a first determining module, configured to determine, according to the faulty magnetic head identifier, a target metadata backup location, where the target metadata backup location stores metadata of the faulty magnetic head, and each of the magnetic heads is preset with a metadata backup location;
第一获取模块,用于从所述目标元数据备份位置中,获取所述故障磁头对应的元数据,所述元数据用于对目标盘片中存储的数据的数据地址和属性信息进行描述,所述目标盘片为所述故障磁头所访问的盘片;a first obtaining module, configured to acquire metadata corresponding to the faulty magnetic head from the target metadata backup location, where the metadata is used to describe a data address and attribute information of data stored in a target disk, The target disk is a disk accessed by the faulty magnetic head;
修复模块,用于基于获取的元数据所描述的属性信息,对所述目标盘片中存储的数据进行修复。And a repairing module, configured to repair data stored in the target disc based on the attribute information described by the acquired metadata.
结合第二方面,在上述第二方面的第一种可能的实现方式中,所述装置还包括:With reference to the second aspect, in a first possible implementation manner of the foregoing second aspect, the device further includes:
第二获取模块,用于获取目标磁盘的映射信息,所述映射信息用于标识所述目标磁盘包括的多个磁头分别所访问的地址信息,所述目标磁盘为所述目标盘片和所述故障磁头所在的磁盘;a second obtaining module, configured to acquire mapping information of the target disk, where the mapping information is used to identify address information accessed by the plurality of magnetic heads included in the target disk, where the target disk is the target disk and the The disk where the faulty head is located;
第三获取模块,用于获取所述目标磁盘包括的多个盘片的元数据;a third obtaining module, configured to acquire metadata of multiple disks included in the target disk;
第二确定模块,用于对于所述多个元数据中的每个元数据,基于所述元数据所描述的数据地址和所述映射信息,确定所述元数据对应磁头的元数据备份位置;a second determining module, configured to determine, for each metadata of the plurality of metadata, a metadata backup location of the metadata corresponding to the magnetic head based on the data address and the mapping information described by the metadata;
备份模块,用于将所述元数据写入确定的元数据备份位置中,以对所述元数据进行备份。And a backup module, configured to write the metadata into the determined metadata backup location to back up the metadata.
结合第二方面的第一种可能的实现方式,在上述第二方面的第二种可能的实现方式中,所述第二获取模块包括:With reference to the first possible implementation of the second aspect, in the second possible implementation manner of the foregoing second aspect, the second acquiring module includes:
发送单元,用于向所述目标磁盘发送映射信息获取指令,使所述目标磁盘返回所述目标磁盘包括的多个磁头分别所访问的地址信息;a sending unit, configured to send a mapping information obtaining instruction to the target disk, so that the target disk returns address information accessed by the plurality of magnetic heads included in the target disk respectively;
存储单元,用于当接收到所述目标磁盘返回的所述多个磁头分别所访问的地址信息时,将所述多个磁头的磁头标识和所述多个磁头分别所访问的地址信 息,存储在磁头标识与地址信息之间的对应关系中。a storage unit, configured to: when receiving the address information accessed by the plurality of magnetic heads returned by the target disk, the head identifiers of the plurality of magnetic heads and the address letters respectively accessed by the plurality of magnetic heads The information is stored in the correspondence between the head identification and the address information.
结合第二方面的第一种可能的实现方式或者第二方面的第二种可能的实现方式,在上述第二方面的第三种可能的实现方式中,所述第二确定模块包括:With reference to the first possible implementation of the second aspect or the second possible implementation of the second aspect, in a third possible implementation manner of the foregoing second aspect, the second determining module includes:
第一确定单元,用于基于所述元数据所描述的数据地址,确定所述数据地址所在的地址信息;a first determining unit, configured to determine address information of the data address based on the data address described by the metadata;
获取单元,用于基于确定的地址信息,从存储的磁头标识与地址信息之间的对应关系中,获取对应的磁头标识;An obtaining unit, configured to acquire, according to the determined address information, a corresponding head identifier from a correspondence between the stored head identifier and the address information;
第二确定单元,用于基于获取的磁头标识,确定所述元数据对应磁头的元数据备份位置。And a second determining unit, configured to determine, according to the acquired head identifier, a metadata backup location of the metadata corresponding to the magnetic head.
结合第二方面,在上述第二方面的第四种可能的实现方式中,所述装置还包括:With reference to the second aspect, in a fourth possible implementation manner of the foregoing second aspect, the device further includes:
标记模块,用于对所述故障磁头进行标记,以标识所述故障磁头已故障。a marking module for marking the faulty head to identify that the faulty head has failed.
结合第二方面或者第二方面的第四种可能的实现方式,在上述第二方面的第五种可能的实现方式中,所述装置还包括:In conjunction with the second aspect, or the fourth possible implementation of the second aspect, in the fifth possible implementation manner of the foregoing second aspect, the device further includes:
发送模块,用于向目标磁盘发送容量刷新指令,使所述目标磁盘确定目标磁盘新容量,以刷新所述目标磁盘的容量,所述目标磁盘新容量为刷新之后所述目标磁盘的容量。And a sending module, configured to send a capacity refresh command to the target disk, so that the target disk determines a new capacity of the target disk to refresh the capacity of the target disk, where the target disk new capacity is a capacity of the target disk after the refresh.
本发明实施例提供的技术方案带来的有益效果是:在本发明实施例中,当上层系统接收到磁头故障信息后,可从目标元数据备份位置,获取故障磁头对应的元数据,并基于获取的元数据,快速地修复故障磁头对应目标盘片中存储的数据,从而在无需格式化目标磁盘的情况下仍然可以继续使用该目标磁盘,降低了上层系统数据修复的代价,减少了数据修复的时间,提高了数据修复的效率。The technical solution provided by the embodiment of the present invention has the beneficial effects that, in the embodiment of the present invention, when the upper layer system receives the head fault information, the metadata corresponding to the fault head can be obtained from the target metadata backup location, and based on The acquired metadata quickly repairs the data stored in the target disk corresponding to the faulty head, so that the target disk can continue to be used without formatting the target disk, which reduces the cost of data recovery of the upper system and reduces data repair. Time to improve the efficiency of data recovery.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in light of the inventive work.
图1是本发明实施例提供的一种数据修复系统架构图; 1 is a structural diagram of a data repair system according to an embodiment of the present invention;
图2是本发明实施例提供的一种数据修复方法流程图;2 is a flowchart of a data repair method according to an embodiment of the present invention;
图3是本发明实施例提供的另一种数据修复方法流程图;3 is a flowchart of another data repair method according to an embodiment of the present invention;
图4是本发明实施例提供的一种数据修复装置结构示意图;4 is a schematic structural diagram of a data repair apparatus according to an embodiment of the present invention;
图5是本发明实施例提供的另一种数据修复装置结构示意图;FIG. 5 is a schematic structural diagram of another data repair apparatus according to an embodiment of the present invention; FIG.
图6是本发明实施例提供的一种第二获取模块装置结构示意图;6 is a schematic structural diagram of a second acquiring module device according to an embodiment of the present invention;
图7是本发明实施例提供的一种第二确定模块装置结构示意图;7 is a schematic structural diagram of a second determining module device according to an embodiment of the present invention;
图8是本发明实施例提供的一种数据修复设备结构示意图。FIG. 8 is a schematic structural diagram of a data repair device according to an embodiment of the present invention.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
在对本发明实施例进行详细地解释说明之前,先对本发明实施例的系统架构进行介绍。图1为本发明实施例提供的一种数据修复系统架构图,如图1所示,该数据修复系统包括上层系统和多个磁盘,该上层系统与该多个磁盘分别连接。其中,该多个磁盘分别可以包括多个盘片和多个磁头,该多个盘片用于存储数据,该多个磁头用于分别对该多个盘片上存储的数据进行访问,该上层系统用于对该多个磁头中出现故障的磁头所对应盘片中存储的数据进行修复。Before explaining the embodiments of the present invention in detail, the system architecture of the embodiment of the present invention is first introduced. FIG. 1 is a structural diagram of a data repair system according to an embodiment of the present invention. As shown in FIG. 1 , the data repair system includes an upper layer system and a plurality of disks, and the upper layer system is respectively connected to the plurality of disks. The plurality of disks may respectively include a plurality of disks for storing data, and the plurality of disks for respectively accessing data stored on the plurality of disks, the upper layer system It is used to repair data stored in a disk corresponding to a magnetic head that has failed in the plurality of magnetic heads.
图2是本发明实施例提供的一种数据修复方法流程图,参见图2,该数据修复方法用于上层系统中,该方法包括:2 is a flowchart of a data repair method according to an embodiment of the present invention. Referring to FIG. 2, the data repair method is used in an upper layer system, and the method includes:
步骤201:接收磁头故障通知信息,该磁头故障通知信息携带故障磁头标识。Step 201: Receive a head failure notification information, where the head failure notification information carries a fault head identifier.
步骤202:基于该故障磁头标识,确定目标元数据备份位置,该目标元数据备份位置存储有故障磁头的元数据,每个磁头预先均设置有一个元数据备份位置。Step 202: Determine, according to the fault head identifier, a target metadata backup location, where the target metadata backup location stores metadata of the faulty head, and each of the magnetic heads is preset with a metadata backup location.
步骤203:从该目标元数据备份位置中,获取该故障磁头对应的元数据,该元数据用于对目标盘片中存储的数据的数据地址和属性信息进行描述,该目标盘片为该故障磁头所访问的盘片。Step 203: Obtain metadata corresponding to the fault head from the target metadata backup location, where the metadata is used to describe data address and attribute information of data stored in the target disc, where the target disc is the fault The disc accessed by the head.
步骤204:基于获取的元数据所描述的属性信息,对该目标盘片中存储的数据进行修复。Step 204: Repair the data stored in the target disc based on the attribute information described by the acquired metadata.
在本发明实施例中,当上层系统接收到磁头故障信息后,可从目标元数据备份位置,获取故障磁头对应的元数据,并基于获取的元数据,快速地修复故 障磁头对应目标盘片中存储的数据,从而在无需格式化目标磁盘的情况下仍然可以继续使用该目标磁盘,降低了上层系统数据修复的代价,减少了数据修复的时间,提高了数据修复的效率。In the embodiment of the present invention, after receiving the head fault information, the upper layer system may obtain the metadata corresponding to the fault head from the target metadata backup position, and quickly repair the data based on the acquired metadata. The barrier head corresponds to the data stored in the target disc, so that the target disk can still be used without formatting the target disk, which reduces the cost of data recovery of the upper system, reduces the time for data repair, and improves data repair. effectiveness.
可选地,从该目标元数据备份位置中,获取该故障磁头对应的元数据之前,还包括:Optionally, before obtaining the metadata corresponding to the faulty head from the target metadata backup location, the method further includes:
获取目标磁盘的映射信息,该映射信息用于标识该目标磁盘包括的多个磁头分别所访问的地址信息,该目标磁盘为该目标盘片和该故障磁头所在的磁盘;Obtaining mapping information of the target disk, where the mapping information is used to identify address information accessed by the plurality of magnetic heads included in the target disk, where the target disk is the target disk and the disk where the faulty head is located;
获取所述目标磁盘包括的多个盘片的元数据;Obtaining metadata of a plurality of disks included in the target disk;
对于该多个元数据中的每个元数据,基于该元数据所描述的数据地址和映射信息,确定该元数据对应磁头的元数据备份位置;For each of the plurality of metadata, determining, according to the data address and the mapping information described by the metadata, a metadata backup location of the metadata corresponding to the magnetic head;
将该元数据写入确定的元数据备份位置中,以对该元数据进行备份。The metadata is written to the determined metadata backup location to back up the metadata.
可选地,该获取目标磁盘的映射信息,包括:Optionally, the obtaining mapping information of the target disk includes:
向该目标磁盘发送映射信息获取指令,使该目标磁盘返回该目标磁盘包括的多个磁头分别所访问的地址信息;Sending a mapping information obtaining instruction to the target disk, so that the target disk returns address information accessed by the plurality of magnetic heads included in the target disk respectively;
当接收到该目标磁盘返回的该多个磁头分别所访问的地址信息时,将该多个磁头的磁头标识和该多个磁头分别所访问的地址信息,存储在磁头标识与地址信息之间的对应关系中。When the address information accessed by the plurality of magnetic heads returned by the target disk is received, the head identifiers of the plurality of magnetic heads and the address information respectively accessed by the plurality of magnetic heads are stored between the head identification and the address information. Corresponding relationship.
可选地,基于该元数据所描述的数据地址和映射信息,确定该元数据对应磁头的元数据备份位置,包括:Optionally, determining, according to the data address and mapping information described by the metadata, a metadata backup location of the metadata corresponding to the magnetic head, including:
基于该元数据所描述的数据地址,确定该数据地址所在的地址信息;Determining address information of the data address based on the data address described by the metadata;
基于确定的地址信息,从存储的磁头标识与地址信息之间的对应关系中,获取对应的磁头标识;Determining, according to the determined address information, a corresponding head identifier from a correspondence between the stored head identifier and the address information;
基于获取的磁头标识,确定该元数据对应磁头的元数据备份位置。Based on the acquired head identification, the metadata backup location of the metadata corresponding to the head is determined.
可选地,该基于获取的元数据所描述的属性信息,对该目标盘片中存储的数据进行修复之后,还包括:Optionally, after the repairing the data stored in the target disc based on the attribute information described by the acquired metadata, the method further includes:
对该故障磁头进行标记,以标识该故障磁头已故障。The failed head is marked to identify that the failed head has failed.
可选地,基于获取的元数据所描述的属性信息,对该目标盘片中存储的数据进行修复之后,还包括:Optionally, after the data stored in the target disk is repaired based on the attribute information described by the acquired metadata, the method further includes:
向目标磁盘发送容量刷新指令,使该目标磁盘确定目标磁盘新容量,以刷新该目标磁盘的容量,该目标磁盘新容量为刷新之后该目标磁盘的容量。 Sending a capacity refresh command to the target disk, so that the target disk determines the new capacity of the target disk to refresh the capacity of the target disk, and the new capacity of the target disk is the capacity of the target disk after the refresh.
上述所有可选技术方案,均可按照任意结合形成本发明的可选实施例,本发明实施例对此不再一一赘述。The optional embodiments of the present invention may be used in any combination to form an optional embodiment of the present invention.
图3是本发明实施例提供的一种数据修复方法流程图,参见图3,该方法包括:FIG. 3 is a flowchart of a data repair method according to an embodiment of the present invention. Referring to FIG. 3, the method includes:
步骤301:获取目标磁盘的映射信息,该映射信息用于标识该目标磁盘包括的多个磁头分别所访问的地址信息,该目标磁盘为该目标盘片和该故障磁头所在的磁盘,该目标盘片为该故障磁头所访问的盘片。Step 301: Obtain mapping information of the target disk, where the mapping information is used to identify address information accessed by the plurality of magnetic heads included in the target disk, where the target disk is the target disk and the disk where the faulty head is located, the target disk The slice is the disk accessed by the failed head.
为了将该目标磁盘包括的多个磁头所访问盘片中存储的数据进行备份,需要将该多个磁盘所访问盘片中存储的数据的元数据进行备份,而备份元数据之前,上层系统还需要获取目标磁盘的映射信息。而上层系统获取目标磁盘映射信息的操作可以为:上层系统向该目标磁盘发送映射信息获取指令,使该目标磁盘返回该目标磁盘包括的多个磁头分别所访问的地址信息;当上层系统接收到该目标磁盘返回的该多个磁头分别所访问的地址信息时,将该多个磁头的磁头标识和该多个磁头分别所访问的地址信息,存储在磁头标识与地址信息之间的对应关系中。In order to back up the data stored in the disk accessed by the plurality of magnetic heads included in the target disk, the metadata of the data stored in the disk accessed by the plurality of disks needs to be backed up, and before the metadata is backed up, the upper layer system further Need to get the mapping information of the target disk. The operation of the upper layer system to obtain the target disk mapping information may be: the upper layer system sends a mapping information acquisition instruction to the target disk, so that the target disk returns address information accessed by the plurality of magnetic heads included in the target disk; when the upper layer system receives When the address information of the plurality of magnetic heads returned by the target disk is respectively stored, the head identifier of the plurality of magnetic heads and the address information respectively accessed by the plurality of magnetic heads are stored in a correspondence relationship between the head identifier and the address information. .
需要说明的是,上层系统可以是设备上安装的操作系统,也可以是运行在设备的应用程序,该设备可以为终端,也可以为服务器,另外,上层系统可以与目标磁盘位于同一设备中,当然,上层系统也可以与目标磁盘位于不同的设备中,本发明实施例对此不做具体限定。It should be noted that the upper layer system may be an operating system installed on the device, or may be an application running on the device, and the device may be a terminal or a server. In addition, the upper layer system may be located in the same device as the target disk. Of course, the upper layer system may also be located in a different device from the target disk, which is not specifically limited in this embodiment of the present invention.
其中,映射信息获取指令用于从目标磁盘中获取该目标磁盘包括的多个磁头分别所访问的地址信息,该映射信息获取指令可以事先设置于上层系统中,且该映射信息获取指令可以是设置的一个新指令,也可以是对现有的一些指令进行扩展得到,比如,可以对Inquiry(询问)指令或者Report Zone(报告区域)指令进行扩展得到,本发明实施例对此不做具体限定。The mapping information obtaining instruction is configured to obtain the address information accessed by the plurality of magnetic heads included in the target disk from the target disk, where the mapping information obtaining instruction may be set in the upper layer system in advance, and the mapping information obtaining instruction may be set. A new instruction may be obtained by extending an existing instruction. For example, the inquiry (inquiry) instruction or the report area (reporting area) instruction may be extended, which is not specifically limited in the embodiment of the present invention.
另外,该多个磁头分别所访问的地址信息是该多个磁头分别所访问盘片中用于存储的数据的存储地址,且该多个磁头分别所访问的地址信息可以包括起始地址和偏移地址,也可以包括地址范围,本发明实施例对此不做具体限定。In addition, the address information respectively accessed by the plurality of magnetic heads is a storage address of data stored in the discs accessed by the plurality of magnetic heads, and the address information accessed by the plurality of magnetic heads respectively may include a starting address and a partial offset. The address of the address may also include an address range, which is not specifically limited in this embodiment of the present invention.
需要说明的是,一个磁头可以对应一个地址信息,也可以对应多个地址信息,也即是,一个磁头可以访问盘片上的一段地址范围,也可以访问盘片上的多段地址范围,本发明实施例不做具体限定。 It should be noted that one magnetic head can correspond to one address information, and can also correspond to multiple address information, that is, one magnetic head can access a range of addresses on the disc, and can also access multiple address ranges on the disc. No specific restrictions.
当该多个磁头分别所访问的地址信息包括起始地址和偏移地址时,上层系统获取目标磁盘映射信息的操作可以为:上层系统向该目标磁盘发送映射信息获取指令,当目标磁盘接收到该映射信息获取指令时,该目标磁盘获取该多个磁头分别所访问的起始地址和偏移地址,并将该多个磁头分别所访问的起始地址和偏移地址发送给上层系统,当上层系统接收到该目标磁盘发送的该多个磁头分别所访问的起始地址和偏移地址时,将该多个磁头标识、该多个磁头分别所访问的起始地址和偏移地址,存储在磁头标识、起始地址与偏移地址之间的对应关系中。When the address information accessed by the plurality of magnetic heads respectively includes a start address and an offset address, the operation of acquiring the target disk mapping information by the upper layer system may be: the upper layer system sends a mapping information acquisition instruction to the target disk, when the target disk receives the When the mapping information acquisition instruction is obtained, the target disk acquires a starting address and an offset address respectively accessed by the plurality of magnetic heads, and sends a starting address and an offset address respectively accessed by the plurality of magnetic heads to the upper layer system, when When the upper layer system receives the start address and the offset address respectively accessed by the plurality of magnetic heads sent by the target disk, storing the plurality of head identifiers, the start address and the offset address respectively accessed by the plurality of magnetic heads, and storing the start address and the offset address respectively accessed by the plurality of magnetic heads In the correspondence between the head identification, the starting address and the offset address.
比如,该目标磁盘包括3个磁头,分别为磁头1、磁头2和磁头3,上层系统向该目标磁盘发送映射信息获取指令,当目标磁盘接收到该映射信息获取指令时,该目标磁盘获取磁头1所访问的起始地址为1000H,偏移地址为0040H,磁头2所访问的起始地址为2000H,偏移地址为0040H,磁头3所访问的起始地址为3000H,偏移地址为0040H,该目标磁盘将该3个磁头分别所访问的起始地址和偏移地址发送给上层系统,当上层系统接收到该目标磁盘发送的该3个磁头分别所访问的起始地址和偏移地址时,将该磁头1的磁头标识ID1、磁头1所访问的起始地址和偏移地址,存储在如下表1所示的磁头标识、起始地址与偏移地址之间的对应关系中,将磁头2的磁头标识ID2、磁头2所访问的起始地址和偏移地址,存储在如下表1所示的磁头标识、起始地址与偏移地址之间的对应关系中,以及将磁头3的磁头标识ID3、磁头3所访问的起始地址和偏移地址,存储在如下表1所示的磁头标识、起始地址与偏移地址之间的对应关系中。For example, the target disk includes three magnetic heads, namely a magnetic head 1, a magnetic head 2 and a magnetic head 3. The upper layer system sends a mapping information acquisition instruction to the target disk, and when the target disk receives the mapping information obtaining instruction, the target disk acquires the magnetic head. The starting address of 1 access is 1000H, the offset address is 0040H, the starting address accessed by head 2 is 2000H, the offset address is 0040H, the starting address accessed by head 3 is 3000H, and the offset address is 0040H. The target disk sends the start address and the offset address respectively accessed by the three magnetic heads to the upper layer system, and when the upper layer system receives the start address and the offset address respectively accessed by the three magnetic heads sent by the target disk respectively The magnetic head ID 1 of the magnetic head 1, the start address and the offset address accessed by the magnetic head 1 are stored in a correspondence relationship between the head identification, the start address, and the offset address shown in Table 1 below, and the magnetic head is The head identification ID2 of 2, the start address and the offset address accessed by the magnetic head 2 are stored in the correspondence relationship between the head identification, the start address and the offset address shown in Table 1 below, and the magnetic The magnetic head 3 correspondence between the identifier of the ID3, the start address and offset address accessed by the magnetic head 3, the head identification is stored in the following table 1, the start address and offset address.
表1Table 1
磁头标识Head identification 起始地址initial address 偏移地址Offset address
ID1ID1 1000H1000H 0040H0040H
ID2ID2 2000H2000H 0040H0040H
ID3ID3 3000H3000H 0040H0040H
……...... ……...... ……......
需要说明的是,在本发明实施例中,以上述表1所示的磁头标识、起始地址与偏移地址之间的对应关系为例进行说明,上述表1并不对本发明实施例构成限定。It should be noted that, in the embodiment of the present invention, the correspondence relationship between the head identifier, the start address, and the offset address shown in Table 1 is taken as an example, and the above Table 1 does not limit the embodiment of the present invention. .
同理,当该多个磁头分别所访问的地址信息包括地址范围时,上层系统获 取目标磁盘映射信息的操作可以为:上层系统向该目标磁盘发送映射信息获取指令,当目标磁盘接收到该映射信息获取指令时,该目标磁盘获取该多个磁头分别所访问的地址范围,并将该多个磁头分别所访问的地址范围发送给上层系统,当上层系统接收到该目标磁盘发送的该多个磁头分别所访问的地址范围时,将该多个磁头标识和该多个磁头分别所访问的地址范围,存储在磁头标识与地址范围之间的对应关系中。Similarly, when the address information accessed by the plurality of magnetic heads respectively includes an address range, the upper layer system obtains The operation of the target disk mapping information may be: the upper layer system sends a mapping information obtaining instruction to the target disk, and when the target disk receives the mapping information obtaining instruction, the target disk acquires an address range accessed by the plurality of magnetic heads respectively, and Sending the address range accessed by the plurality of magnetic heads to the upper layer system respectively, when the upper layer system receives the address range accessed by the plurality of magnetic heads respectively sent by the target magnetic disk, respectively, the plurality of magnetic head identifiers and the plurality of magnetic heads respectively The range of addresses accessed is stored in the correspondence between the head identification and the address range.
比如,该目标磁盘包括3个磁头,分别为磁头1、磁头2和磁头3,上层系统向该目标磁盘发送映射信息获取指令,当目标磁盘接收到该映射信息获取指令时,该目标磁盘获取磁头1所访问的地址范围为1000H~1040H,磁头2所访问的地址范围为2000H~2040H,磁头3所访问的地址范围为3000H~3040H,该目标磁盘将该3个磁头分别所访问的地址范围发送给上层系统,当上层系统接收到该目标磁盘发送的该3个磁头分别所访问的地址范围时,将该磁头1的磁头标识ID1和磁头1所访问的地址范围,存储在如下表2所示的磁头标识与地址范围之间的对应关系中,将磁头2的磁头标识ID2与磁头2所访问的地址范围,存储在如下表2所示的磁头标识与地址范围之间的对应关系中,以及将磁头3的磁头标识ID3与磁头3所访问的地址范围,存储在如下表2所示的磁头标识与地址范围之间的对应关系中。For example, the target disk includes three magnetic heads, namely a magnetic head 1, a magnetic head 2 and a magnetic head 3. The upper layer system sends a mapping information acquisition instruction to the target disk, and when the target disk receives the mapping information obtaining instruction, the target disk acquires the magnetic head. The address range accessed by 1 is 1000H to 1040H, the address range accessed by the magnetic head 2 is 2000H to 2040H, and the address range accessed by the magnetic head 3 is 3000H to 3040H. The target disk sends the address range accessed by the three magnetic heads respectively. When the upper layer system receives the address range accessed by the three magnetic heads sent by the target disk, the head identifier ID1 of the magnetic head 1 and the address range accessed by the magnetic head 1 are stored in the following Table 2. In the correspondence between the head identification and the address range, the head identification ID2 of the magnetic head 2 and the address range accessed by the magnetic head 2 are stored in the correspondence relationship between the head identification and the address range shown in Table 2 below, and The head ID ID3 of the magnetic head 3 and the address range accessed by the magnetic head 3 are stored in the correspondence relationship between the head identification and the address range as shown in Table 2 below. .
表2Table 2
磁头标识Head identification 地址范围Address range
ID1ID1 1000H~1040H1000H~1040H
ID2ID2 2000H~2040H2000H~2040H
ID3ID3 3000H~3040H3000H~3040H
……...... ……......
需要说明的是,在本发明实施例中,以上述表2所示的磁头标识与地址范围之间的对应关系为例进行说明,上述表2并不对本发明实施例构成限定。It should be noted that in the embodiment of the present invention, the correspondence relationship between the head identifier and the address range shown in Table 2 above is taken as an example, and the above Table 2 does not limit the embodiment of the present invention.
另外,不同类型的磁盘具有不同类型的数据地址,也即是,不同类型的磁盘,磁头所访问的地址信息的类型也不同,比如,当磁盘的类型为HDD(Hard Disk Drive,机械硬盘)时,磁头所访问的地址信息的类型可以为LBA(Logical Block Address,逻辑区块地址),而当磁盘的类型为SMR(Shingled Magnetic Recording,叠瓦式磁记录)时,磁头所访问的地址信息的类型可以为LBA,也可以为ZONE(区域),本发明实施例对此不做具体限定。 In addition, different types of disks have different types of data addresses, that is, different types of disks, and the types of address information accessed by the heads are different, for example, when the type of the disk is HDD (Hard Disk Drive). The type of address information accessed by the head may be LBA (Logical Block Address), and when the type of the disk is SMR (Shingled Magnetic Recording), the address information accessed by the head The type may be an LBA or a ZONE. The embodiment of the present invention does not specifically limit this.
其中,当上层系统获取到目标磁盘的映射信息之后,该上层系统可以将该目标磁盘包括的多个盘片的元数据进行备份,具体如下。After the upper layer system obtains the mapping information of the target disk, the upper layer system may back up the metadata of the plurality of disks included in the target disk, as follows.
步骤302:获取该目标磁盘包括的多个盘片的元数据,并对于该多个元数据中的每个元数据,基于该元数据所描述的数据地址和该映射信息,确定该元数据对应磁头的元数据备份位置。Step 302: Obtain metadata of a plurality of disks included in the target disk, and determine, for each metadata in the plurality of metadata, a metadata corresponding to the metadata address and the mapping information. The metadata backup location of the head.
为了对元数据进行备份,上层系统需要基于该元数据所描述的数据地址和映射信息,确定该元数据对应磁头的元数据备份位置。而上层系统基于该元数据所描述的数据地址和该映射信息,确定该元数据对应磁头的元数据备份位置的操作可以为:基于该元数据所描述的数据地址,确定该数据地址所在的地址信息;基于确定的地址信息,从存储的磁头标识与地址信息之间的对应关系中,获取对应的磁头标识;基于获取的磁头标识,确定该元数据对应磁头的元数据备份位置。In order to back up the metadata, the upper layer system needs to determine the metadata backup location of the metadata corresponding to the head based on the data address and mapping information described by the metadata. The upper layer system determines, according to the data address and the mapping information described by the metadata, the operation of the metadata backup location of the metadata corresponding to the magnetic head: determining an address of the data address based on the data address described by the metadata And determining, according to the determined address information, a corresponding head identifier from the stored correspondence between the head identifier and the address information; and determining, according to the acquired head identifier, a metadata backup position of the metadata corresponding to the head.
其中,当上层系统获取该目标磁盘包括的多个盘片的元数据时,该上层系统可以基于该目标磁盘包括的多个盘片中存储的有效数据进行生成,从而得到该目标磁盘包括的多个盘片的元数据,每个盘片的元数据用于对该盘片中存储的数据的数据地址和属性信息进行描述。从而由于元数据是基于盘片中存储的有效数据进行生成的,因此,该元数据所描述的数据地址为该盘片中存储的有效数据的存储地址。When the upper layer system obtains the metadata of the plurality of disks included in the target disk, the upper layer system may generate the valid data stored in the plurality of disks included in the target disk, thereby obtaining the target disk. The metadata of each disc, the metadata of each disc is used to describe the data address and attribute information of the data stored in the disc. Thus, since the metadata is generated based on the valid data stored in the disc, the data address described by the metadata is the storage address of the valid data stored in the disc.
上述步骤301中提到地址信息可以包括起始地址和偏移地址,还可以包括地址范围,因此,当地址信息不同时,上层系统基于该元数据所描述的数据地址,确定该数据地址所在的地址信息的操作也不同,下面将分两种情况对数据地址所在地址信息的确定操作进行说明:The address information mentioned in the above step 301 may include a start address and an offset address, and may further include an address range. Therefore, when the address information is different, the upper layer system determines the data address based on the data address described by the metadata. The operation of the address information is also different. The following describes the operation of determining the address information of the data address in two cases:
第一种、当地址信息包括起始地址和偏移地址时,上层系统可以获取存储的磁头标识、起始地址和偏移地址之间的对应关系所包括的起始地址和偏移地址,得到多个起始地址和该多个起始地址对应的偏移地址,从该多个起始地址和该多个起始地址对应的偏移地址中,选择该元数据所描述的数据地址所在的起始地址和偏移地址,将选择的起始地址和偏移地址确定为该数据地址所在的地址信息。The first type, when the address information includes the start address and the offset address, the upper layer system may obtain the start address and the offset address included in the correspondence between the stored head identifier, the start address, and the offset address, and obtain And a plurality of start addresses and an offset address corresponding to the plurality of start addresses, and selecting, from the plurality of start addresses and the offset addresses corresponding to the plurality of start addresses, the data address described by the metadata The start address and the offset address determine the selected start address and offset address as the address information of the data address.
其中,上层系统从该多个起始地址和该多个起始地址对应的偏移地址中,选择该元数据所描述的数据地址所在的起始地址和偏移地址的操作可以为:对于该多个起始地址中的每个起始地址,将该起始地址和该起始地址对应的偏移 地址相加,得到结束地址,将该元数据所描述的数据地址与该起始地址进行比较,以及将该元数据所描述的数据地址与该结束地址进行比较,当该数据地址大于或等于起始地址且小于或等于结束地址时,将该起始地址和该起始地址对应的偏移地址确定为该元数据所描述的数据地址所在的起始地址和偏移地址。The operation of selecting, by the upper layer system, the start address and the offset address of the data address described by the metadata from the multiple start addresses and the offset addresses corresponding to the multiple start addresses may be: Each of the plurality of start addresses, the offset corresponding to the start address and the start address Adding addresses, obtaining an end address, comparing the data address described by the metadata with the start address, and comparing the data address described by the metadata with the end address, when the data address is greater than or equal to When the start address is less than or equal to the end address, the start address and the offset address corresponding to the start address are determined as the start address and the offset address where the data address described by the metadata is located.
或者,对于该多个起始地址中的每个起始地址,将该元数据所描述的数据地址减去该起始地址,得到地址差值,如果该地址差值为正数且小于或等于该起始地址对应的偏移地址,则将该起始地址和该起始地址对应的偏移地址确定为该元数据所描述的数据地址所在的起始地址和偏移地址。Or, for each of the plurality of start addresses, subtracting the start address from the data address described by the metadata to obtain an address difference, if the address difference is a positive number and less than or equal to The offset address corresponding to the start address is determined by the start address and the offset address corresponding to the start address as the start address and the offset address where the data address described by the metadata is located.
比如,该元数据所描述的数据地址为1040H,上层系统获取存储的磁头标识、起始地址和偏移地址之间的对应关系所包括的起始地址和偏移地址,得到多个起始地址分别为1000H、2000H、3000H,且3个起始地址对应的偏移地址都为0040H,将该3个起始地址1000H、2000H、3000H分别与各自对应的偏移地址0040H相加,得到各自对应的结束地址分别为1040H、2040H、3040H,将该元数据所描述的数据地址1040H和起始地址1000H进行比较,以及将该元数据所描述的数据地址1040H与结束地址1040H进行比较,确定数据地址1040H大于起始地址1000H且等于结束地址1040H;将该元数据所描述的数据地址1040H和起始地址2000H进行比较,以及将该元数据所描述的数据地址1040H与结束地址2040H进行比较,得到数据地址1040H小于起始地址2000H且小于结束地址2040H;将该元数据所描述的数据地址1040H和起始地址3000H进行比较,以及将该元数据所描述的数据地址1040H与结束地址3040H进行比较,得到数据地址1040H小于起始地址3000H且小于结束地址3040H;因此,将该起始地址1000H和该起始地址对应的偏移地址0040H确定为该元数据所描述的数据地址1040H所在的起始地址和偏移地址。For example, the data address described by the metadata is 1040H, and the upper layer system obtains the start address and the offset address included in the correspondence between the stored head identifier, the start address, and the offset address, and obtains multiple start addresses. 1000H, 2000H, 3000H, and the offset addresses corresponding to the three start addresses are 0040H, and the three start addresses 1000H, 2000H, and 3000H are respectively added to the corresponding offset addresses 0040H, and the corresponding addresses are obtained. The end addresses are 1040H, 2040H, 3040H, respectively, and the data address 1040H described by the metadata is compared with the start address 1000H, and the data address 1040H described by the metadata is compared with the end address 1040H to determine the data address. 1040H is greater than the start address 1000H and equal to the end address 1040H; the data address 1040H described by the metadata is compared with the start address 2000H, and the data address 1040H described by the metadata is compared with the end address 2040H to obtain data. The address 1040H is smaller than the start address 2000H and smaller than the end address 2040H; the data address 1040H and the start address 3000H described by the metadata Comparing, and comparing the data address 1040H described by the metadata with the end address 3040H, obtaining that the data address 1040H is smaller than the start address 3000H and smaller than the end address 3040H; therefore, the start address 1000H corresponds to the start address The offset address 0040H is determined as the start address and offset address where the data address 1040H described by the metadata is located.
或者,对于起始地址1000H、2000H、3000H,将该元数据所描述的数据地址1040H减去起始地址1000H,得到地址差值为0040H,该地址差值为正数且等于起始地址1000H对应的偏移地址0040H;将该元数据所描述的数据地址1040H减去起始地址2000H,得到地址差值为-0960H,该地址差值为负数且小于起始地址2000H对应的偏移地址0040H;将该元数据所描述的数据地址1040H减去起始地址3000H,得到地址差值为-1960H,该地址差值为负数且小于起始地址1000H对应的偏移地址0040H;因此,将该起始地址1000H和该起始地址对应的偏移地址0040H确定为该元数据所描述的数据地址所在的起 始地址和偏移地址。Or, for the starting address 1000H, 2000H, 3000H, the data address 1040H described by the metadata is subtracted from the starting address 1000H, and the address difference is 0040H, and the address difference is a positive number and is equal to the starting address 1000H. Offset address 0040H; the data address 1040H described by the metadata is subtracted from the start address 2000H, and the address difference is -0960H, the address difference is negative and less than the offset address 0040H corresponding to the start address 2000H; The data address 1040H described by the metadata is subtracted from the start address 3000H, and the address difference is -1960H, and the address difference is a negative number and is smaller than the offset address 0040H corresponding to the start address 1000H; therefore, the start The address 1000H and the offset address 0040H corresponding to the start address are determined to be the data address described by the metadata. Start address and offset address.
第二种、当地址信息包括地址范围时,上层系统可以获取存储的磁头标识与地址范围之间的对应关系所包括的地址范围,得到多个地址范围,从该多个地址范围中,选择该元数据所描述的数据地址所在的地址范围,将选择的地址范围确定为该数据地址所在的地址信息。Second, when the address information includes the address range, the upper layer system may obtain the address range included in the correspondence between the stored head identifier and the address range, and obtain multiple address ranges, and select the multiple address ranges from the multiple address ranges. The address range in which the data address described by the metadata is located determines the selected address range as the address information of the data address.
其中,上层系统从该个地址范围中,选择该元数据所描述的数据地址所在的地址范围的操作可以为:对于该多个地址范围中的每个地址范围,该上层系统将该地址范围的起始地址与该元数据所描述的数据地址进行比较,以及将该地址范围的结束地址与该元数据所描述的数据地址进行比较,当该数据地址大于或等于该地址范围的起始地址且小于或等于该地址范围的结束地址时,将该地址范围确定为该元数据所描述的数据地址所在的地址范围。The operation of the upper layer system from the address range to select the address range in which the data address described by the metadata is located may be: for each address range in the multiple address ranges, the upper layer system of the address range The start address is compared with the data address described by the metadata, and the end address of the address range is compared with the data address described by the metadata, when the data address is greater than or equal to the start address of the address range and When the end address of the address range is less than or equal to, the address range is determined as the address range in which the data address described by the metadata is located.
比如,该元数据所描述的数据地址为1040H,该多个地址范围中的每个地址范围分别为1000H~1040H、2000~2040H、3000H~3040H,该上层系统将地址范围1000H~1040H的起始地址1000H与数据地址1040H进行比较,以及将该地址范围1000H~1040H的结束地址1040H与数据地址1040H进行比较,确定数据地址1040H大于起始地址1000H且等于1040H;将地址范围2000H~2040H的起始地址2000H与数据地址1040H进行比较,以及将该地址范围2000H~2040H的结束地址2040H与数据地址1040H进行比较,确定数据地址1040H小于起始地址2000H且小于结束地址2040H;将地址范围3000H~3040H的起始地址3000H与数据地址3040H进行比较,以及将该地址范围3000H~3040H的结束地址3040H与数据地址1040H进行比较,确定数据地址1040H小于起始地址3000H且小于结束地址3040H,因此,可以将地址范围1000H~1040H确定为该元数据所描述的数据地址1040H所在的地址范围。For example, the data address described by the metadata is 1040H, and each of the multiple address ranges is 1000H-1040H, 2000-2040H, 3000H-3040H, and the upper layer system starts the address range 1000H-1040H. The address 1000H is compared with the data address 1040H, and the end address 1040H of the address range 1000H-1040H is compared with the data address 1040H, and it is determined that the data address 1040H is greater than the start address 1000H and equal to 1040H; the start of the address range 2000H-2040H The address 2000H is compared with the data address 1040H, and the end address 2040H of the address range 2000H-2040H is compared with the data address 1040H, and it is determined that the data address 1040H is smaller than the start address 2000H and smaller than the end address 2040H; and the address range is 3000H to 3040H. The start address 3000H is compared with the data address 3040H, and the end address 3040H of the address range 3000H to 3040H is compared with the data address 1040H, and it is determined that the data address 1040H is smaller than the start address 3000H and smaller than the end address 3040H, and therefore, the address can be The range 1000H to 1040H is determined as the data address 10 described by the metadata. The address range in which 40H is located.
另外,上层系统基于获取的磁头标识,确定该元数据对应磁头的元数据备份位置的操作可以为:该上层系统基于获取的磁头标识,查询元数据备份策略,从而确定该元数据对应磁头的元数据备份位置,其中,元数据备份策略可以包括磁头标识与元数据备份位置之间的对应关系。In addition, the upper layer system determines, according to the obtained head identifier, that the metadata corresponding to the metadata backup position of the magnetic head may be: the upper layer system queries the metadata backup strategy based on the acquired head identifier, thereby determining the metadata corresponding to the head of the metadata. The data backup location, wherein the metadata backup policy may include a correspondence between the head identification and the metadata backup location.
需要说明的是,元数据备份策略用于确定元数据备份位置,且元数据备份策略可以事先设置,比如,元数据备份策略可以是将元数据备份到该元数据对应磁头所在磁盘中的其他盘片、其他磁盘、其他可存储介质等,本发明实施例对此不做具体限定。 It should be noted that the metadata backup policy is used to determine the metadata backup location, and the metadata backup policy may be set in advance. For example, the metadata backup policy may be to back up the metadata to other disks in the disk where the metadata corresponding to the head is located. The embodiment of the present invention does not specifically limit the slice, other disks, and other storable media.
步骤303:将该元数据写入确定的元数据备份位置中,以对该元数据进行备份。Step 303: Write the metadata into the determined metadata backup location to back up the metadata.
进一步地,当上层系统将该元数据写入确定的元数据备份位置时,该上层系统还可以确定该元数据对应磁头标识,并将该元数据写入该目标磁盘中该磁头标识对应的盘片中。Further, when the upper layer system writes the metadata to the determined metadata backup location, the upper layer system may further determine the metadata corresponding to the head identifier, and write the metadata to the disk corresponding to the head identifier in the target disk. In the film.
其中,由于元数据是对盘片中存储的数据进行描述的数据,因此,对于目标磁盘包括的多个盘片中的每个盘片,当该盘片中存储的数据变化时,该盘片对应的元数据也会发生变化,因此,该上层系统可以对该盘片对应元数据备份位置中的元数据进行更新。而对该盘片对应元数据备份位置中的元数据进行更新的操作可以为:上层系统接收目标磁盘发送的元数据更新指令,该元数据更新指令中携带更新磁头标识和更新后的元数据,该上层系统基于该更新磁头标识,确定更新后的元数据对应磁头的元数据备份位置,将该元数据备份位置中存储的元数据替换为更新后的元数据。Wherein, since the metadata is data describing the data stored in the disc, for each of the plurality of discs included in the target disk, when the data stored in the disc changes, the disc The corresponding metadata also changes, so the upper layer system can update the metadata in the corresponding metadata backup location of the disc. The operation of updating the metadata in the corresponding metadata backup location of the disk may be: the upper layer system receives a metadata update instruction sent by the target disk, where the metadata update instruction carries the updated head identifier and the updated metadata, The upper layer system determines, based on the updated head identifier, the metadata backup location of the updated metadata corresponding to the head, and replaces the metadata stored in the metadata backup location with the updated metadata.
需要说明的是,元数据更新指令用于对发生变化的元数据进行更新,更新磁头标识为发生变化的元数据对应磁头的标识,且更新磁头标识可以为磁头的编号、名称等等,本发明实施例对此不做具体限定。It should be noted that the metadata update instruction is used to update the changed metadata, update the identifier of the head corresponding to the changed metadata of the head, and the updated head identifier may be the number, name, etc. of the magnetic head, and the present invention. The embodiment does not specifically limit this.
步骤304:接收磁头故障通知信息,该磁头故障通知信息携带故障磁头标识。Step 304: Receive magnetic head failure notification information, and the magnetic head failure notification information carries a faulty magnetic head identifier.
当目标磁盘中某个磁头发生故障时,该故障磁头所在的目标磁盘向上层系统发送磁头故障通知信息,通过该磁头故障通知信息,通知上层系统该磁头发生故障,上层系统基于该磁头故障信息,确定故障磁头。When a head of the target disk fails, the target disk where the fault head is located sends a head fault notification information to the upper layer system, and the head fault notification information is used to notify the upper system that the head is faulty, and the upper layer system is based on the head fault information. Determine the faulty head.
其中,当目标磁盘确定磁头无法访问对应目标盘片中存储的数据时,确定该磁头发生故障,且故障磁头标识为发生故障磁头的标识,该故障磁头标识可以为该故障磁头的编号、该故障磁头的名称等等,本发明实施例对此不做具体限定。Wherein, when the target disk determines that the magnetic head cannot access the data stored in the corresponding target disk, it is determined that the magnetic head is faulty, and the faulty magnetic head is identified as an identifier of the faulty magnetic head, and the faulty magnetic head identifier may be the number of the faulty magnetic head, the fault The name of the magnetic head and the like are not specifically limited in the embodiment of the present invention.
需要说明的是,目标磁盘向上层系统发送磁头故障信息时,可以是通过上层系统中的指令来发送,比如,该指令可以为Read、Write等指令,还可以为Test Unit Ready、Inquiry等指令,本发明实施例对此不做具体限定。It should be noted that when the target disk sends the head fault information to the upper layer system, it may be sent through an instruction in the upper layer system. For example, the instruction may be a command such as Read or Write, or may be an instruction such as Test Unit Ready or Inquiry. This embodiment of the present invention does not specifically limit this.
步骤305:基于该故障磁头标识,确定目标元数据备份位置,该目标元数据备份位置存储有故障磁头的元数据,且每个磁头预先均设置有一个元数据备份位置。 Step 305: Determine, according to the fault head identifier, a target metadata backup location, where the target metadata backup location stores metadata of the faulty head, and each of the magnetic heads is previously provided with a metadata backup location.
为了快速地修复故障磁头对应目标盘片中存储的数据,上层系统需要获取该目标盘片中存储的数据的元数据,而获取元数据之前需要基于该故障磁头标识,确定目标元数据备份位置。且上层系统基于该故障磁头标识,确定目标元数据备份位置的操作可以为:该上层系统基于该故障磁头标识,查询元数据备份策略,从而确定该故障磁头的元数据备份位置,将该故障磁头的元数据备份位置确定为目标元数据备份位置。In order to quickly repair the data stored in the target disk corresponding to the faulty head, the upper layer system needs to acquire the metadata of the data stored in the target disk, and before the metadata is acquired, the target metadata backup location needs to be determined based on the faulty head identifier. And the upper layer system determines, according to the fault head identifier, the operation of the target metadata backup location: the upper layer system queries the metadata backup policy based on the fault head identifier, thereby determining a metadata backup location of the fault head, and the fault head is The metadata backup location is determined as the target metadata backup location.
步骤306:从该目标元数据备份位置中,获取该故障磁头对应的元数据,该元数据用于对目标盘片中存储的数据的数据地址和属性信息进行描述。Step 306: Obtain metadata corresponding to the faulty magnetic head from the target metadata backup location, where the metadata is used to describe data address and attribute information of data stored in the target disk.
具体地,上层系统可以读取该目标元数据备份位置中存储的数据,并将读取的数据确定该为故障磁头对应的元数据。Specifically, the upper layer system can read the data stored in the target metadata backup location, and determine the read data as the metadata corresponding to the faulty head.
步骤307:基于获取的元数据所描述的属性信息,对该目标盘片中存储的数据进行修复。Step 307: Repair the data stored in the target disc based on the attribute information described by the acquired metadata.
具体地,上层系统基于获取的元数据所描述的属性信息,重新构建该目标盘片中存储的数据,并确定目标盘片的数据修复位置,并将重新构建的数据写入给数据修复位置中,从而完成对该目标盘片中存储的数据的修复。Specifically, the upper layer system reconstructs the data stored in the target disk based on the attribute information described by the acquired metadata, determines the data repair location of the target disk, and writes the reconstructed data to the data repair location. , thereby completing the repair of the data stored in the target disc.
其中,上层系统确定目标盘片的数据修复位置的操作可以为:该上层系统可以基于目标盘片标识,从存储的盘片标识与数据修复位置之间的对应关系中,获取对应的数据修复位置,将获取的修复位置确定为该目标盘片的数据修复位置。The operation of the upper layer system to determine the data repair location of the target disk may be: the upper layer system may obtain the corresponding data repair location from the corresponding relationship between the stored disk identifier and the data repair location based on the target disk identifier. , the obtained repair location is determined as the data repair location of the target disc.
需要说明的是,目标盘片标识为目标盘片的标识,且目标盘片标识可以为目标盘片的编号、名称等等,本发明实施例对此不做具体限定。It should be noted that the target disc is identified as the identifier of the target disc, and the target disc identifier may be the number, the name, and the like of the target disc, which is not specifically limited in this embodiment of the present invention.
进一步地,在上层系统将目标盘片中存储的数据修复完成后,该上层系统可以对故障磁头进行标记,以标识该故障磁头已故障。Further, after the upper layer system repairs the data stored in the target disk, the upper layer system can mark the faulty head to identify that the faulty head has failed.
其中,上层系统对故障磁头进行标记的操作可以为:对故障磁头所访问的地址信息进行释放,或者屏蔽该故障磁头所访问的地址信息,本发明实施例对此不做具体限定。The operation of marking the faulty magnetic head in the upper layer system may be: releasing the address information accessed by the faulty magnetic head, or shielding the address information accessed by the faulty magnetic head, which is not specifically limited in this embodiment of the present invention.
另外,为了实现上层系统对目标磁盘的进一步管理,上层系统对目标盘片中存储的数据修复完成后,上层系统还可以向目标磁盘发送容量刷新指令,使该目标磁盘确定目标磁盘新容量,以刷新该目标磁盘的容量,目标磁盘新容量为刷新之后该目标磁盘的容量。In addition, in order to achieve further management of the target disk by the upper layer system, after the upper layer system repairs the data stored in the target disk, the upper layer system may further send a capacity refresh instruction to the target disk, so that the target disk determines the new capacity of the target disk, The capacity of the target disk is refreshed, and the new capacity of the target disk is the capacity of the target disk after the refresh.
具体地,上层系统可以向目标磁盘发送容量刷新指令,当目标磁盘接收到 该容量刷新指令时,可以将磁盘总容量减去目标盘片的容量,得到目标磁盘新容量。Specifically, the upper layer system may send a capacity refresh instruction to the target disk, when the target disk receives When the capacity refresh command is executed, the total disk capacity can be subtracted from the target disk capacity to obtain the new capacity of the target disk.
进一步地,当目标磁盘确定目标磁盘新容量之后,该目标磁盘还可以将目标磁盘新容量发送给上层系统,方便上层系统对目标磁盘的容量进行管理。Further, after the target disk determines the new capacity of the target disk, the target disk can also send the new capacity of the target disk to the upper layer system, so that the upper layer system can manage the capacity of the target disk.
在本发明实施例中,上层系统在获取目标磁盘的映射信息后,根据元数据备份策略备份目标磁盘中的元数据,当磁头发生故障时,上层系统可以基于目标磁盘的映射信息和目标元数据备份位置,快速地修复故障磁头对应目标盘片中存储的数据,也即是,当磁头发生故障时,上层系统可以只修复该故障磁头对应盘片中存储的数据,而无需将整个磁盘中存储的数据进行修复,从而在无需格式化目标磁盘的情况下仍然可以继续使用该目标磁盘,降低了上层系统数据修复的代价,减少了数据修复的时间,提高了数据修复的效率。In the embodiment of the present invention, after acquiring the mapping information of the target disk, the upper layer system backs up the metadata in the target disk according to the metadata backup strategy. When the head fails, the upper layer system may be based on the mapping information and target metadata of the target disk. The backup location quickly repairs the data stored in the target disk corresponding to the failed head, that is, when the head fails, the upper system can repair only the data stored in the corresponding disk of the failed head without storing the entire disk. The data is repaired, so that the target disk can still be used without formatting the target disk, which reduces the cost of data recovery of the upper system, reduces the time for data repair, and improves the efficiency of data repair.
图4是根据一示例性实施例示出的一种数据修复装置的结构示意图。参照图4,该装置包括接收模块401、第一确定模块402、第一获取模块403和修复模块404。FIG. 4 is a schematic structural diagram of a data repair apparatus according to an exemplary embodiment. Referring to FIG. 4, the apparatus includes a receiving module 401, a first determining module 402, a first obtaining module 403, and a repairing module 404.
接收模块401,用于接收磁头故障通知信息,该磁头故障通知信息携带故障磁头标识;The receiving module 401 is configured to receive a magnetic head failure notification information, where the magnetic head failure notification information carries a faulty magnetic head identifier;
第一确定模块402,用于基于该故障磁头标识,确定目标元数据备份位置,该目标元数据备份位置存储有故障磁头的元数据,每个磁头预先均设置有一个元数据备份位置;The first determining module 402 is configured to determine, according to the faulty magnetic head identifier, a target metadata backup location, where the target metadata backup location stores metadata of the faulty magnetic head, and each of the magnetic heads is preset with a metadata backup location;
第一获取模块403,用于从该目标元数据备份位置中,获取该故障磁头对应的元数据,所该元数据用于对目标盘片中存储的数据的数据地址和属性信息进行描述,该目标盘片为该故障磁头所访问的盘片;The first obtaining module 403 is configured to obtain, from the target metadata backup location, metadata corresponding to the faulty magnetic head, where the metadata is used to describe a data address and attribute information of data stored in the target disk. The target disc is a disc accessed by the faulty head;
修复模块404,用于基于获取的元数据所描述的属性信息,对该目标盘片中存储的数据进行修复。The repairing module 404 is configured to repair the data stored in the target disc based on the attribute information described by the acquired metadata.
可选地,参见图5,该装置还包括:Optionally, referring to FIG. 5, the apparatus further includes:
第二获取模块405,用于获取目标磁盘的映射信息,该映射信息用于标识该目标磁盘包括的多个磁头分别所访问的地址信息,该目标磁盘为该目标盘片和该故障磁头所在的磁盘;The second obtaining module 405 is configured to obtain mapping information of the target disk, where the mapping information is used to identify address information accessed by the plurality of magnetic heads included in the target disk, where the target disk is the target disk and the fault head is located Disk
第三获取模块406,用于获取所述目标磁盘包括的多个盘片的元数据;a third obtaining module 406, configured to acquire metadata of multiple disks included in the target disk;
第二确定模块407,用于对于该多个元数据中的每个元数据,基于该元数 据所描述的数据地址和该映射信息,确定该元数据对应磁头的元数据备份位置;a second determining module 407, configured to calculate, according to the metadata for each of the plurality of metadata Determining, according to the described data address and the mapping information, a metadata backup location of the metadata corresponding to the magnetic head;
备份模块408,用于将该元数据写入确定的元数据备份位置中,以对该元数据进行备份。The backup module 408 is configured to write the metadata into the determined metadata backup location to back up the metadata.
可选地,参见图6,第二获取模块405包括:Optionally, referring to FIG. 6, the second obtaining module 405 includes:
发送单元4051,用于向该目标磁盘发送映射信息获取指令,使该目标磁盘返回该目标磁盘包括的多个磁头分别所访问的地址信息;The sending unit 4051 is configured to send a mapping information obtaining instruction to the target disk, so that the target disk returns address information accessed by the plurality of magnetic heads included in the target disk respectively;
存储单元4052,用于当接收到该目标磁盘返回的该多个磁头分别所访问的地址信息时,将该多个磁头的磁头标识和该多个磁头分别所访问的地址信息,存储在磁头标识与地址信息之间的对应关系中。The storage unit 4052 is configured to: when receiving the address information accessed by the plurality of magnetic heads returned by the target disk, storing the head identifier of the plurality of magnetic heads and the address information accessed by the plurality of magnetic heads respectively in the head identifier In the correspondence with the address information.
可选地,参见图7,第二确定模块407包括:Optionally, referring to FIG. 7, the second determining module 407 includes:
第一确定单元4071,用于基于该元数据所描述的数据地址,确定该数据地址所在的地址信息;The first determining unit 4071 is configured to determine address information of the data address based on the data address described by the metadata;
获取单元4072,用于基于确定的地址信息,从存储的磁头标识与地址信息之间的对应关系中,获取对应的磁头标识;The obtaining unit 4072 is configured to obtain, according to the determined address information, a corresponding head identifier from a correspondence between the stored head identifier and the address information;
第二确定单元4073,用于基于获取的磁头标识,确定该元数据对应磁头的元数据备份位置。The second determining unit 4073 is configured to determine, according to the acquired head identifier, a metadata backup location of the metadata corresponding to the magnetic head.
可选地,该装置还包括:Optionally, the device further includes:
标记模块,用于对该故障磁头进行标记,以标识该故障磁头已故障。A marking module for marking the faulty head to identify that the faulty head has failed.
可选地,该装置还包括:Optionally, the device further includes:
发送模块,用于向目标磁盘发送容量刷新指令,使该目标磁盘确定目标磁盘新容量,以刷新该目标磁盘的容量,该目标磁盘新容量为刷新之后该目标磁盘的容量。The sending module is configured to send a capacity refresh command to the target disk, so that the target disk determines a new capacity of the target disk to refresh the capacity of the target disk, and the new capacity of the target disk is the capacity of the target disk after the refresh.
综上所述,本发明实施例中,当上层系统接收到磁头故障信息后,可从目标元数据备份位置,获取故障磁头对应的元数据,并基于获取的元数据,快速地修复故障磁头对应目标盘片中存储的数据,从而在无需格式化目标磁盘的情况下仍然可以继续使用该目标磁盘,降低了上层系统数据修复的代价,减少了数据修复的时间,提高了数据修复的效率。In summary, in the embodiment of the present invention, when the upper layer system receives the head fault information, the metadata corresponding to the fault head can be obtained from the target metadata backup position, and the fault head is quickly repaired based on the acquired metadata. The data stored in the target platter, so that the target disk can continue to be used without formatting the target disk, which reduces the cost of data recovery of the upper layer system, reduces the time for data repair, and improves the efficiency of data repair.
需要说明的是:上述实施例提供的数据修复装置在进行修复数据时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功 能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的数据修复装置和数据修复方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that, in the data repairing apparatus provided by the foregoing embodiment, only the division of each functional module described above is performed when performing repair data, and in actual application, the above-mentioned work may be performed as needed. The allocation can be done by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the embodiment of the data repair apparatus and the data repair method provided by the foregoing embodiments are the same concept, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
参见图8,本发明实施例提供了一种数据修复设备,该设备包括:处理器801、存储器802、总线803和通信接口808;Referring to FIG. 8, an embodiment of the present invention provides a data repair device, which includes: a processor 801, a memory 802, a bus 803, and a communication interface 808;
存储器802用于存储计算机执行指令8021,处理器801与存储器802通过该总线803连接,当数据存储装置运行时,处理器801执行存储器802存储的计算机执行指令,以使指令处理设备执行下述数据修复方法,包括:The memory 802 is configured to store a computer execution instruction 8021 through which the processor 801 and the memory 802 are connected. When the data storage device is in operation, the processor 801 executes a computer execution instruction stored in the memory 802 to cause the instruction processing device to execute the following data. Repair methods, including:
接收磁头故障通知信息,所述磁头故障通知信息携带故障磁头标识;Receiving a head failure notification information, wherein the head failure notification information carries a fault head identifier;
基于所述故障磁头标识,确定目标元数据备份位置,所述目标元数据备份位置存储有故障磁头的元数据,每个磁头预先均设置有一个元数据备份位置;Determining, according to the faulty magnetic head identifier, a target metadata backup location, where the target metadata backup location stores metadata of the faulty magnetic head, and each of the magnetic heads is provided with a metadata backup location in advance;
从所述目标元数据备份位置中,获取所述故障磁头对应的元数据,所述元数据用于对目标盘片中存储的数据的数据地址和属性信息进行描述,所述目标盘片为所述故障磁头所访问的盘片;Obtaining, from the target metadata backup location, metadata corresponding to the faulty magnetic head, where the metadata is used to describe a data address and attribute information of data stored in a target disc, where the target disc is Describe the disk accessed by the faulty head;
基于获取的元数据所描述的属性信息,对所述目标盘片中存储的数据进行修复。The data stored in the target disc is repaired based on the attribute information described by the acquired metadata.
可选地,所述从所述目标元数据备份位置中,获取所述故障磁头对应的元数据之前,还包括:Optionally, before the obtaining the metadata corresponding to the faulty head from the target metadata backup location, the method further includes:
获取目标磁盘的映射信息,所述映射信息用于标识所述目标磁盘包括的多个磁头分别所访问的地址信息,所述目标磁盘为所述目标盘片和所述故障磁头所在的磁盘;Obtaining mapping information of the target disk, where the mapping information is used to identify address information accessed by the plurality of magnetic heads included in the target disk, where the target disk is the target disk and the disk where the faulty head is located;
获取所述目标磁盘包括的多个盘片的元数据;Obtaining metadata of a plurality of disks included in the target disk;
对于所述多个元数据中的每个元数据,基于所述元数据所描述的数据地址和所述映射信息,确定所述元数据对应磁头的元数据备份位置;Determining, for each of the plurality of metadata, a metadata backup location of the metadata corresponding to the head based on the data address and the mapping information described by the metadata;
将所述元数据写入确定的元数据备份位置中,以对所述元数据进行备份。The metadata is written into the determined metadata backup location to back up the metadata.
可选地,所述获取目标磁盘的映射信息,包括:Optionally, the acquiring mapping information of the target disk includes:
向所述目标磁盘发送映射信息获取指令,使所述目标磁盘返回所述目标磁盘包括的多个磁头分别所访问的地址信息;Sending a mapping information obtaining instruction to the target disk, so that the target disk returns address information accessed by the plurality of magnetic heads included in the target disk respectively;
当接收到所述目标磁盘返回的所述多个磁头分别所访问的地址信息时,将 所述多个磁头的磁头标识和所述多个磁头分别所访问的地址信息,存储在磁头标识与地址信息之间的对应关系中。When receiving the address information accessed by the plurality of magnetic heads returned by the target disk, respectively The head identification of the plurality of magnetic heads and the address information respectively accessed by the plurality of magnetic heads are stored in a correspondence relationship between the head identification and the address information.
可选地,所述基于所述元数据所描述的数据地址和所述映射信息,确定所述元数据对应磁头的元数据备份位置,包括:Optionally, the determining, according to the data address and the mapping information described by the metadata, the metadata backup location of the metadata corresponding to the magnetic head, including:
基于所述元数据所描述的数据地址,确定所述数据地址所在的地址信息;Determining address information of the data address based on the data address described by the metadata;
基于确定的地址信息,从存储的磁头标识与地址信息之间的对应关系中,获取对应的磁头标识;Determining, according to the determined address information, a corresponding head identifier from a correspondence between the stored head identifier and the address information;
基于获取的磁头标识,确定所述元数据对应磁头的元数据备份位置。Based on the acquired head identification, the metadata backup location of the metadata corresponding to the head is determined.
可选地,所述基于获取的元数据所描述的属性信息,对所述目标盘片中存储的数据进行修复之后,还包括:Optionally, after the repairing the data stored in the target disk based on the attribute information described by the acquired metadata, the method further includes:
对所述故障磁头进行标记,以标识所述故障磁头已故障。The failed head is marked to identify that the failed head has failed.
可选地,所述基于获取的元数据所描述的属性信息,对所述目标盘片中存储的数据进行修复之后,还包括:Optionally, after the repairing the data stored in the target disk based on the attribute information described by the acquired metadata, the method further includes:
向目标磁盘发送容量刷新指令,使所述目标磁盘确定目标磁盘新容量,以刷新所述目标磁盘的容量,所述目标磁盘新容量为刷新之后所述目标磁盘的容量。Sending a capacity refresh command to the target disk, so that the target disk determines a new capacity of the target disk to refresh the capacity of the target disk, and the target disk new capacity is the capacity of the target disk after the refresh.
综上所述,本发明实施例中,当上层系统接收到磁头故障信息后,可通过目标元数据备份位置,获取故障磁头对应的元数据,并基于获取的元数据,快速地修复故障磁头对应目标盘片中存储的数据,从而在无需格式化目标磁盘的情况下仍然可以继续使用该目标磁盘,降低了上层系统数据修复的代价,减少了数据修复的时间,提高了数据修复的效率。In summary, in the embodiment of the present invention, after receiving the head fault information, the upper layer system can obtain the metadata corresponding to the fault head through the target metadata backup position, and quickly repair the fault head corresponding to the fault based on the acquired metadata. The data stored in the target platter, so that the target disk can continue to be used without formatting the target disk, which reduces the cost of data recovery of the upper layer system, reduces the time for data repair, and improves the efficiency of data repair.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。A person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium. The storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalents, improvements, etc., which are within the spirit and scope of the present invention, should be included in the protection of the present invention. Within the scope.

Claims (12)

  1. 一种数据修复方法,其特征在于,所述方法包括:A data repair method, characterized in that the method comprises:
    接收磁头故障通知信息,所述磁头故障通知信息携带故障磁头标识;Receiving a head failure notification information, wherein the head failure notification information carries a fault head identifier;
    基于所述故障磁头标识,确定目标元数据备份位置,所述目标元数据备份位置存储有故障磁头的元数据,每个磁头预先均设置有一个元数据备份位置;Determining, according to the faulty magnetic head identifier, a target metadata backup location, where the target metadata backup location stores metadata of the faulty magnetic head, and each of the magnetic heads is provided with a metadata backup location in advance;
    从所述目标元数据备份位置中,获取所述故障磁头对应的元数据,所述元数据用于对目标盘片中存储的数据的数据地址和属性信息进行描述,所述目标盘片为所述故障磁头所访问的盘片;Obtaining, from the target metadata backup location, metadata corresponding to the faulty magnetic head, where the metadata is used to describe a data address and attribute information of data stored in a target disc, where the target disc is Describe the disk accessed by the faulty head;
    基于获取的元数据所描述的属性信息,对所述目标盘片中存储的数据进行修复。The data stored in the target disc is repaired based on the attribute information described by the acquired metadata.
  2. 如权利要求1所述的方法,其特征在于,所述从所述目标元数据备份位置中,获取所述故障磁头对应的元数据之前,还包括:The method of claim 1, wherein the obtaining, before the obtaining the metadata corresponding to the faulty head from the target metadata backup location, the method further comprises:
    获取目标磁盘的映射信息,所述映射信息用于标识所述目标磁盘包括的多个磁头分别所访问的地址信息,所述目标磁盘为所述目标盘片和所述故障磁头所在的磁盘;Obtaining mapping information of the target disk, where the mapping information is used to identify address information accessed by the plurality of magnetic heads included in the target disk, where the target disk is the target disk and the disk where the faulty head is located;
    获取所述目标磁盘包括的多个盘片的元数据;Obtaining metadata of a plurality of disks included in the target disk;
    对于所述多个元数据中的每个元数据,基于所述元数据所描述的数据地址和所述映射信息,确定所述元数据对应磁头的元数据备份位置;Determining, for each of the plurality of metadata, a metadata backup location of the metadata corresponding to the head based on the data address and the mapping information described by the metadata;
    将所述元数据写入确定的元数据备份位置中,以对所述元数据进行备份。The metadata is written into the determined metadata backup location to back up the metadata.
  3. 如权利要求2所述的方法,其特征在于,所述获取目标磁盘的映射信息,包括:The method of claim 2, wherein the obtaining mapping information of the target disk comprises:
    向所述目标磁盘发送映射信息获取指令,使所述目标磁盘返回所述目标磁盘包括的多个磁头分别所访问的地址信息;Sending a mapping information obtaining instruction to the target disk, so that the target disk returns address information accessed by the plurality of magnetic heads included in the target disk respectively;
    当接收到所述目标磁盘返回的所述多个磁头分别所访问的地址信息时,将所述多个磁头的磁头标识和所述多个磁头分别所访问的地址信息,存储在磁头标识与地址信息之间的对应关系中。 When the address information accessed by the plurality of magnetic heads returned by the target disk is received, the head identifiers of the plurality of magnetic heads and the address information respectively accessed by the plurality of magnetic heads are stored in the head identification and address The correspondence between the information.
  4. 如权利要求2或3所述的方法,其特征在于,所述基于所述元数据所描述的数据地址和所述映射信息,确定所述元数据对应磁头的元数据备份位置,包括:The method according to claim 2 or 3, wherein the determining, based on the data address and the mapping information described by the metadata, the metadata backup location of the metadata corresponding to the magnetic head comprises:
    基于所述元数据所描述的数据地址,确定所述数据地址所在的地址信息;Determining address information of the data address based on the data address described by the metadata;
    基于确定的地址信息,从存储的磁头标识与地址信息之间的对应关系中,获取对应的磁头标识;Determining, according to the determined address information, a corresponding head identifier from a correspondence between the stored head identifier and the address information;
    基于获取的磁头标识,确定所述元数据对应磁头的元数据备份位置。Based on the acquired head identification, the metadata backup location of the metadata corresponding to the head is determined.
  5. 如权利要求1所述的方法,其特征在于,所述基于获取的元数据所描述的属性信息,对所述目标盘片中存储的数据进行修复之后,还包括:The method according to claim 1, wherein the repairing the data stored in the target disc based on the attribute information described by the acquired metadata further comprises:
    对所述故障磁头进行标记,以标识所述故障磁头已故障。The failed head is marked to identify that the failed head has failed.
  6. 如权利要求1或5所述的方法,其特征在于,所述基于获取的元数据所描述的属性信息,对所述目标盘片中存储的数据进行修复之后,还包括:The method according to claim 1 or 5, wherein after the repairing the data stored in the target disc based on the attribute information described by the acquired metadata, the method further includes:
    向目标磁盘发送容量刷新指令,使所述目标磁盘确定目标磁盘新容量,以刷新所述目标磁盘的容量,所述目标磁盘新容量为刷新之后所述目标磁盘的容量。Sending a capacity refresh command to the target disk, so that the target disk determines a new capacity of the target disk to refresh the capacity of the target disk, and the target disk new capacity is the capacity of the target disk after the refresh.
  7. 一种数据修复装置,其特征在于,所述装置包括:A data repair device, characterized in that the device comprises:
    接收模块,用于接收磁头故障通知信息,所述磁头故障通知信息携带故障磁头标识;a receiving module, configured to receive a magnetic head failure notification information, where the magnetic head failure notification information carries a faulty magnetic head identifier;
    第一确定模块,用于基于所述故障磁头标识,确定目标元数据备份位置,所述目标元数据备份位置存储有故障磁头的元数据,每个磁头预先均设置有一个元数据备份位置;a first determining module, configured to determine, according to the faulty magnetic head identifier, a target metadata backup location, where the target metadata backup location stores metadata of the faulty magnetic head, and each of the magnetic heads is preset with a metadata backup location;
    第一获取模块,用于从所述目标元数据备份位置中,获取所述故障磁头对应的元数据,所述元数据用于对目标盘片中存储的数据的数据地址和属性信息进行描述,所述目标盘片为所述故障磁头所访问的盘片;a first obtaining module, configured to acquire metadata corresponding to the faulty magnetic head from the target metadata backup location, where the metadata is used to describe a data address and attribute information of data stored in a target disk, The target disk is a disk accessed by the faulty magnetic head;
    修复模块,用于基于获取的元数据所描述的属性信息,对所述目标盘 片中存储的数据进行修复。a repair module for using the attribute information described by the acquired metadata for the target disk The data stored in the slice is repaired.
  8. 如权利要求7所述的装置,其特征在于,所述装置还包括:The device of claim 7 wherein said device further comprises:
    第二获取模块,用于获取目标磁盘的映射信息,所述映射信息用于标识所述目标磁盘包括的多个磁头分别所访问的地址信息,所述目标磁盘为所述目标盘片和所述故障磁头所在的磁盘;a second obtaining module, configured to acquire mapping information of the target disk, where the mapping information is used to identify address information accessed by the plurality of magnetic heads included in the target disk, where the target disk is the target disk and the The disk where the faulty head is located;
    第三获取模块,用于获取所述目标磁盘包括的多个盘片的元数据;a third obtaining module, configured to acquire metadata of multiple disks included in the target disk;
    第二确定模块,用于对于所述多个元数据中的每个元数据,基于所述元数据所描述的数据地址和所述映射信息,确定所述元数据对应磁头的元数据备份位置;a second determining module, configured to determine, for each metadata of the plurality of metadata, a metadata backup location of the metadata corresponding to the magnetic head based on the data address and the mapping information described by the metadata;
    备份模块,用于将所述元数据写入确定的元数据备份位置中,以对所述元数据进行备份。And a backup module, configured to write the metadata into the determined metadata backup location to back up the metadata.
  9. 如权利要求8所述的装置,其特征在于,所述第二获取模块包括:The device of claim 8, wherein the second obtaining module comprises:
    发送单元,用于向所述目标磁盘发送映射信息获取指令,使所述目标磁盘返回所述目标磁盘包括的多个磁头分别所访问的地址信息;a sending unit, configured to send a mapping information obtaining instruction to the target disk, so that the target disk returns address information accessed by the plurality of magnetic heads included in the target disk respectively;
    存储单元,用于当接收到所述目标磁盘返回的所述多个磁头分别所访问的地址信息时,将所述多个磁头的磁头标识和所述多个磁头分别所访问的地址信息,存储在磁头标识与地址信息之间的对应关系中。a storage unit, configured to store, when receiving the address information accessed by the plurality of magnetic heads returned by the target disk, address information of the plurality of magnetic heads and address information accessed by the plurality of magnetic heads respectively In the correspondence between the head identification and the address information.
  10. 如权利要求8或9所述的装置,其特征在于,所述第二确定模块包括:The device according to claim 8 or 9, wherein the second determining module comprises:
    第一确定单元,用于基于所述元数据所描述的数据地址,确定所述数据地址所在的地址信息;a first determining unit, configured to determine address information of the data address based on the data address described by the metadata;
    获取单元,用于基于确定的地址信息,从存储的磁头标识与地址信息之间的对应关系中,获取对应的磁头标识;An obtaining unit, configured to acquire, according to the determined address information, a corresponding head identifier from a correspondence between the stored head identifier and the address information;
    第二确定单元,用于基于获取的磁头标识,确定所述元数据对应磁头的元数据备份位置。And a second determining unit, configured to determine, according to the acquired head identifier, a metadata backup location of the metadata corresponding to the magnetic head.
  11. 如权利要求7所述的装置,其特征在于,所述装置还包括:The device of claim 7 wherein said device further comprises:
    标记模块,用于对所述故障磁头进行标记,以标识所述故障磁头已故 障。a marking module, configured to mark the faulty magnetic head to identify the faulty magnetic head barrier.
  12. 如权利要求7或11所述的装置,其特征在于,所述装置还包括:The device according to claim 7 or 11, wherein the device further comprises:
    发送模块,用于向目标磁盘发送容量刷新指令,使所述目标磁盘确定目标磁盘新容量,以刷新所述目标磁盘的容量,所述目标磁盘新容量为刷新之后所述目标磁盘的容量。 And a sending module, configured to send a capacity refresh command to the target disk, so that the target disk determines a new capacity of the target disk to refresh the capacity of the target disk, where the target disk new capacity is a capacity of the target disk after the refresh.
PCT/CN2016/097953 2015-09-09 2016-09-02 Data recovery method and apparatus WO2017041670A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510570793.5 2015-09-09
CN201510570793.5A CN105242985B (en) 2015-09-09 2015-09-09 Data recovery method and device

Publications (1)

Publication Number Publication Date
WO2017041670A1 true WO2017041670A1 (en) 2017-03-16

Family

ID=55040638

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/097953 WO2017041670A1 (en) 2015-09-09 2016-09-02 Data recovery method and apparatus

Country Status (2)

Country Link
CN (1) CN105242985B (en)
WO (1) WO2017041670A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105242985B (en) * 2015-09-09 2018-05-25 华为技术有限公司 Data recovery method and device
CN107656978B (en) * 2017-09-06 2021-02-12 国网上海市电力公司 Function dependence-based diverse data restoration method
CN112162876B (en) * 2020-09-18 2024-08-13 北京浪潮数据技术有限公司 Metadata restoration method, device, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193848A (en) * 2011-06-02 2011-09-21 成都市华为赛门铁克科技有限公司 Data recovery method and device for bad sector of logic unit
US20120030510A1 (en) * 2010-07-27 2012-02-02 Samsung Electronics Co., Ltd. Method to recover data sector damaged by abrupt power loss in hard disk drives
CN102495777A (en) * 2011-12-13 2012-06-13 百度在线网络技术(北京)有限公司 Hard disc failure processing method and processing device
CN103218273A (en) * 2012-01-20 2013-07-24 深圳市腾讯计算机系统有限公司 Hard disk data recovery method, server and distributed-memory system
CN105242985A (en) * 2015-09-09 2016-01-13 华为技术有限公司 Data recovery method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120030510A1 (en) * 2010-07-27 2012-02-02 Samsung Electronics Co., Ltd. Method to recover data sector damaged by abrupt power loss in hard disk drives
CN102193848A (en) * 2011-06-02 2011-09-21 成都市华为赛门铁克科技有限公司 Data recovery method and device for bad sector of logic unit
CN102495777A (en) * 2011-12-13 2012-06-13 百度在线网络技术(北京)有限公司 Hard disc failure processing method and processing device
CN103218273A (en) * 2012-01-20 2013-07-24 深圳市腾讯计算机系统有限公司 Hard disk data recovery method, server and distributed-memory system
CN105242985A (en) * 2015-09-09 2016-01-13 华为技术有限公司 Data recovery method and apparatus

Also Published As

Publication number Publication date
CN105242985A (en) 2016-01-13
CN105242985B (en) 2018-05-25

Similar Documents

Publication Publication Date Title
US9009526B2 (en) Rebuilding drive data
US7281160B2 (en) Rapid regeneration of failed disk sector in a distributed database system
US7069465B2 (en) Method and apparatus for reliable failover involving incomplete raid disk writes in a clustering system
US8433867B2 (en) Using the change-recording feature for point-in-time-copy technology to perform more effective backups
US7613946B2 (en) Apparatus, system, and method for recovering a multivolume data set
US9009428B2 (en) Data store page recovery
US20150378642A1 (en) File system back-up for multiple storage medium device
US20130103902A1 (en) Method and apparatus for implementing protection of redundant array of independent disks in file system
US7617373B2 (en) Apparatus, system, and method for presenting a storage volume as a virtual volume
EP3054626B1 (en) Data processing method and device for storage unit
KR20120140652A (en) Buffer disk in flashcopy cascade
US20040153833A1 (en) Fault tracing in systems with virtualization layers
CN101916173A (en) RAID (Redundant Array of Independent Disks) based data reading and writing method and system thereof
CN105975358A (en) Fault-tolerant method and system based on SCSI equipment
US8019953B2 (en) Method for providing atomicity for host write input/outputs (I/Os) in a continuous data protection (CDP)-enabled volume using intent log
US20140379649A1 (en) Distributed storage system and file synchronization method
WO2017143843A1 (en) Metadata recovery method and device
WO2017041670A1 (en) Data recovery method and apparatus
US20160170842A1 (en) Writing to files and file meta-data
US7529776B2 (en) Multiple copy track stage recovery in a data storage system
CN109582497B (en) Rapid emergency starting method based on dynamic data increment
CN109508140B (en) Storage resource management method and device, electronic equipment and system
US8578206B2 (en) Disk controller and disk control method
US20130031320A1 (en) Control device, control method and storage apparatus
JP6277878B2 (en) Storage device control device, storage device control method, and storage device control program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16843608

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16843608

Country of ref document: EP

Kind code of ref document: A1