NVME-CREATE-NS(1) | NVMe Manual | NVME-CREATE-NS(1) |
NAME¶
nvme-create-ns - Send NVMe Namespace management command to create namespace, returns results.
SYNOPSIS¶
nvme create-ns <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>]
[--timeout=<timeout> | -t <timeout>]
[--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,>]
[--output-format=<fmt> | -o <fmt>] [--verbose | -v]
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,>
-o <fmt>, --output-format=<fmt>
-v, --verbose
-t <timeout>, --timeout=<timeout>
EXAMPLES¶
# nvme create-ns /dev/nvme0 --nsze 11995709440 --ncap 1199570940 --flbas 0 --dps 0 --nmic 0 # nvme create-ns /dev/nvme0 --nsze-si 6.14T --ncap 1199570940 --flbas 0 --dps 0 --nmic 0
NVME¶
Part of the nvme-user suite
08/07/2024 | NVMe |