NVME-CREATE-NS(1) | NVMe Manual | NVME-CREATE-NS(1) |
nvme-create-ns - Send NVMe Namespace management command to create namespace, returns results.
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>]
[--csi=<command_set_identifier> | -y <command_set_identifier>]
[--lbstm=<lbstm> | -l <lbstm>]
[--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>]
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).
-s, --nsze
-c, --ncap
-f, --flbas
-d, --dps
-m, --nmic
-a, --anagrp-id
-i <nvmsetid>, --nvmset-id=<nvmsetid>
-y <command_set_identifier>, --csi=<command_set_identifier>
-l <lbstm>, --lbstm=<lbstm>
-b, --block-size
-S, --nsze-si
-C, --ncap-si
# 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
Part of the nvme-user suite
04/15/2023 | NVMe |