Method for recovering disk data and device thereof

A disk data recovery and disk technology, which is applied in the direction of data error detection and response error generation, can solve the problems of reducing the time window of business stop to zero and instantly recovering data, etc.

Active Publication Date: 2009-10-21
HUAWEI TECH CO LTD
View PDF0 Cites 26 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For the use of snapshots or mirroring, although the user's data at a certain point in time is immediately available, after that, it still takes a long time window to stop the user's business, resynchronize the mirroring or copy the snapshot data back. Therefore, the traditional technology does not really r...

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
  • Method for recovering disk data and device thereof
  • Method for recovering disk data and device thereof
  • Method for recovering disk data and device thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037] An embodiment of the present invention provides a disk data recovery method. This method completes the restoration of disk data through a background thread. Such as figure 1 As shown, the method includes the following steps:

[0038] Step 110, determine the data block (CHUNK) to be restored according to the change state of the data block indicated by the data block change identifier, the change state of the data block is the change state of the data block after the backup data is created.

[0039] The backup data may be snapshot data or mirror data at a certain point in time. For example, at different time points: 5:00am, 8:00am, 1:00pm, and 3:30pm respectively create snapshots for the production data volume (source volume), if the data on the production data volume is infected at 3:35pm virus, you can choose to restore the production data volume to the snapshot created at 3:30pm. At this time, the snapshot data at 3:30pm is the backup data used to restore the data ...

Embodiment 2

[0054] The embodiment of the invention also provides a disk data recovery method. The method realizes disk data recovery through the active recovery process of the disk after receiving the input and output request from the host. Such as Figure 5 As shown, the method includes the following steps:

[0055] Step 210, receiving an input / output (IO) request for a data block from the host.

[0056] The input and output requests include write requests and read requests.

[0057] Step 220, when it is determined that the data block is a data block that needs to be restored and the data block that needs to be restored has not been restored, use the backup data to restore the data block, and set a restoration completion flag for the restored data block.

[0058] The recovery of the data block by using the backup data refers to copying back the data to be recovered from the snapshot volume or the mirror volume to the data block of the production data volume.

[0059] Wherein, determi...

Embodiment 3

[0069] This embodiment provides a method for recovering disk data. In this embodiment, the instant recovery of data is realized by combining the disk recovery performed by the background thread and the immediate real-time recovery according to the access request of the host. Among them, the disk data recovery steps running in the background are as follows: Figure 6 shown, including:

[0070] Step 310, determine the data block to be restored according to the data change bitmap corresponding to the data block.

[0071] The data change bitmap is used to identify whether each data block is changed or not after the backup data is created.

[0072] The data change bitmap can be created when creating a snapshot or a mirror image, and is used to record information about changes in disk data blocks after the snapshot or mirror time point. Each bit in the bitmap corresponds to each disk data block. For example, when creating a snapshot or If a data block is changed in the production ...

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 provides a method for recovering disk data and a device thereof., wherein the method comprises the steps of: determining a data block requiring recovery in a disk according to the change status of the data block indicated by a change mark of the data block, utilizing backup data to recover the data block requiring recovery when the data block requiring recovery is not recovered and setting a recovery completion mark to the recovered data block. The change status of the data block is the change status of the data block after the backup data thereof is created. The embodiment of the invention can realize the instant recovery of source volume data without switching logical path and physical path and needing no business-stop time window.

Description

technical field [0001] The invention relates to disk array technology, in particular to a disk data recovery method and device. Background technique [0002] When the data is damaged, such as logical damage such as hacker virus, for traditional disk recovery, there are generally two recovery methods for disk data, (1) use the mirror volume to copy the data of the mirror volume back; (2) Offline incremental recovery using snapshot data. [0003] The specific recovery process may include the following steps: (1) When the source volume data is damaged, first switch the user business to the mirror volume or snapshot volume at a certain point of time in an instant, so that the user business can be used immediately. disk copy, the snapshot volume is used as an incremental copy. Before switching the user business to the mirror volume or snapshot volume, the business system can be temporarily stopped. Stopping the business system can release the cache to prevent the cache from aff...

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
IPC IPC(8): G06F11/14
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