# US 2025/0085897 A1 · Lock reservations for shared storage

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

- Number: US 2025/0085897 A1
- Document ID: US20250085897A1
- Status: Published application
- Kind: A1
- Application number: 18/957,963
- Filed: 2024-11-25
- Published: 2025-03-13
- Earliest claimed: 2018-10-20
- Assignees: NetApp, Inc.
- Applicants: NetApp, Inc.
- Inventors: Christopher Busick; Stephen Winslow Schmitt
- Web page: https://patentgrep.com/patent/US20250085897A1

## CPC

- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0622: {in relation to access}
- G06F 3/0665: {at area level, e.g. provisioning of virtual or logical volumes}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques are provided for lock reservations for shared storage. A reserve command to reserve a storage structure is received by a driver from a node. The reserve command is formatted according to a storage protocol. The driver translates the reserve command into a lease acquire command formatted according to an object store protocol and targeting an object stored within an object store and corresponding to the storage structure. A lease identifier derived from a node identifier of the node is inserted into the lease acquire command. The lease acquire command is routed to the object store for obtaining a lease on the object for granting the node exclusive write access to the object.

## Claims

### Claim 1

A method executed by one or more processors, comprising:
translating a storage reserve command formatted according to a storage protocol to a lease acquire command formatted according to an object store protocol, the storage reserve command generated by a first node to reserve a storage structure associated with an object of an object store of a cloud computing environment, and wherein the lease acquire command includes a first lease identifier identifying the first node;
transmitting the lease acquire command to the object store to obtain a lease associated with the first lease identifier to grant the first node exclusive write access to the object and prevent a second node from writing to the object based on the lease being associated with the first lease identifier;
transmitting a change command to the object store to change the lease from being associated with the first lease identifier to being associated with a second lease identifier of the second node to grant the second node exclusive write access to the object and prevent the first node from writing to the object while the lease is associated with the second lease identifier;
in response to the first lease identifier in the change command not matching a current lease identifier assigned to the object, generating a break lease command; and
routing the break lease command to the object store to break the lease.

### Claim 2 (depends on 1)

The method of claim 1:
in response to receiving an acknowledgment from the object store for the break lease command, generating a second lease acquire command with the second lease identifier.

### Claim 3 (depends on 2)

The method of claim 2, comprising:
utilizing the second lease acquire command to obtain a new lease associated with the second lease identifier to grant the second node exclusive write access to the object and prevent the first node from writing to the object based on the new lease being associated with the second lease identifier.

### Claim 4 (depends on 1)

The method of claim 1, wherein the object store supports the object store protocol without supporting the storage protocol.

### Claim 5 (depends on 1)

The method of claim 1, wherein a driver intercepts the storage reserve command.

### Claim 6 (depends on 1)

The method of claim 1, wherein the storage reserve command is a SCSI (Small Computer Systems Interface) reserve command, and the storage structure is a volume

### Claim 7 (depends on 1)

The method of claim 1, comprising:
changing a state of the first node from an operational state to a passive state in response to the first node being operational during a failover operation to failover to the second node, wherein the first node is blocked from writing to the object based upon successful execution of the change command.

### Claim 8 (depends on 1)

The method of claim 1, comprising:
in response to the object store not having the lease, generating a second lease acquire command with the second lease identifier.

### Claim 9 (depends on 8)

The method of claim 8, comprising:
utilizing the second lease acquire command to obtain a new lease associated with the second lease identifier to grant the second node exclusive write access to the object and prevent the first node from writing to the object based on the new lease being associated with the second lease identifier.

### Claim 10

A system comprising:
a memory comprising instructions; and
a processor coupled to the memory; the processor configured to execute the instructions to cause the processor to perform operations comprising:
translating a storage reserve command formatted according to a storage protocol to a lease acquire command formatted according to an object store protocol, the storage reserve command generated by a first node to reserve a storage structure associated with an object of an object store of a cloud computing environment, and wherein the lease acquire command includes a first lease identifier identifying the first node;
transmitting the lease acquire command to the object store to obtain a lease associated with the first lease identifier to grant the first node exclusive write access to the object and prevent a second node from writing to the object based on the lease being associated with the first lease identifier;
transmitting a change command to the object store to change the lease from being associated with the first lease identifier to being associated with a second lease identifier of the second node to grant the second node exclusive write access to the object and prevent the first node from writing to the object while the lease is associated with the second lease identifier;
in response to the first lease identifier in the change command not matching a current lease identifier assigned to the object, generating a break lease command; and
routing the break lease command to the object store to break the lease.

### Claim 11 (depends on 10)

The system of claim 10, the operations further comprising:
in response to receiving an acknowledgment from the object store for the break lease command, generating a second lease acquire command with the second lease identifier.

### Claim 12 (depends on 11)

The system of claim 11, the operations further comprising:
utilizing the second lease acquire command to obtain a new lease associated with the second lease identifier to grant the second node exclusive write access to the object and prevent the first node from writing to the object based on the new lease being associated with the second lease identifier.

### Claim 13 (depends on 10)

The system of claim 10, wherein the object store supports the object store protocol without supporting the storage protocol.

### Claim 14 (depends on 10)

The system of claim 10, the operations further comprising:
changing a state of the first node from an operational state to a passive state in response to the first node being operational during a failover operation to failover to the second node, wherein the first node is blocked from writing to the object based upon successful execution of the change command.

### Claim 15 (depends on 10)

The system of claim 10, the operations further comprising:
in response to the object store not having the lease, generating a second lease acquire command with the second lease identifier.

### Claim 16 (depends on 15)

The system of claim 15, the operations further comprising:
utilizing the second lease acquire command to obtain a new lease associated with the second lease identifier to grant the second node exclusive write access to the object and prevent the first node from writing to the object based on the new lease being associated with the second lease identifier.

### Claim 17

A non-transitory machine-readable medium comprising instructions for performing a method, which when executed by a machine, causes the machine to perform operations comprising:
translating a storage reserve command formatted according to a storage protocol to a lease acquire command formatted according to an object store protocol, the storage reserve command generated by a first node to reserve a storage structure associated with an object of an object store of a cloud computing environment, and wherein the lease acquire command includes a first lease identifier identifying the first node;
transmitting the lease acquire command to the object store to obtain a lease associated with the first lease identifier to grant the first node exclusive write access to the object and prevent a second node from writing to the object based on the lease being associated with the first lease identifier;
transmitting a change command to the object store to change the lease from being associated with the first lease identifier to being associated with a second lease identifier of the second node to grant the second node exclusive write access to the object and prevent the first node from writing to the object while the lease is associated with the second lease identifier;
in response to the first lease identifier in the change command not matching a current lease identifier assigned to the object, generating a break lease command; and
routing the break lease command to the object store to break the lease.

### Claim 18 (depends on 17)

The non-transitory machine-readable medium of claim 17, further comprising:
in response to receiving an acknowledgment from the object store for the break lease command, generating a second lease acquire command with the second lease identifier.

### Claim 19 (depends on 18)

The non-transitory machine-readable medium of claim 18, further comprising:
utilizing the second lease acquire command to obtain a new lease associated with the second lease identifier to grant the second node exclusive write access to the object and prevent the first node from writing to the object based on the new lease being associated with the second lease identifier.

### Claim 20 (depends on 17)

The non-transitory machine-readable medium of claim 17, further comprising:
changing a state of the first node from an operational state to a passive state in response to the first node being operational during a failover operation to failover to the second node, wherein the first node is blocked from writing to the object based upon successful execution of the change command.
