Data backup method and device

A data and backup technology, which is applied in the direction of data error detection, electrical digital data processing, and response error generation, and can solve the problems of I/O read and write performance degradation.

Active Publication Date: 2015-03-11
HUAWEI TECH CO LTD
View PDF5 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The embodiment of the present invention provides a data backup method and device, which solves the problem of I/

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
  • Data backup method and device
  • Data backup method and device
  • Data backup method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0050] Embodiments of the present invention provide a data backup method, such as figure 2 shown, including:

[0051] 101. The storage device receives a write operation instruction, where the write operation instruction includes first data to be written and a logical address of the first data to be written.

[0052] 102a. The storage device writes first data to be written into the cache.

[0053] 102b. The storage device obtains the first data to be backed up from the logical address of the first data to be written, so as to write the first data to be backed up into the storage space for saving the snapshot, wherein the first data to be backed up is stored Data at the logical address of the first data to be written.

[0054] 103. Read the first data to be written from the cache, and write the first data to be written into a storage space corresponding to the logical address of the first data to be written.

[0055] In step 101, the storage device receives a write operation...

Embodiment 2

[0068] Embodiments of the present invention provide a data backup method, such as Figure 4 shown, including:

[0069] 201. The storage device receives a write operation instruction, where the write operation instruction includes first data to be written and a logical address of the first data to be written.

[0070] 202. If the cache includes second data to be written, the storage device obtains the second data to be backed up according to the logical address of the second data to be written, and obtains the first data to be backed up from the logical address of the first data to be written. The data to be backed up, wherein the logical address of the second data to be written is continuous with the logical address of the first data to be written, and the second data to be backed up is the data stored at the logical address of the second data to be written .

[0071] 203a. The storage device backs up the first data to be backed up and the second data to be backed up.

[00...

Embodiment 3

[0087] Such as Figure 6 As shown, a hardware schematic diagram of a storage device is provided for an embodiment of the present invention.

[0088] The storage device is a device used to store information, and usually digitizes information and then stores it using electrical, magnetic or optical media, such as various removable storage devices

[0089] Such as Figure 6 As shown, the storage device includes a processor 01 , a transceiver 02 , a cache 03 , a disk 04 and a bus 05 .

[0090] Wherein, the processor 01 , the transceiver 02 , the cache memory 03 and the disk 04 are connected through the bus 05 .

[0091] The processor 01 is the control center of the storage device. The processor 01 processes the data received by the transceiver 02 and calls the data or programs in the cache 03 or the disk 04 to execute various items of the storage device. Features.

[0092] The transceiver 02 can be used to send and receive information or data. After the transceiver 02 receives...

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 embodiment of the invention provides a data backup method and device, and relates to the field of data storage. The method and the device solve the problem of I/O (input/output) performance reduction due to COW (copy on write) processing in the prior art, and have the advantage that the data write-in speed is accelerated. The method adopting the scheme comprises the following steps that a write operation instruction is received, wherein the write operation instruction includes first data to be written in and a logic address of the first data to be written in; the first data to be written in is written into a high-speed cache; when the first data to be written in is written into the high-speed cache, first data to be backed up is obtained from the logic address of the first data to be written in, so that the first data to be backed up is written into a storage space used for storing a snapshot, wherein the first data to be written in is read from the high-speed cache, the first data to be written in is written into the storage space corresponding to the logic address of the first data to be written in.

Description

technical field [0001] The invention relates to the field of data storage, in particular to a data backup method and device. Background technique [0002] A snapshot (Snapshot) refers to: a fully available copy of a specified data set, the copy includes an image of the corresponding data at a certain snapshot time point (ie, the time point when the copy starts), and the image may be called snapshot data. [0003] The main function of snapshot technology is to perform online data backup and recovery. When an application failure occurs on a storage device or a file is damaged, the current file can be restored to a state at an available snapshot time point according to the snapshot data. In addition, snapshot data provides users with another data access channel. When the original data is processed by online applications, users can access snapshot data. Therefore, snapshot technology is widely used in the field of data storage. [0004] The copy-on-write (COW, Copy-On-Write) o...

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/14G06F12/08G06F12/0804
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