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

A lock type switching method, device and cluster file system

A cluster file system and file system technology, applied in the field of cluster file system, lock type switching method and device, can solve the problem of long time consuming for lock type switching and the like

Active Publication Date: 2021-06-04
HUAWEI TECH CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] This application provides a lock type switching method, device and cluster file system to solve the problem of long time-consuming lock type switching in the prior art

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
  • A lock type switching method, device and cluster file system
  • A lock type switching method, device and cluster file system
  • A lock type switching method, device and cluster file system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] In order to make the purpose, technical solution and advantages of the application clearer, the application will be further described in detail below in conjunction with the accompanying drawings.

[0039] The present application provides a lock type switching method, device and cluster file system, which are used to solve the problem of long time-consuming lock type switching in the prior art. Among them, the method, the device, and the system are based on the same inventive concept. Since the method and the device have similar problem-solving principles, the implementation of the device, the system, and the method can be referred to each other, and repeated descriptions will not be repeated.

[0040] A plurality referred to in this application refers to two or more than two. In addition, in the description of the present application, words such as "first" and "second" are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating ...

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 lock type switching method, device and cluster file system are used to solve the problem of long time-consuming lock type switching. The method is applied to a host running a file system, and the memory of the host stores a data structure of a first lock type and a data structure of a second lock type. The method includes: receiving a first instruction from a management node, the first instruction instructing the host to suspend The IO request of the target resource; suspending the IO request for the target resource; receiving the third indication sent by the management node after the lock type flag of the target resource is changed from the first flag to the second flag, and the first flag indicates that the lock type is the first lock Type, the second mark indicates that the lock type is the second lock type, and the third indication is used to instruct the host to restore the IO request of the upper-layer application for the target resource; restore the IO request of the upper-layer application for the target resource; according to the saved data of the second lock type structure, and lock the target resource in the locking mode of the second lock type.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a lock type switching method, device and cluster file system. Background technique [0002] The cluster file system ensures the consistency of multiple hosts accessing files through the locking mechanism. Currently, commonly used locking mechanisms include: (1) Network locks. When a host accesses a file, it requests the network lock owner (master) of the file to add Lock, access to the file after obtaining the lock permission of the file. (2) Disk locks are different from network locks. The file locking information is stored in the storage device that creates the file system. When the host accesses the file, the file locking information is written in the storage device, and the lock information is successfully written. information to access the file. Different lock types are used to lock the file, and the access performance of the file may be different. Therefore, t...

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): G06F16/13G06F16/178
Inventor 张羽江毅文
Owner HUAWEI TECH CO LTD