# US 2017/0286445 A1 · Migrating lock data within a distributed file system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0286445 A1
- Document ID: US20170286445A1
- Status: Published application
- Kind: A1
- Application number: 15/083,795
- Filed: 2016-03-29
- Published: 2017-10-05
- Earliest claimed: 2016-03-29
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Raghavendra Gowdappa; Pranith Kumar Karampuri
- Web page: https://patentgrep.com/patent/US20170286445A1

## CPC

- G06F 16/1774: {Locking methods, e.g. locking methods for file systems allowing shared and concurrent access to files}
- G06F 16/119: {Details of migration of file systems (migration mechanisms in storage systems G06F3/0647)}
- G06F 16/183: {Provision of network file services by network file servers, e.g. by using NFS, CIFS (network file access protocols H04L67/1097)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods for migrating locking data for a file system object within a distributed file system. An example method may comprise: initiating a transfer of locking data from a first node of a distributed file system to a second node of the distributed file system, wherein the locking data is associated with a file system object and comprises a connection identifier indicating a connection between a client requesting a lock and the first node; constructing a modified connection identifier that indicates a connection between the client and the second node; and updating the second node to include the locking data with the modified connection identifier.

## Claims

### Claim 1

A method comprising:
initiating, by a processing device, a transfer of locking data from a first node of a distributed file system to a second node of the distributed file system, wherein the locking data is associated with a file system object and comprises a connection identifier indicating a connection between a client requesting a lock and the first node;
constructing, by the processing device, a modified connection identifier that indicates a connection between the client and the second node; and
updating, by the processing device, the second node to include the locking data with the modified connection identifier.

### Claim 2 (depends on 1)

The method of claim 1, wherein the client is granted the lock on the file system object, and wherein the transfer of the locking data for the file system object from the first node to the second node occurs without removing the lock and without contacting the client.

### Claim 3 (depends on 1)

The method of claim 1, wherein updating the second node to include the locking data comprises a transfer of the locking data from an export process running on the first node to an export process running on the second node.

### Claim 4 (depends on 1)

The method of claim 1, wherein the locking data associated with the file system object comprises a lock owner, a lock state and the modified connection identifier, the modified connection identifier comprising identification information for the connection between the client and the second node and identification information for an application process running on the client that requested the lock.

### Claim 5 (depends on 1)

The method of claim 1 further comprising, identifying an existing connection that provides the client access to the second node without contacting the client.

### Claim 6 (depends on 1)

The method of claim 1, wherein constructing the modified connection identifier and updating the second node to include the modified connection identifier is performed without notifying the client.

### Claim 7 (depends on 1)

The method of claim 1 further comprising, acquiring a guard of the locking data on the first node to prevent a change to a lock state of the locking data during the transfer of the locking data from the first node to the second node.

### Claim 8 (depends on 1)

The method of claim 1, wherein the transfer of the locking data for the file system object from the first node to the second node occurs after transferring content of the file system object from the first node to the second node.

### Claim 9 (depends on 1)

The method of claim 1 further comprising, receiving multiple lock requests for the file system object from the client, wherein the first lock request is granted and the second lock request is blocked.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
receiving, at the first node, a lock request for the file system object during the transfer of the locking data;
processing, at the second node, the lock request after the updating the second node to include the locking data; and
notifying the client to resubmit the lock request to the second node.

### Claim 11 (depends on 1)

The method of claim 1, further comprising:
initiating a transfer of additional locking data from the first node to the second node of the distributed file system, wherein the additional locking data is for the file system object and indicates there is a blocked lock request from a second client;
retrieving a request path for the blocked lock request, the request path identifying the first node and one or more other nodes of the distributed file system that transmitted the blocked lock request;
modifying the request path to replace identification information for the first node with identification information for the second node; and
updating the second node and the one or more other nodes to reflect the modified request path.

### Claim 12 (depends on 11)

The method of claim 11, wherein the transfer of additional locking data from the first node to the second node occurs without removing the blocked lock request.

### Claim 13 (depends on 12)

The method of claim 12, wherein the distributed file system comprises a hierarchy of nodes with one or more nodes at one or more levels, and wherein the request path for the blocked lock request comprises identification information for a node at each of the one or more levels.

### Claim 14

A system comprising:
a memory; and
a processing device operatively coupled to the memory, the processing device to:
initiate, by a processing device, a transfer of locking data from a first node of a distributed file system to a second node of the distributed file system, wherein the locking data is associated with a file system object and comprises a connection identifier indicating a connection between a client requesting a lock and the first node;
construct, by the processing device, a modified connection identifier that indicates a connection between the client and the second node; and
update, by the processing device, the second node to include the locking data with the modified connection identifier.

### Claim 15 (depends on 14)

The system of claim 14, wherein the client is granted the lock on the file system object, and wherein the transfer of the locking data for the file system object from the first node to the second node occurs without removing the lock and without contacting the client.

### Claim 16 (depends on 14)

The system of claim 14, wherein to update the second node to include the locking data comprises the processing device to transfer the locking data from an export process running on the first node to an export process running on the second node.

### Claim 17 (depends on 14)

The system of claim 14, wherein the locking data associated with the file system object comprises a lock owner, a lock state and the modified connection identifier, the modified connection identifier comprising identification information for the connection between the client and the second node and identification information for an application process running on the client that requested the lock.

### Claim 18 (depends on 14)

The system of claim 14 further comprising, identifying an existing connection that provides the client access to the second node without contacting the client.

### Claim 19

A non-transitory machine-readable storage medium storing instructions that cause a processing device to:
initiate a transfer of locking data from the first node to the second node of the distributed file system, wherein the locking data is for the file system object and indicates there is a blocked lock request from a client;
retrieve a request path for the blocked lock request, the request path identifying the first node and one or more other nodes of the distributed file system that transmitted the blocked lock request;
modify the request path to replace identification information for the first node with identification information for the second node; and
update the second node to include the locking data with the modified request path.

### Claim 20 (depends on 19)

The non-transitory machine-readable storage medium of claim 19, wherein the processing device is further to update the one or more other nodes identified by the request path to remove information to the blocked lock request and to update one or more nodes identified by the modified request path to include information related to the blocked lock request.
