NVME-NS-CREATE(1)
πΈ NAME πΈ
okay so bestie, this is nvme-ns-create from the NVMe Manual, page NVME-NS-CREATE(1) if we're being official π . It sends the NVMe Namespace management command to create namespace, and returns results. It's literally giving "make a namespace, get a result back" energy π«Ά.
β¨ SYNOPSIS β¨
like, here's the whole invocation vibe:
nvme [<global-options>] ns create <device> [--nsze=<nsze> | -s <nsze>]
[--ncap=<ncap> | -c <ncap>]
[--flbas=<flbas> | -f <flbas>]
[--dps=<dps> | -d <dps>]
[--nmic=<nmic> | -m <nmic>]
[--anagrp-id=<anagrpid> | -a <anagrpid>]
[--nvmset-id=<nvmsetid> | -i <nvmsetid>]
[--endg-id=<endgid> | -e <endgid>]
[--csi=<command_set_identifier> | -y <command_set_identifier>]
[--lbstm=<lbstm> | -l <lbstm>]
[--nphndls=<nphndls> | -n <nphndls>]
[--block-size=<block-size> | -b <block-size>]
[--nsze-si=<nsze-si> | -S <nsze-si>]
[--ncap-si=<ncap-si> | -C <ncap-si>]
[--azr | -z]
[--rar=<rar> | -r <rar>]
[--ror=<ror> | -O <ror>]
[--rnumzrwa=<rnumzrwa> | -u <rnumzrwa>]
[--phndls=<placement-handle-list,> | -p <placement-handle-list,>]
[<global-options>]
π¦ DESCRIPTION π¦
For the NVMe device you give it, it sends a namespace management command to create the namespace with the requested settings. On success, the namespace identifier assigned by the controller is returned. slay β¨
The <device> parameter is mandatory and may be either the NVMe character device (ex: /dev/nvme0), or a namespace block device (ex: /dev/nvme0n1). no skipping this one, bestie π
π OPTIONS π
-s <nsze>,--nsze=<nsze>β The namespace size. π-c <ncap>,--ncap=<ncap>β The namespace capacity. π-f <flbas>,--flbas=<flbas>β The namespace formatted logical block size setting. Conflicts with--block-sizeargument. β οΈ-d <dps>,--dps=<dps>β The data protection settings. π‘οΈ-m <nmic>,--nmic=<nmic>β Namespace multipath and sharing capabilities. π-a <anagrpid>,--anagrp-id=<anagrpid>β ANA Group Identifier. If this value is0hspecifies that the controller determines the value to use. π-i <nvmsetid>,--nvmset-id=<nvmsetid>β This field specifies the identifier of the NVM Set. π§-e <endgid>,--endg-id=<endgid>β This field specifies the identifier of the endurance group. π-y <command_set_identifier>,--csi=<command_set_identifier>β This field specifies the identifier of command set. if not issued, NVM Command Set will be selected. π¦-l <lbstm>,--lbstm=<lbstm>β Logical Block Storage Tag Mask for end-to-end protection. π-n <nphndls>,--nphndls=<nphndls>β Number of Placement Handle included in the Placement Handle List. If the Flexible Data Placement capability is not supported or not enabled in specified Endurance Group, then the controller shall ignore this field. π«Ά-b <block-size>,--block-size=<block-size>β Target block size the new namespace should be formatted as. Potential FLBAS values will be scanned and the lowest numbered will be selected for the create-ns operation. Conflicts with--flbasargument. β οΈ-S <nsze-si>,--nsze-si=<nsze-si>β The namespace size (NSZE) in standard SI units (aligned on1Mibboundaries, unless the controller recommends a different value, see namespace granularity). The value SI suffixed is divided by the namespace LBA size to set as NSZE. If the value not suffixed it is set as same with thenszeoption. π-C <ncap-si>,--ncap-si=<ncap-si>β The namespace capacity (NCAP) in standard SI units (aligned on1Mibboundaries, unless the controller recommends a different value, see namespace granularity). The value SI suffixed is divided by the namespace LBA size to set as NCAP. If the value not suffixed it is set as same with thencapoption. π-z,--azrβ Allocate ZRWA Resources. If set to 1, then the namespace is to be created with the number of ZRWA resource specified in the RNUMZRWA field of this data structure. If cleared to 0, then no ZRWA resources are allocated to the namespace to be created. π₯-r <rar>,--rar=<rar>β Requested Active Resources. This field specifies the number of active resources to be allocated to the created namespace. πͺ-O <ror>,--ror=<ror>β Requested Open Resources. This field specifies the number of open resources to be allocated to the created namespace. π-u <rnumzrwa>,--rnumzrwa=<rnumzrwa>β Requested Number of ZRWA Resources. This field specifies the number of ZRWA resources to be allocated to the created namespace. π-p <placement-handle-list,>,--phndls=<placement-handle-list,>β The comma separated list of Reclaim Unit Handle Identifier to be associated with each Placement Handle. π―
π 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 π
- Create a namespace:
# nvme ns create /dev/nvme0 --nsze 11995709440 --ncap 1199570940 --flbas 0 --dps 0 --nmic 0
# nvme ns create /dev/nvme0 --nsze-si 6.14T --ncap 1199570940 --flbas 0 --dps 0 --nmic 0
π NVME π
Part of the nvme-user suite. π
and that's the whole page, bestie π«Ά β this is from the NVMe source/version, dated 10/30/2026, page NVME-NS-CREATE(1). catch u later πβ¨
π¦ 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