1NVME-CREATE-NS(1) NVMe Manual NVME-CREATE-NS(1)
2
3
4
6 nvme-create-ns - Send NVMe Namespace management command to create
7 namespace, returns results.
8
10 nvme create-ns <device> [--nsze=<nsze> | -s <nsze>]
11 [--ncap=<ncap> | -c <ncap>]
12 [--flbas=<flbas> | -f <flbas>]
13 [--dps=<dps> | -d <dps>]
14 [--nmic=<nmic> | -m <nmic>]
15 [--anagrp-id=<anagrpid> | -a <anagrpid>]
16 [--nvmset-id=<nvmsetid> | -i <nvmsetid>]
17 [--csi=<command_set_identifier> | -y <command_set_identifier>]
18 [--lbstm=<lbstm> | -l <lbstm>]
19 [--block-size=<block-size> | -b <block-size>]
20 [--timeout=<timeout> | -t <timeout>]
21 [--nsze-si=<nsze-si> | -S <nsze-si>]
22 [--ncap-si=<ncap-si> | -C <ncap-si>]
23
25 For the NVMe device given, sends a namespace management command to
26 create the namespace with the requested settings. On success, the
27 namespace identifier assigned by the controller is returned.
28
29 The <device> parameter is mandatory and may be either the NVMe
30 character device (ex: /dev/nvme0), or a namespace block device (ex:
31 /dev/nvme0n1).
32
34 -s, --nsze
35 The namespace size.
36
37 -c, --ncap
38 The namespace capacity.
39
40 -f, --flbas
41 The namespace formatted logical block size setting. Conflicts with
42 --block-size argument.
43
44 -d, --dps
45 The data protection settings.
46
47 -m, --nmic
48 Namespace multipath and sharing capabilities.
49
50 -a, --anagrp-id
51 ANA Group Identifier. If this value is 0h specifies that the
52 controller determines the value to use
53
54 -i <nvmsetid>, --nvmset-id=<nvmsetid>
55 This field specifies the identifier of the NVM Set.
56
57 -y <command_set_identifier>, --csi=<command_set_identifier>
58 This field specifies the identifier of command set. if not issued,
59 NVM Command Set will be selected.
60
61 -l <lbstm>, --lbstm=<lbstm>
62 Logical Block Storage Tag Mask for end-to-end protection.
63
64 -b, --block-size
65 Target block size the new namespace should be formatted as.
66 Potential FLBAS values will be values will be scanned and the
67 lowest numbered will be selected for the create-ns operation.
68 Conflicts with --flbas argument.
69
70 -S, --nsze-si
71 The namespace size (NSZE) in standard SI units. The value SI
72 suffixed is divided by the namespace LBA size to set as NSZE. If
73 the value not suffixed it is set as same with the nsze option.
74
75 -C, --ncap-si
76 The namespace capacity (NCAP) in standard SI units. The value SI
77 suffixed is divided by the namespace LBA size to set as NCAP. If
78 the value not suffixed it is set as same with the ncap option.
79
81 • Create a namespace:
82
83 # nvme create-ns /dev/nvme0 --nsze 11995709440 --ncap 1199570940 --flbas 0 --dps 0 --nmic 0
84 # nvme create-ns /dev/nvme0 --nsze-si 6.14T --ncap 1199570940 --flbas 0 --dps 0 --nmic 0
85
87 Part of the nvme-user suite
88
89
90
91NVMe 10/06/2023 NVME-CREATE-NS(1)