| NVME-NS-CREATE(1) | NVMe Manual | NVME-NS-CREATE(1) |
NAME
nvme-ns-create - Send NVMe Namespace management command to create namespace, returns results.
SYNOPSIS
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 given, sends a namespace management command to create the namespace with the requested settings. On success, the namespace identifier assigned by the controller is returned.
The <device> parameter is mandatory and may be either the NVMe character device (ex: /dev/nvme0), or a namespace block device (ex: /dev/nvme0n1).
OPTIONS
-s, --nsze
-c, --ncap
-f, --flbas
-d, --dps
-m, --nmic
-a, --anagrp-id
-i <nvmsetid>, --nvmset-id=<nvmsetid>
-e <endgid>, --endg-id=<endgid>
-y <command_set_identifier>, --csi=<command_set_identifier>
-l <lbstm>, --lbstm=<lbstm>
-n <nphndls>, --nphndls=<nphndls>
-b, --block-size
-S, --nsze-si
-C, --ncap-si
-z, --azr
-r <rar>, --rar=<rar>
-O <ror>, --ror=<ror>
-u <rnumzrwa>, --rnumzrwa=<rnumzrwa>
-p <placement-handle-list,>, --phndls=<placement-handle-list,>
GLOBAL OPTIONS
The following options are defined at the top-level nvme command and are available to this subcommand:
--dry-run
--no-ioctl-probing
--no-retries
-o <fmt>, --output-format=<fmt>
--output-format-version=<version>
--timeout=<ms>
-v, --verbose
These options can also be set as machine-wide defaults in nvme-cli.conf(5). A command-line flag always overrides the file.
EXAMPLES
# 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
| 09/07/2026 | NVMe |