NVME-RESV-ACQUIRE(1) NVMe Manual NVME-RESV-ACQUIRE(1)

# [NAME](#NAME)

nvme-resv-acquire - Acquire an nvme reservation

# [SYNOPSIS](#SYNOPSIS)

```
nvme [<global-options>] resv acquire <device>


                        [--namespace-id=<nsid> | -n <nsid>]


                        [--crkey=<crkey> | -c <crkey>]


                        [--prkey=<prkey> | -p <prkey>]


                        [--rtype=<rtype> | -t <rtype>]


                        [--racqa=<racqa> | -a <racqa>]


                        [--iekey | -i]
```

# [DESCRIPTION](#DESCRIPTION)

The Reservation Acquire command is used to acquire a reservation on a namespace, preempt a reservation held on a namespace, and abort a reservation held on a namespace.

The bare *nvme resv-acquire* form (without a space) still works as a deprecated alias and will be removed in a future major version. New scripts should use *nvme resv acquire* instead.

# [OPTIONS](#OPTIONS)

-n &lt;nsid&gt;, --namespace-id=&lt;nsid&gt;

Override the nsid field. If using the admin character device, this parameter is required. The broadcast value 0xffffffff can also be given as *all* or *-1*.

-c &lt;crkey&gt;, --crkey=&lt;crkey&gt;

Current Reservation Key: The field specifies the current reservation key associated with the host. If the IEKEY bit is set to ‘1’ in the command, then the CRKEY check succeeds regardless of the value in this field.

-p &lt;prkey&gt;, --prkey=&lt;prkey&gt;

Preempt Reservation Key: If the Reservation Acquire Action is set to 001b (i.e., Preempt) or 010b (i.e., Preempt and Abort), then this field specifies the reservation key to be unregistered from the namespace. For all other Reservation Acquire Action values, this field is reserved.

-t &lt;rtype&gt;, --rtype=&lt;rtype&gt;

Reservation Type: This field specifies the type of reservation to be created.

Value Definition 0h Reserved 1h Write Exclusive Reservation 2h Exclusive Access Reservation 3h Write Exclusive - Registrants Only Reservation 4h Exclusive Access - Registrants Only Reservation 5h Write Exclusive - All Registrants Reservation 6h Exclusive Access - All Registrants Reservation 07h-FFh Reserved

-a &lt;racqa&gt;, --racqa=&lt;racqa&gt;

Reservation Acquire Action: This field specifies the action that is performed by the command.

Value Definition 0 Acquire 1 Preempt 2 Preempt and Abort 3-7 Reserved

-i, --iekey

Ignore Existing Key: If this bit is set to a *1*, then the Current Reservation Key (CRKEY) check is disabled and the command shall succeed regardless of the CRKEY field value.

Indicator option, defaults to *0*.

# [GLOBAL OPTIONS](#GLOBAL_OPTIONS)

The following options are defined at the top-level nvme command and are available to this subcommand:

--dry-run

Print the command that would be executed, but do not actually execute it.

--no-ioctl-probing

Disable probing for 64-bit IOCTL support.

--no-retries

Disable retry logic on transient errors.

-o &lt;fmt&gt;, --output-format=&lt;fmt&gt;

Set the reporting format to *normal*, *tabular, 'json*, or *binary*. Only one output format may be used at a time.

--output-format-version=&lt;version&gt;

Select the output format version. Version *1* uses the original field naming, while version *2* (default) provides more consistent and script-friendly field names. Other versions are rejected.

--quiet

Suppress informational messages. Errors are still reported, and --quiet cancels any --verbose for the library log level.

--set-options=&lt;key=value&gt;\[,&lt;key=value&gt;...]

Set libnvme library options for this invocation. Supported keys are *force-4k*, *mi-probe-enabled*, *test-base-dir* and *test-sysfs-dir*.

--timeout=&lt;ms&gt;

Set the timeout for the command in milliseconds. *infinite* or *-1* waits without a time limit (0xffffffff).

-v, --verbose

Increase the level of detail in the output. May be specified multiple times to further increase verbosity.

These options can also be set as machine-wide defaults in [nvme-cli.conf(5)](/man/os/nvme-cli/nvme-cli.conf.5). A command-line flag always overrides the file.

# [EXAMPLES](#EXAMPLES)

No examples yet

# [NVME](#NVME)

Part of the nvme-user suite

10/30/2026 NVMe

---

Document: nvme-resv-acquire(1) from nvme-cli 3.2-r0 (Chainguard OS)
Source: https://github.com/linux-nvme/nvme-cli
