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

Data modification writing method and apparatus

A technology for data modification and data modification, which is applied in digital data processing, input/output process of data processing, and generation of response errors, etc. It can solve problems such as easy business interruption, complicated data modification process, and low business processing efficiency.

Active Publication Date: 2018-08-28
深圳华为云计算技术有限公司
View PDF7 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides a method and device for modifying and writing data, which is used to solve the problem that the data modification process in the current distributed file system is relatively complicated, and business interruption is prone to occur, which in turn leads to low business processing efficiency

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 modification writing method and apparatus
  • Data modification writing method and apparatus
  • Data modification writing method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.

[0033] Hereinafter, some terms used in the present invention will be explained to facilitate the understanding of those skilled in the art.

[0034] (1) Disk array, the commonly used technology of distributed file system DFS is disk array (redundant access independent disk, RAID) technology, figure 2 shows a structural diagram of a disk array, such as figure 2 As shown, the three disks are logically regarded as one disk, and the disk can be divided into different stripes, that is, the part of each stripe falling on a single hard disk is called an object or a shard , figure 2 The middle stripe contains three slices, namely slices 1-3. Different slices are located on different disks, that is, slice 1 is located on disk 1, slice 2 is located on disk 2, and slice 3 is located on disk 3. When the clien...

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

A data modification writing method and apparatus are provided. The method comprises that: a metadata server receives a modified write request sent by the client, wherein the modified write request carries modified data, and the modified data is used to replace the original data stored at the first location in the first disk; the metadata server determines a second location capable of storing the modified data, wherein the second location is located on the first disk or the second disk; the metadata server sends the modified write request and second identification information of the second location to the OSD; and after the metadata server receives response information feed backed by the OSD, first identification information of the first location in the file metadata is modified to the second identification information, and the client may read the modification data according to the second identification information. According to the provided method and apparatus, the modified data and the original data are stored in different locations, and the data modification process can also be performed in the process of reading the original data, so that the service is not easily interrupted,and the efficiency of service processing can be improved in a facilitated manner.

Description

technical field [0001] Embodiments of the present invention relate to the technical field of data storage, and in particular, to a method and device for modifying and writing data. Background technique [0002] In order to improve hard disk utilization, the current data storage method is usually distributed storage, that is, the client writes file data into different storage areas (such as disks) in a distributed manner. After the client writes the file data, it can modify the file data. The data modification and writing process of the current file distributed system is mainly based on the two-stage commit mechanism. figure 1 A schematic diagram showing a data modification and writing process in a current distributed file system (distributed file system, DFS), as figure 1 As shown, the first stage is that the metadata server (Metadata Server, MDS) sends a prepare request to the OSD for object storage on the disk, and then receives the prepare response returned by the OSD. ...

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): G06F3/06G06F11/10
CPCG06F3/0617G06F3/0629G06F3/0658G06F3/0689G06F11/1076G06F2211/104
Inventor 汪正洋
Owner 深圳华为云计算技术有限公司