Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data writing method and device

A data writing and atomic writing technology, applied in the storage field, can solve problems such as complex system processes and increased system overhead, and achieve the effect of reducing process complexity, reducing process complexity and system overhead, and improving serviceability

Active Publication Date: 2020-01-31
HUAWEI TECH CO LTD
View PDF9 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, adding semantic locks to ensure the atomic operation of write requests will complicate the system process. At the same time, after a group of write requests are all written and backed up successfully, semantic locks need to be opened, which increases system overhead.

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] The technical solution in this application will be described below with reference to the accompanying drawings.

[0053] In a distributed storage system, system availability is one of the important indicators, and it is necessary to ensure that the system availability will not be affected when a machine fails. In order to ensure system availability, data needs to be backed up (that is, multiple copies of the stored data need to be saved, and the data of the multiple copies needs to be consistent). When a machine failure causes one copy to fail, other copies can still provide services.

[0054] figure 1 It is a schematic block diagram of the applicable scene of the embodiment of the present application. figure 1 The illustrated scene may include at least two nodes. Generally, the source node that can be replicated is called the master node 110 , and the destination node(s) to be replicated is called the standby node 120 .

[0055] The master node 110 is a management n...

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 data writing method and device. The method comprises the steps that a main node stores N sub-logs of a log locally, the log is generated according to an atomic writing request, the atomic writing request comprises N sub-writes, information of the sub-writes is recorded in the sub-logs, and N is a positive integer larger than 0; the main node backs up the N sub-logs into astandby node; and under the condition that the main node determines that all the N sub-logs are stored in the standby node, the logs are marked as valid. According to the technical scheme provided bythe invention, the atomicity of a group of write requests can be ensured through a log mechanism in a data backup process, and the atomicity is prevented from being realized through a file system semantic lock in the prior art, so that the process complexity and the system overhead can be reduced.

Description

technical field [0001] The present application relates to the field of storage, and more specifically, to a method and device for writing data. Background technique [0002] In the storage system, in order to prevent data loss caused by hardware failure of the operating system or failure of the storage medium, the data stored locally can be backed up to the standby node. The file system is a software mechanism for managing and storing file information in the operating system. It is mainly responsible for creating files for users, storing, reading, and dumping files, and controlling file access. In the process of providing data backup storage services, the file system mainly uses atomic operations (that is, it is necessary to ensure that a group of write requests all succeed or fail) to prevent data inconsistency or damage caused by power failure or system crash. For example, network attached storage (network attached storage, NAS) may be a file system that provides high eff...

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): G06F16/27G06F11/14
CPCG06F11/1448
Inventor 戴冠群
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products