Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for writing data

A technology for writing data and writing data, applied in the field of writing data, it can solve the problems of reducing the performance of writing data, cumbersome writing operation process, etc., and achieve the effect of writing data efficiently

Active Publication Date: 2022-05-06
ZTE CORP
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the distributed storage scenario, data is stored with a block (Chunk) as the smallest unit. However, when writing operations in the redirected-on-write snapshot technology, a new chunk space of a chunk size is usually allocated for writing operations. , when the data written in the write operation is smaller than the chunk size, first read the data of the old chunk in the source volume, then merge the data and write to the new chunk space, because this method of writing data needs to read the data first, merge The data is written into the chunk again, and the writing operation process is cumbersome, especially when the writing operation is frequent, a large number of reading and merging operations reduce the performance of writing data

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 and device for writing data
  • Method and device for writing data
  • Method and device for writing data

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0100] refer to Figure 6 , propose the first embodiment of the method for writing data of the present invention, in this embodiment, the method for writing data comprises steps:

[0101] Step S10, during the redirection-on-write snapshot process, before the snapshot generation command is obtained, when a write operation command to the source volume is received, the size information of the written data included in the write operation command is obtained;

[0102] Step S20, applying for a storage space matching the size information from a preset storage area according to the size information of the written data, and performing a write operation in the applied storage space.

[0103]The method for writing data provided by the present invention is mainly used in distributed storage technology, and is a method for writing data when using the redirection-on-write snapshot technology. Usually in a distributed storage scenario, data storage is based on a block (Chunk) as the smalles...

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 discloses a device for writing data. The device for writing data includes: a first obtaining module, used for redirecting a snapshot while writing. When writing an operation command, obtain the size information of the write data contained in the write operation command; the write operation module is used to apply for storage matching the size information from a preset storage area according to the size information of the write data space, and perform write operations in the requested storage space. The invention also discloses a method for writing data. The invention realizes the purpose of efficiently writing data without reading the data of the original storage block in the process of redirecting the snapshot while writing.

Description

technical field [0001] The invention relates to the technical field of data storage, in particular to a method and device for writing data. Background technique [0002] With the development of information technology, there are more and more digital resources, and data security and backup are becoming more and more important. At present, snapshot technology is usually used to back up data. According to the definition of the Storage Networking Industry Association (SNIA), a snapshot is a fully available copy of a set of data, including an image of the corresponding data at the moment of copy initialization. There are two types of existing snapshot mainstream technologies, one is copy on first write (Copy On First Write, COFW), and the other is redirect on write (Redirect On Write, ROW). [0003] In the distributed storage scenario, data is stored with a block (Chunk) as the smallest unit. However, when writing operations in the redirected-on-write snapshot technology, a new ...

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 Patents(China)
IPC IPC(8): G06F3/06
CPCG06F3/061G06F3/064G06F3/065G06F3/067G06F3/06
Inventor 包俊高洪韩银俊郭斌陈正华
Owner ZTE CORP