cluster release-lock

Prev Next

This command releases locks on a specified file path.

Usage

cluster release-lock --path PATH
                    [--cluster-id ID]
                    [--tenant-id TENANT_ID]
                    [--recursively]
                    [--unlock-type TYPE]
                    [--unlock-id ID]
                    [--lock-type TYPE]

Required Parameters

--path PATH

Specifies a path to a file, relative to the default tenant or to the specified tenant (if specified).

Options

--cluster-id ID

Specifies the cluster ID.

You can verify the cluster ID by running cluster list.

Default: 1.

--tenant-id TENANT_ID

Specifies a non default tenant by ID. The specified file path is relative to the tenant. If not specified, the default tenant is assumed.  

--recursively

Deletes all locks on the file recursively.

--unlock-type TYPE

The type of unlock operation to perform:

  • ALL. To unlock all locks on the specified file.

  • SINGLE. To unlock a single lock on the specified file.

--unlock-id ID

If unlock-type is SINGLE, include this option to specify the unlock ID for the specific lock that you want to unlock.

--lock-type TYPE

If unlock-type is SINGLE, include this lock to specify type of lock:

  • NLM4. An NLM4 lock taken by an NFSv3 client.

  • NFSv4. An NFSv4 lock.

  • SMB. An SMB lock.

Example

vcli: admin> cluster release-lock --path /dev/test.txt --unlock-type ALL