NVME-ZNS-CLOSE-ZO(1)
β¨ NAME β¨
nvme-zns-close-zone β Closes one or all zones. This page is NVME-ZNS-CLOSE-ZO(1) from the NVMe Manual, bestie, and it's giving zone management but make it cute π
πΈ SYNOPSIS πΈ
nvme [<global-options>] zns close-zone <device>
[--namespace-id=<NUM> | -n <NUM>]
[--start-lba=<LBA> | -s <LBA>]
[--select-all | -a]
π¦ DESCRIPTION π¦
Okay so for the NVMe device you hand over, this issues the Zone Management Send command with the "Close Zone" action. This will transition the zone to the closed state. No cap.
The <device> parameter is mandatory β like, you literally have to give it β and it may be either the NVMe character device (ex: /dev/nvme0), or a namespace block device (ex: /dev/nvme0n1). β¨
π OPTIONS π
-n <NUM>,--namespace-id=<NUM>β Use the provided namespace id for the command. If not provided, the namespace id of the block device will be used. If the command is issued to a non-block device, the parameter is required. The broadcast value0xffffffffcan also be given asallor-1.-s <lba>,--start-lba=<lba>β The starting LBA of the zone to close.-a,--select-allβ Select all zones for this action
π 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 <fmt>,--output-format=<fmt>β Set the reporting format tonormal,tabular,'json, orbinary. Only one output format may be used at a time.--output-format-version=<version>β 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--quietcancels any--verbosefor the library log level.--set-options=<key=value>[,<key=value>...]β Set libnvme library options for this invocation. Supported keys areforce-4k,mi-probe-enabled,test-base-dirandtest-sysfs-dir.--timeout=<ms>β Set the timeout for the command in milliseconds.infiniteor-1waits 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). A command-line flag always overrides the file.
π EXAMPLES π
- Close all zones on namespace 1:
# nvme zns close-zone /dev/nvme0 -a -n 1
π NVME π
Part of nvme-cli
mwah π β source/version NVMe, dated 10/30/2026, title NVME-ZNS-CLOSE-ZO(1). byeee π«Ά
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms