File recovery method and file recovery device

A file recovery and file technology, applied in the field of storage, can solve the problem that backup methods cannot be recovered, and achieve the effect of fast and accurate recovery and fast and accurate files

Active Publication Date: 2014-03-05
HUAWEI TECH CO LTD
View PDF6 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the technical problem that the present invention can solve is how to restore the file quickly when the metadata of the file is damaged and all backup means cannot be restored

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • File recovery method and file recovery device
  • File recovery method and file recovery device
  • File recovery method and file recovery device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0048] figure 1 A flow chart showing a file restoration method according to an embodiment of the present invention is mainly applied to a ROW (Redirect On Write, write redirection) type file system, and the file system is used for managing and storing files. Such as figure 1 As shown, the method mainly includes the following steps:

[0049] Step S100, when it is detected that the metadata of the first file is damaged, write the content of the first file corresponding to the system snapshot at the first time point into the file system corresponding to the second time point to form a second file,

[0050] Wherein, the first time point is before the second time point, and the second time point is the time point when the metadata is damaged;

[0051] Step S110, updating the second file according to the allocation record information of the first file,

[0052] Wherein, the allocation record information is an allocation record for the first file written in the file system between...

Embodiment 2

[0060] figure 2 A flowchart showing a file recovery method according to another embodiment of the present invention. figure 2 Winning mark and figure 1 The same steps have the same functions, and detailed descriptions of these steps are omitted for brevity.

[0061] Such as figure 2 As shown, the main difference between the file recovery method of this embodiment and the file recovery method of the previous embodiment is that step S110 may specifically include the following steps:

[0062] Step S1101, searching for the allocation record information according to the identification information of the system snapshot;

[0063] Step S1102. Update the second file according to the found distribution record information.

[0064] Specifically, after using the system snapshot technology to restore the state of the first file to the state at the first point in time, in order to restore the state of the first file to the state at the second point in time, you can search for the s...

Embodiment 3

[0076] Image 6 A structural block diagram of a file recovery device according to an embodiment of the present invention is shown. Such as Image 6 As shown, the file recovery device 60 mainly includes a writing module 61 and an updating module 62 . The writing module 61 is mainly used to write the content of the first file corresponding to the system snapshot at the first time point into the file system corresponding to the second time point when detecting that the metadata of the first file is damaged, forming a second file system. file, wherein the first point in time is before the second point in time, and the second point in time is the point in time when the metadata is damaged. The updating module 62 is connected to the writing module 61, and is mainly used to update the second file according to the allocation record information of the first file, wherein the allocation record information is from the first time point to the second file. An allocation record for the f...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a file recovery method and a file recovery device which are mainly applied to an ROW (redirect-on-write) file system used for managing and storing files. The method includes when detecting that metadata of a first file are damaged, writing content of the first file corresponding to a system snapshot of a first point-in-time into the file system corresponding to a second point-in-time to form a second file; updating the second file according to distribution record information of the first file. The first point-in-time is earlier than the second point-in-time which refers to the point-in-time of metadata damage, and the distribution record information refers to distribution records, for the first file, written in the file system between the first point-in-time and the second point-in-time. By the file recovery method and the file recovery device, files can be quickly and accurately recovered through the internal-snapshotting technology and the distribution record information of the file system.

Description

technical field [0001] The present invention relates to the field of storage technology, in particular to a file recovery method and device. Background technique [0002] At present, most storage systems enhance system reliability through backup means such as RAID (Redundant Arrays of Inexpensive Disks, disk array), remote replication, and snapshots. When all these backup methods fail, if the metadata of a file is damaged, the system usually uses an internal snapshot, that is, a system snapshot technology, to restore the metadata of the file. [0003] System snapshot technology means that the system backs up files every once in a while. When the metadata of a file is damaged and all other backup methods fail, the data in the system snapshot is read out and written to the current file system to restore the file. , thereby restoring the metadata for the file. However, if the system has modified the data in the file during the period from the latest system snapshot to the tim...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/14G06F17/30
Inventor 海杰
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products