Method for achieving file lock and metadata server

A metadata server and file lock technology, which is used in electrical digital data processing, special data processing applications, instruments, etc., can solve the problems of complex file lock management and inability to complete the normal release of file locks.

Inactive Publication Date: 2014-01-15
INSPUR BEIJING ELECTRONICS INFORMATION IND
View PDF4 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, in a distributed environment, the management of file locks is much more complicated than that of a stand-alone file system. The difficulty lies not in the creation of file locks, but in the reasonable and normal release of file locks.
The distributed file...

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 achieving file lock and metadata server
  • Method for achieving file lock and metadata server
  • Method for achieving file lock and metadata server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] This application implements file locks in a distributed file system to solve the problems caused by the failure of file locks to be released normally in a distributed file system. In this application, the file description information expands the file lock holding attribute and the file lock update time attribute. The client Update the file lock update time attribute with the metadata server through heartbeat, and complete the release operation if a file lock times out.

[0048] In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the application and the features in the embodiments can be combined arbitrarily with each other.

[0049] 1) Data structure support.

[0050] On the data structure of the metadata server, two attributes ar...

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 method for achieving a file lock and a metadata server. The method comprises the steps of enabling the metadata server to receive a request message sent by a request party, wherein the request message comprises a lock applying message, and a serial number of a file requested to be locked and identification information of the request party are carried in the lock applying message; enabling the metadata server to obtain file description information of the file according to the serial number, wherein file lock holding attributes and file lock update time attributes are contained in the file description information in an extended mode; enabling the metadata server to judge whether the file lock is added in the file or not according to the file lock holding attributes, if the file lock is already added and a holding party of the file lock is not the request party, judging whether the file lock added on the file is overtime or not according to the file lock update time attributes, and updating an attribute value of the file lock holding attributes to be the identification information of the request party and updating an attribute value of the file lock update time attributes to be the current time if the file lock added on the file is overtime.

Description

technical field [0001] The invention relates to the field of distributed file systems, in particular to a method for realizing file locks and a metadata server. Background technique [0002] Distributed file systems generally adopt a client / server architecture (refer to figure 1 ), the data is stored on the server, and the client application can access files located on the remote server as if they were accessing the local file system. Taking time as a clue, the development of distributed file systems can be divided into three stages: 1) network file system (1980s), 2) shared storage (SAN) cluster file system (1990s), 3) object-oriented parallel file system system (2000s). At present, the more influential distributed file systems include Google File System (GFS), Luster, and HDFS. [0003] The important role of the distributed file system in the era of cloud computing is increasingly prominent. In a cloud computing environment, the distributed file system can be applied i...

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): G06F17/30H04L29/08
CPCG06F16/182G06F16/1774
Inventor 颜秉珩董青张俊崔赢闫冬冬罗登亮常建忠栗丽霞
Owner INSPUR BEIJING ELECTRONICS INFORMATION IND
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