WO2015196811A1 - 磁盘重映射方法、装置及电子设备 - Google Patents

磁盘重映射方法、装置及电子设备 Download PDF

Info

Publication number
WO2015196811A1
WO2015196811A1 PCT/CN2015/072668 CN2015072668W WO2015196811A1 WO 2015196811 A1 WO2015196811 A1 WO 2015196811A1 CN 2015072668 W CN2015072668 W CN 2015072668W WO 2015196811 A1 WO2015196811 A1 WO 2015196811A1
Authority
WO
WIPO (PCT)
Prior art keywords
area
disk
data
target area
bad track
Prior art date
Application number
PCT/CN2015/072668
Other languages
English (en)
French (fr)
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 WO2015196811A1 publication Critical patent/WO2015196811A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/06Addressing a physical block of locations, e.g. base addressing, module addressing, memory dedication

Definitions

  • the embodiments of the present invention relate to information storage technologies, and in particular, to a disk remapping method, device, and electronic device.
  • hard disk bad sectors are a common problem in information storage. Among them, bad sectors include hard disk magnetic media damage and hard disk logic errors.
  • RAID Redundant Arrays of Inexpensive Disks
  • the recovered data is written to the disk reserved area by RAID technology in the presence of bad sectors; then, the bad track area to the disk reserved area is established.
  • the address remapping (Remap) table therefore, if the subsequent bad channel area is accessed, the address remapping table is first queried to obtain the physical address of the recovered data in the disk reserved area, and then the data corresponding to the physical address is accessed.
  • the remapping method in the above manner recovers the data in the bad track, which tends to cause the bad track area to spread.
  • the magnetic head swings back and forth, resulting in a decrease in read and write performance.
  • Embodiments of the present invention provide a disk remapping method, apparatus, and electronic device to reduce the probability of spreading in a bad track area and improve disk read and write performance.
  • an embodiment of the present invention provides a disk remapping method, including:
  • the redundancy mechanism of the redundant array of independent disks is adopted, and the data of the area where the bad track is located is restored to the reserved area of the disk by remapping, and a cold data is determined.
  • the area is the target area;
  • the determining a cold data area as the target area includes:
  • the exchanging the reserved area and the stored data in the target area including:
  • the stored data in the buffer is moved into the target area.
  • the target area is located on a disk different from the disk in which the bad track occurs.
  • an embodiment of the present invention provides a disk remapping apparatus, including:
  • the determining module is configured to restore the data of the area where the bad track is located to the reserved area of the disk by using a redundancy mechanism of the redundant array of independent disks when a bad track occurs in the hot data area of the disk. Determining a cold data area as the target area;
  • a processing module configured to exchange the storage data in the target area determined by the reserved area and the determining module, to implement accessing the hot data by using a physical address of the target area.
  • the determining module is specifically configured to:
  • the processing module is specifically configured to:
  • the stored data in the buffer is moved into the target area.
  • the disk in the target area is different from the bad track Disk.
  • an embodiment of the present invention provides an electronic device, including: a memory and a processor connected to the memory, wherein the memory stores an execution instruction, when the write operation is received, the processor and the Communicating between the memories, the processor executing the execution instructions such that the electronic device performs the method of any of the first aspects.
  • the hot data access in the embodiment of the present invention ensures direct reading and writing performance of the disk by directly accessing the original cold data area; at the same time, the probability of bad track spreading is reduced, and the reliability of the storage system is improved.
  • Embodiment 1 is a flowchart of Embodiment 1 of a disk remapping method according to the present invention
  • FIG. 2 is a diagram showing an example of disk storage data in which no bad sectors appear
  • Figure 3 is a diagram showing an example of disk storage data after bad sectors are generated and repaired
  • FIG. 4 is a diagram showing an example of disk storage data in Embodiment 1 of a disk remapping method according to the present invention.
  • Figure 5 is a diagram showing another example of disk storage data in which no bad sectors appear
  • FIG. 6 is a diagram showing an example of disk storage data in Embodiment 2 of a disk remapping method according to the present invention.
  • FIG. 7 is a flowchart of Embodiment 3 of a disk remapping method according to the present invention.
  • Embodiment 8 is a schematic structural diagram of Embodiment 1 of a disk remapping apparatus according to the present invention.
  • FIG. 9 is a schematic structural diagram of Embodiment 1 of an electronic device according to the present invention.
  • FIG. 1 is a flowchart of Embodiment 1 of a disk remapping method according to the present invention.
  • An embodiment of the present invention provides a A disk remapping method, which can be performed by a disk remapping device, which can be integrated in a personal computer (PC), a notebook computer, a tablet computer or a personal digital assistant (PDA).
  • PC personal computer
  • PDA personal digital assistant
  • the method includes:
  • S102 Exchange storage data in the reserved area and the target area to implement access to the hot data through the physical address of the target area.
  • FIG. 2 is a diagram showing an example of disk storage data in which no bad sectors appear.
  • Figure 3 is a diagram showing an example of disk storage data after bad sectors are generated and repaired.
  • the magnetic disk 20 includes a reserved area 21, a hot data area 22, a hot data area 23, and a hot data area 24.
  • the magnetic disk 30 includes a reserved area 31, a hot data area 32, a bad track area 33, a bad track area 34, and a bad track area 35.
  • the address mapping table 36 needs to be queried first, and the repaired hot data area 32 is found, and the head of the hot data area 32 is re-created. Seek to read and write the hot data.
  • FIG. 4 is a schematic diagram of disk storage data in Embodiment 1 of the disk remapping method according to the present invention.
  • the magnetic disk 40 includes a reserved area 41, a hot data area 42, and a cold data area 43.
  • the RAID redundancy mechanism is adopted, and after the data of the area where the bad track is located is restored to the reserved area 41 by the remapping method, the cold data area 43 is determined as the target area;
  • the area 41 stores data in the target area such that the hot data is redistributed into the area of the disk 40 that can provide normal access.
  • the hot data access in the embodiment of the present invention is not indirectly performed through the address mapping table, but directly accesses the original cold data area, thereby ensuring read and write of the disk. Performance; at the same time reduce the probability of bad track spread and improve the reliability of the storage system.
  • hot data data in which the number of accesses in a limited time is greater than or equal to a preset number of times is defined as hot data
  • cold data data in which the number of accesses is less than a preset number of times in a limited time is defined as cold data, and the like, and details are not described herein again.
  • determining a cold data area as the target area may include: searching all cold data areas in the disk, comparing each cold data area, and finding an area in each cold data area that the number of times visited meets a preset condition. As the target area.
  • the storing the data in the reserved area and the target area may include: moving the storage data in the reserved area to the buffer; moving the stored data in the target area to the reserved area; and migrating the stored data in the buffer Enter the target area to achieve data interchange.
  • the buffer may be a storage device such as a memory.
  • the disk where the target area is located is different from the disk where bad sectors occur.
  • Disk 60 includes a cold data area 61; disk 70 includes a cold data area 71; and disk 80 includes a cold data area 81.
  • an example of the disk remapping is as shown in FIG. 6, that is, the data exchange is stored in the hot data area 51 and the cold data area 61, and the data exchange is stored in the hot data area 52 and the cold data area 71.
  • the hot data area 53 and the cold data area 81 store data exchanges, further increasing the selectable range of the target area, and ensuring the implementability of the disk remapping method.
  • FIG. 7 is a flowchart of Embodiment 3 of a disk remapping method according to the present invention. As shown in FIG. 7, the method may include:
  • the hot data is moved into the memory, and then the cold data is moved into the original hot data area, and finally the hot spot data in the memory is moved into the original cold data area to complete the exchange of hot and cold data.
  • the embodiment of the invention not only ensures the disk access performance after the hot data area is damaged, but also reduces the probability of bad band diffusion in the disk and improves the reliability of the storage system.
  • FIG. 8 is a schematic structural diagram of Embodiment 1 of a disk remapping apparatus according to the present invention.
  • Embodiments of the present invention provide a disk remapping device, which can be integrated into an electronic device such as a PC, a notebook computer, a tablet computer, or a PDA.
  • the disk remapping apparatus 80 includes a determination module 81 and a processing module 82.
  • the determining module 81 is configured to use a RAID redundancy mechanism to restore the data of the area where the bad track is located to the reserved area of the disk after the bad data is generated in the hot data area of the disk, and determine a cold data area as the cold data area.
  • the target area is connected to the determining module 81 for exchanging the storage data in the reserved area and the target area determined by the determining module 81 to implement accessing the hot data through the physical address of the target area.
  • the disk remapping apparatus of the embodiment of the present invention may be used to implement the technical solution of any of the foregoing method embodiments, for example, the technical solution of the method embodiment shown in FIG. 1 or FIG. No longer.
  • the determining module 81 may be specifically configured to: search all cold data areas in the disk, compare each cold data area, and find an area in each cold data area whose number of times of access meets a preset condition as the target area.
  • the processing module 82 may be specifically configured to: move the storage data in the reserved area to the buffer; move the storage data in the target area to the reserved area; and move the stored data in the buffer Go to the target area.
  • the disk where the target area is located may be different from the disk in which the bad track occurs, or may be the same as the disk in which the bad track occurs.
  • FIG. 9 is a schematic structural diagram of Embodiment 1 of an electronic device according to the present invention.
  • the electronic device 90 includes a memory 91 and a processor 92 connected to the memory 91.
  • the memory 91 stores execution instructions.
  • the processor 92 communicates with the memory 91, and the processor 92 executes the execution instructions to cause the electronic device 90 to execute the technical solution in any of the above method embodiments.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the program when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes various media that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

一种磁盘重映射方法、装置及电子设备。该磁盘重映射方法,包括:在磁盘中热数据区域发生坏道时,采用独立磁盘冗余阵列RAID的冗余机制,将所述坏道所在区域的数据通过重映射方式恢复到所述磁盘的保留区域之后,确定一冷数据区域作为目标区域(S101);交换所述保留区域与所述目标区域中的存储数据,以实现通过所述目标区域的物理地址访问所述热数据(S102)。热数据访问通过直接访问原冷数据区域,保证了磁盘的读写性能;同时降低了坏道扩散的概率,提高了存储系统的可靠性。

Description

磁盘重映射方法、装置及电子设备
本申请要求于2014年6月23日提交中国专利局、申请号为201410284344.X、发明名称为“磁盘重映射方法、装置及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明实施例涉及信息存储技术,尤其涉及一种磁盘重映射方法、装置及电子设备。
背景技术
由于硬盘采用磁介质存储信息,硬盘坏道是信息存储中常见问题。其中,坏道包括硬盘磁介质损坏和硬盘产生逻辑错误。传统的独立磁盘冗余阵列(Redundant Arrays of Inexpensive Disks,简称:RAID)中成员盘在出现坏道时,通过RAID技术将恢复的数据写入磁盘保留区域;然后,建立坏道区域到磁盘保留区域的地址重映射(Remap)表,因此,后续若对该坏道区域进行访问,将首先查询地址重映射表获得上述恢复的数据在磁盘保留区域的物理地址,再访问该物理地址对应的数据。
通过上述方式重映射方法恢复坏道中数据,易导致坏道区域扩散;另外,在读写已经发生坏道区域的数据时,磁头来回摆动,导致读写性能下降。
发明内容
本发明实施例提供一种磁盘重映射方法、装置及电子设备,以降低坏道区域扩散的概率,并提升磁盘读写性能。
第一方面,本发明实施例提供一种磁盘重映射方法,包括:
在磁盘中热数据区域发生坏道时,采用独立磁盘冗余阵列RAID的冗余机制,将所述坏道所在区域的数据通过重映射方式恢复到所述磁盘的保留区域之后,确定一冷数据区域作为目标区域;
交换所述保留区域与所述目标区域中的存储数据,以实现通过所述目标区域的物理地址访问所述热数据。
在第一方面的第一种可能的实现方式中,所述确定一冷数据区域作为目标区域,包括:
查找所述磁盘中的所有冷数据区域,对比各所述冷数据区域,找到各所述冷数据区域中被访问次数满足预设条件的一区域,作为所述目标区域。
根据第一方面或第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,所述交换所述保留区域与所述目标区域中的存储数据,包括:
将所述保留区域中的存储数据迁入到缓存器;
将所述目标区域中的存储数据迁入到所述保留区域;
将所述缓存器中的存储数据迁入到所述目标区域。
根据第一方面或第一方面的第一种或第二种可能的实现方式,在第一方面的第三种可能的实现方式中,所述目标区域所在的磁盘不同于发生坏道的磁盘。
第二方面,本发明实施例提供一种磁盘重映射装置,包括:
确定模块,用于在磁盘中热数据区域发生坏道时,采用独立磁盘冗余阵列RAID的冗余机制,将所述坏道所在区域的数据通过重映射方式恢复到所述磁盘的保留区域之后,确定一冷数据区域作为目标区域;
处理模块,与所述确定模块连接,用于交换所述保留区域与所述确定模块所确定的所述目标区域中的存储数据,以实现通过所述目标区域的物理地址访问所述热数据。
在第二方面的第一种可能的实现方式中,所述确定模块具体用于:
查找所述磁盘中的所有冷数据区域,对比各所述冷数据区域,找到各所述冷数据区域中被访问次数满足预设条件的一区域,作为所述目标区域。
根据第二方面或第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述处理模块具体用于:
将所述保留区域中的存储数据迁入到缓存器;
将所述目标区域中的存储数据迁入到所述保留区域;
将所述缓存器中的存储数据迁入到所述目标区域。
根据第二方面或第二方面的第一种或第二种可能的实现方式,在第二方面的第三种可能的实现方式中,所述目标区域所在的磁盘不同于发生坏道的 磁盘。
第三方面,本发明实施例提供一种电子设备,包括:存储器和与所述存储器连接的处理器,其中,所述存储器存储执行指令,当接收到写操作时,所述处理器与所述存储器之间通信,所述处理器执行所述执行指令使得所述电子设备执行如第一方面任一项所述的方法。
本发明实施例的热数据访问通过直接访问原冷数据区域,这就保证了磁盘的读写性能;同时降低了坏道扩散的概率,提高了存储系统的可靠性。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图做一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本发明磁盘重映射方法实施例一的流程图;
图2为未出现坏道的磁盘存储数据示例图;
图3为坏道产生并修复后的磁盘存储数据示例图;
图4为本发明磁盘重映射方法实施例一中磁盘存储数据示例图;
图5为另一未出现坏道的磁盘存储数据示例图;
图6为本发明磁盘重映射方法实施例二中磁盘存储数据示例图;
图7为本发明磁盘重映射方法实施例三的流程图;
图8为本发明磁盘重映射装置实施例一的结构示意图;
图9为本发明电子设备实施例一的结构示意图。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
图1为本发明磁盘重映射方法实施例一的流程图。本发明实施例提供一 种磁盘重映射方法,该方法可以由磁盘重映射装置执行,该装置可以集成在个人计算机(Personal Computer,简称:PC)、笔记本电脑、平板电脑或个人数字助手(Personal Digital Assistant,简称:PDA)等电子设备中。如图1所示,该方法包括:
S101、在磁盘中热数据区域发生坏道时,采用RAID的冗余机制,将该坏道所在区域的数据通过重映射方式恢复到磁盘的保留区域之后,确定一冷数据区域作为目标区域。
S102、交换保留区域与目标区域中的存储数据,以实现通过目标区域的物理地址访问热数据。
在坏道产生时,如果坏道区域为热数据区域,则发生坏道的区域还是会大概率地被主机或者后台输入输出(Input/Output,简称:IO)访问,这样该坏道区域所在磁盘的负荷会增大,对存储系统的数据读写会有一定的性能影响。以下通过与现有技术的对比,说明本发明实施例的有益效果。
其中,图2为未出现坏道的磁盘存储数据示例图。图3为坏道产生并修复后的磁盘存储数据示例图。如图2所示,磁盘20包括保留区域21、热数据区域22、热数据区域23和热数据区域24。如图3所示,磁盘30包括保留区域31、热数据区域32、坏道区域33、坏道区域34和坏道区域35。当主机或后台IO访问坏道区域33或坏道区域34或坏道区域35中存储数据时,需先查询地址映射表36,找到修复后的热数据区域32,热数据区域32的磁头进行重新寻道,对该热数据进行读写。
本发明实施例的技术方案如图4所示,图4为本发明磁盘重映射方法实施例一中磁盘存储数据示例图。其中,磁盘40包括保留区域41、热数据区域42和冷数据区域43。在磁盘40中热数据区域42发生坏道时,采用RAID的冗余机制,将该坏道所在区域的数据通过重映射方式恢复到保留区域41之后,确定冷数据区域43作为目标区域;交换保留区域41与目标区域中的存储数据,使得热数据重新分布到磁盘40中可以提供正常访问的区域。
对比上述现有技术和本发明实施例技术方案可知,本发明实施例的热数据访问不再通过地址映射表间接进行,而是直接访问原冷数据区域即可,这就保证了磁盘的读写性能;同时降低了坏道扩散的概率,提高了存储系统的可靠性。
在上述实施例中,补充说明的是,热数据与冷数据的定义有多种。例如,将限定时间内访问次数大于或等于预设次数的数据定义为热数据,而限定时间内访问次数小于预设次数的数据定义为冷数据,等等,这里不再一一赘述。
在上述实施例的基础上,确定一冷数据区域作为目标区域可以包括:查找磁盘中的所有冷数据区域,对比各冷数据区域,找到各冷数据区域中被访问次数满足预设条件的一区域,作为目标区域。
进一步地,交换保留区域与目标区域中的存储数据可以包括:将保留区域中的存储数据迁入到缓存器;将目标区域中的存储数据迁入到保留区域;将缓存器中的存储数据迁入到目标区域,从而实现数据的互换。其中,缓存器可以为内存等存储器件。
一种具体的实现场景中,目标区域所在的磁盘不同于发生坏道的磁盘。如图5所示,磁盘50中有3个热数据区域(热数据区域51、热数据区域52和热数据区域53)出现坏道,同时,至少存在磁盘60、磁盘70和磁盘80,其中,磁盘60包括冷数据区域61;磁盘70包括冷数据区域71;磁盘80包括冷数据区域81。通过本发明实施例的技术方案,磁盘重映射后的示例图如图6所示,即热数据区域51与冷数据区域61中存储数据交换,热数据区域52与冷数据区域71中存储数据交换,热数据区域53与冷数据区域81中存储数据交换,进一步增加目标区域的可选范围,保证磁盘重映射方法的可实施性。
接下来通过实施例说明该磁盘重映射方法的应用。图7为本发明磁盘重映射方法实施例三的流程图。如图7所示,该方法可以包括:
S701、下发至磁盘的IO返回坏道错误码。
S702、根据坏道错误码采用RAID修复数据。
该步骤中,如果修复失败,则执行S703;否则,执行S704。
S703、流程异常结束。
以通过地址映射表进行访问。
S704、将恢复后的数据写入磁盘保留区域,并创建地址映射表。
S705、查找磁盘上的冷数据区域。
S705中,若查找失败,则执行S703,通过地址映射表进行访问;否则,执行S706。
S706、数据交换。
具体地,将热数据迁入到内存,然后将冷数据迁入到原热数据区域,最后将内存中的热点数据迁入到原冷数据区域,完成冷热数据的交换。
S707、流程正常结束。
本发明实施例不仅保证了热数据区域损坏后的磁盘访问性能,而且降低磁盘中坏带扩散的概率,提升存储系统的可靠性。
图8为本发明磁盘重映射装置实施例一的结构示意图。本发明实施例提供一种磁盘重映射装置,该该装置可以集成在PC、笔记本电脑、平板电脑或PDA等电子设备中。如图8所示,磁盘重映射装置80包括:确定模块81和处理模块82。
其中,确定模块81用于在磁盘中热数据区域发生坏道时,采用RAID的冗余机制,将坏道所在区域的数据通过重映射方式恢复到磁盘的保留区域之后,确定一冷数据区域作为目标区域;处理模块82,与确定模块81连接,用于交换保留区域与确定模块81所确定的目标区域中的存储数据,以实现通过目标区域的物理地址访问热数据。
本发明实施例的磁盘重映射装置,可以用于执行上述任一方法实施例的技术方案,例如,图1或图7所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。
在上述实施例中,确定模块81可以具体用于:查找磁盘中的所有冷数据区域,对比各冷数据区域,找到各冷数据区域中被访问次数满足预设条件的一区域,作为目标区域。
在上述实施例中,处理模块82可以具体用于:将保留区域中的存储数据迁入到缓存器;将目标区域中的存储数据迁入到保留区域;及,将缓存器中的存储数据迁入到目标区域。
需要说明的是,在上述任一实施例中,目标区域所在的磁盘,可以不同于发生坏道的磁盘,也可以与发生坏道的磁盘相同。
图9为本发明电子设备实施例一的结构示意图。如图9所示,电子设备90包括:存储器91和与存储器91连接的处理器92。其中,存储器91存储执行指令,当接收到写操作时,处理器92与存储器91之间通信,处理器92执行执行指令使得电子设备90执行上述任一方法实施例中的技术方案。
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims (9)

  1. 一种磁盘重映射方法,其特征在于,包括:
    在磁盘中热数据区域发生坏道时,采用独立磁盘冗余阵列RAID的冗余机制,将所述坏道所在区域的数据通过重映射方式恢复到所述磁盘的保留区域之后,确定一冷数据区域作为目标区域;
    交换所述保留区域与所述目标区域中的存储数据,以实现通过所述目标区域的物理地址访问所述热数据。
  2. 根据权利要求1所述的方法,其特征在于,所述确定一冷数据区域作为目标区域,包括:
    查找所述磁盘中的所有冷数据区域,对比各所述冷数据区域,找到各所述冷数据区域中被访问次数满足预设条件的一区域,作为所述目标区域。
  3. 根据权利要求1或2所述的方法,其特征在于,所述交换所述保留区域与所述目标区域中的存储数据,包括:
    将所述保留区域中的存储数据迁入到缓存器;
    将所述目标区域中的存储数据迁入到所述保留区域;
    将所述缓存器中的存储数据迁入到所述目标区域。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述目标区域所在的磁盘不同于发生坏道的磁盘。
  5. 一种磁盘重映射装置,其特征在于,包括:
    确定模块,用于在磁盘中热数据区域发生坏道时,采用独立磁盘冗余阵列RAID的冗余机制,将所述坏道所在区域的数据通过重映射方式恢复到所述磁盘的保留区域之后,确定一冷数据区域作为目标区域;
    处理模块,与所述确定模块连接,用于交换所述保留区域与所述确定模块所确定的所述目标区域中的存储数据,以实现通过所述目标区域的物理地址访问所述热数据。
  6. 根据权利要求5所述的装置,其特征在于,所述确定模块具体用于:
    查找所述磁盘中的所有冷数据区域,对比各所述冷数据区域,找到各所述冷数据区域中被访问次数满足预设条件的一区域,作为所述目标区域。
  7. 根据权利要求5或6所述的装置,其特征在于,所述处理模块具体用于:
    将所述保留区域中的存储数据迁入到缓存器;
    将所述目标区域中的存储数据迁入到所述保留区域;
    将所述缓存器中的存储数据迁入到所述目标区域。
  8. 根据权利要求5-7任一项所述的装置,其特征在于,所述目标区域所在的磁盘不同于发生坏道的磁盘。
  9. 一种电子设备,其特征在于,包括:存储器和与所述存储器连接的处理器,其中,所述存储器存储执行指令,当接收到写操作时,所述处理器与所述存储器之间通信,所述处理器执行所述执行指令使得所述电子设备执行如权利要求1-4任一项所述的方法。
PCT/CN2015/072668 2014-06-23 2015-02-10 磁盘重映射方法、装置及电子设备 WO2015196811A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410284344.X 2014-06-23
CN201410284344.XA CN104035886B (zh) 2014-06-23 2014-06-23 磁盘重映射方法、装置及电子设备

Publications (1)

Publication Number Publication Date
WO2015196811A1 true WO2015196811A1 (zh) 2015-12-30

Family

ID=51466658

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/072668 WO2015196811A1 (zh) 2014-06-23 2015-02-10 磁盘重映射方法、装置及电子设备

Country Status (2)

Country Link
CN (1) CN104035886B (zh)
WO (1) WO2015196811A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104035886B (zh) * 2014-06-23 2019-01-08 华为技术有限公司 磁盘重映射方法、装置及电子设备
CN104333586A (zh) * 2014-10-31 2015-02-04 山东超越数控电子有限公司 一种基于光纤链路的san存储设计方法
CN107748649B (zh) * 2017-09-18 2021-03-30 北京京东尚科信息技术有限公司 一种缓存数据的方法和装置
CN110531938A (zh) * 2019-09-02 2019-12-03 广东紫晶信息存储技术股份有限公司 一种基于多维度的冷热数据迁移方法及系统
CN114415956A (zh) * 2022-01-17 2022-04-29 国网新疆电力有限公司信息通信公司 一种电子信息技术数据处理用分类存储装置及其存储方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080285347A1 (en) * 2007-05-17 2008-11-20 Samsung Electronics Co., Ltd. Non-volatile memory devices and systems including bad blocks address re-mapped and methods of operating the same
CN101527142A (zh) * 2009-04-17 2009-09-09 杭州华三通信技术有限公司 一种磁盘冗余阵列中数据的读写方法和设备
CN102508724A (zh) * 2011-10-25 2012-06-20 北京同有飞骥科技股份有限公司 一种基于软raid的磁盘坏块处理方法
CN102799533A (zh) * 2012-07-10 2012-11-28 浙江宇视科技有限公司 一种磁盘损坏扇区屏蔽方法及装置
CN103064804A (zh) * 2012-12-13 2013-04-24 华为技术有限公司 磁盘数据的访问控制方法及装置
CN104035886A (zh) * 2014-06-23 2014-09-10 华为技术有限公司 磁盘重映射方法、装置及电子设备

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101383190A (zh) * 2008-08-11 2009-03-11 湖南源科创新科技股份有限公司 应用于固态硬盘的闪存均衡损耗算法
CN101576833B (zh) * 2009-06-26 2012-05-23 杭州华三通信技术有限公司 一种独立磁盘冗余阵列raid数据重建方法和装置
CN102289412B (zh) * 2011-09-07 2013-08-14 上海交通大学 固态硬盘的静态磨损均衡方法及系统
CN103064753A (zh) * 2012-10-25 2013-04-24 浪潮电子信息产业股份有限公司 磁盘阵列三级恢复系统设计方法
CN103458023B (zh) * 2013-08-30 2016-12-28 清华大学 分布式闪存存储系统
CN103488583B (zh) * 2013-09-09 2016-08-10 华中科技大学 一种高性能高可靠的固态盘实现方法
CN103593301B (zh) * 2013-11-20 2016-07-27 北京旋极信息技术股份有限公司 坏块管理方法及系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080285347A1 (en) * 2007-05-17 2008-11-20 Samsung Electronics Co., Ltd. Non-volatile memory devices and systems including bad blocks address re-mapped and methods of operating the same
CN101527142A (zh) * 2009-04-17 2009-09-09 杭州华三通信技术有限公司 一种磁盘冗余阵列中数据的读写方法和设备
CN102508724A (zh) * 2011-10-25 2012-06-20 北京同有飞骥科技股份有限公司 一种基于软raid的磁盘坏块处理方法
CN102799533A (zh) * 2012-07-10 2012-11-28 浙江宇视科技有限公司 一种磁盘损坏扇区屏蔽方法及装置
CN103064804A (zh) * 2012-12-13 2013-04-24 华为技术有限公司 磁盘数据的访问控制方法及装置
CN104035886A (zh) * 2014-06-23 2014-09-10 华为技术有限公司 磁盘重映射方法、装置及电子设备

Also Published As

Publication number Publication date
CN104035886B (zh) 2019-01-08
CN104035886A (zh) 2014-09-10

Similar Documents

Publication Publication Date Title
US9977626B2 (en) Implementing scattered atomic I/O writes
WO2015196811A1 (zh) 磁盘重映射方法、装置及电子设备
TW201826127A (zh) 數據儲存設備及其操作方法
US20110296084A1 (en) Data storage apparatus and method of writing data
TWI766207B (zh) 多命名空間的資料存取方法及電腦程式產品
US10019315B2 (en) Control device for a storage apparatus, system, and method of controlling a storage apparatus
JP2013506903A (ja) 電源遮断管理
US11294814B2 (en) Memory system having a memory controller and a memory device having a page buffer
TWI659304B (zh) 存取快閃記憶體模組的方法及相關的快閃記憶體控制器與電子裝置
US12061817B2 (en) Integrated circuit memory devices with enhanced buffer memory utilization during read and write operations and methods of operating same
US10346051B2 (en) Storage media performance management
KR20200017664A (ko) 저장 장치의 데이터 액세스 방법, 데이터 관리 방법 및 이를 수행하는 저장 장치
US20210326068A1 (en) Method and system for facilitating a light-weight garbage collection with a reduced utilization of resources
US9213486B2 (en) Writing new data of a first block size to a second block size using a write-write mode
US10733107B2 (en) Non-volatile memory apparatus and address classification method thereof
US11380418B2 (en) Memory controllers, storage devices, and operating methods of the storage devices
CN117149062A (zh) 一种磁带损坏数据的处理方法以及计算装置
JP5908106B2 (ja) 妥当性マスクを記憶する装置および方法ならびに操作装置
US11093180B2 (en) RAID storage multi-operation command system
KR20210034456A (ko) 메모리 컨트롤러, 스토리지 장치 및 상기 스토리지 장치의 동작 방법
KR102028666B1 (ko) 비식별 요청을 처리하는 저장 장치 및 그것의 동작 방법
TWI823649B (zh) 快閃記憶體控制器的控制方法、快閃記憶體控制器以及電子裝置
CN117234430B (zh) 一种缓存框架、数据处理方法、装置、设备和存储介质
US11763898B2 (en) Value-voltage-distirubution-intersection-based read disturb information determination system
TWI667656B (zh) 解碼方法及相關的快閃記憶體控制器與電子裝置

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: 15811845

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: 15811845

Country of ref document: EP

Kind code of ref document: A1