Method and device for modifying and writing data

A technology of data modification and writing device, which is applied in the fields of digital data processing, input/output process of data processing, error detection of redundant codes, etc., which can solve the problem of low business processing efficiency, complicated data modification process, and easy business interruption. And other issues

Active Publication Date: 2021-05-04
深圳华为云计算技术有限公司
View PDF7 Cites 0 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
  • Method and device for modifying and writing data
  • Method and device for modifying and writing data
  • Method and device for modifying and writing data

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 and writing method and device. The method includes: the metadata server receives the modification write request sent by the client, the modification write request carries modification data, and the modification data is used to replace the original data stored in the first location in the first disk; the metadata server determines that it can A second location for storing modified data, the second location is located on the first disk or the second disk; the metadata server sends the modification write request and the second identification information of the second location to the OSD; the metadata server receives the response information fed back by the OSD Then modify the first identification information at the first position in the file metadata to the second identification information, and then the client can read the modified data according to the second identification information. In this way, the modified data and the original data are stored in different locations, and the data modification process can also be performed while the original data is being read. The business is not easy to be interrupted, which helps to improve the efficiency of business processing.

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