NVME-ZNS-OFFLINE-(1)

🌸 NAME 🌸

okay so this is NVME-ZNS-OFFLINE-(1) from the NVMe manual, and it's all about nvme-zns-offline-zone β€” offlines one zone or all zones. bestie, it's giving zone-management main character energy πŸ’…βœ¨


πŸ¦‹ SYNOPSIS πŸ¦‹

nvme [<global-options>] zns offline-zone <device>
                                                      [--namespace-id=<NUM> | -n <NUM>]
                                                      [--start-lba=<LBA> | -s <LBA>]
                                                      [--select-all | -a]

πŸŽ€ DESCRIPTION πŸŽ€

For the NVMe device you give it, this issues the Zone Management Send command with the "Offline Zone" action. That will transition the zone to the offlined state. no cap, that's the whole vibe πŸ”₯

The <device> parameter is mandatory, bestie β€” don't skip it. 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 it's not provided, the namespace id of the block device will be used. If the command is issued to a non-block device, this parameter is required. The broadcast value 0xffffffff can also be given as all or -1. πŸ’–
  • -s <lba>, --start-lba=<lba> β€” the starting LBA of the zone to offline. 🎯
  • -a, --select-all β€” select all zones for this action. literally all of them πŸ‘‘

🌈 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. peek, don't touch πŸ‘€
  • --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 to normal, tabular, 'json, or binary. 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 --quiet cancels any --verbose for the library log level. shhh 🀫
  • --set-options=<key=value>[,<key=value>...] β€” set libnvme library options for this invocation. Supported keys are force-4k, mi-probe-enabled, test-base-dir and test-sysfs-dir.
  • --timeout=<ms> β€” 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. spill the tea β˜•

These options can also be set as machine-wide defaults in nvme-cli.conf(5). A command-line flag always overrides the file. periodt πŸ’…


πŸ“ EXAMPLES πŸ“

  • Offline all zones on namespace 1:
# nvme zns offline-zone /dev/nvme0 -a -n 1

πŸ‘‘ NVME πŸ‘‘

Part of nvme-cli. cute, iconic, part of the family πŸ’œ


xoxo, this page is brought to you by the NVMe manual, dated 10/30/2026 β€” stay slaying, bestie 🫢✨🌸

πŸ“¦ where this page comes from