Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Method for storing files, first virtual machine and name node

A name node and file storage technology, which is applied in the computer field, can solve the problem of file redundancy and other issues, and achieve the effects of improving usability, avoiding resource waste, and avoiding resource waste

Active Publication Date: 2017-02-22
HUAWEI CLOUD COMPUTING TECH CO LTD
View PDF4 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] Embodiments of the present invention provide a method for storing files, a first virtual machine, and a name node, which are used to solve the problem of redundant file numbers when storing files in a distributed file system, and improve the availability of the system

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 for storing files, first virtual machine and name node
  • Method for storing files, first virtual machine and name node
  • Method for storing files, first virtual machine and name node

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0148] In order to better understand the above objects, schemes and advantages of the embodiments of the present invention, a detailed description is provided below. The detailed description sets forth various embodiments of apparatuses and / or methods by using block diagrams, flowcharts, etc. figures and / or examples. In such block diagrams, flowcharts and / or examples, one or more functions and / or operations are included. Those skilled in the art will understand that: the various functions and / or operations in these block diagrams, flowcharts or examples can be implemented individually or jointly by various hardware, software, and firmware, or by any combination of hardware, software, and firmware. Composite implementation.

[0149] The embodiment of the present invention relates to a distributed file system, and the distributed file system will be introduced in detail below.

[0150] Such as figure 1 As shown, a distributed file system can contain a name node and multiple d...

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 method for storing files, a first virtual machine and a name node are used for solving the redundancy problem of file numbers, existing when a distributed file system stores the files, and improving availability of the distributed file system. The method for storing the files includes that a client side sends a request message of requesting writing data to be written in the distributed file system to the name node; the name node sends a response message corresponding to the request message to the client side, wherein the response message includes an address of the first virtual machine and an address of a second virtual machine, and indicates the first virtual machine to be a virtual machine in more than one virtual machine, which has permission of writing data in a storage region, and the second virtual machine to be the other virtual machine besides the first virtual machine in the more than one virtual machine; the client side sends the data to be written and the address of the second virtual machine to the first virtual machine; the first virtual machine writes the data to be written into the storage region shared by the more than one virtual machine, and generates or updates metadata of the data to be written; the first virtual machine sends the generated or updated metadata to the second virtual machine.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method for storing files, a first virtual machine and a name node. Background technique [0002] The distributed file system includes a client (client), a data node (datanode) and a name node (namenode); wherein, the data node is used to store files, and the name node is used to manage files stored on the data node. The client can query the files stored in each data node through the name node and obtain the address of each data node, so as to read files from the data nodes or write files to the data nodes. The data nodes in the distributed file system can be physical servers or virtual machines. [0003] When the data node in the distributed file system is a virtual machine, the virtual hard disk of the virtual machine is provided by the distributed block storage system. Writing files to the virtual machine is actually writing files to the virtual hard disk of the vi...

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): G06F17/30
CPCG06F16/13G06F16/182
Inventor 李亿
Owner HUAWEI CLOUD COMPUTING 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
Eureka Blog
Learn More
PatSnap group products