Format
hioadm namespace -d
devicename
-t
operationtype
-s
size
-f
shareflag
Parameters
Parameter
Description
Value
devicename
Name of a device
Example:
nvme0
operationtype
Operation type
l
0
: Create a namespace.
l
1
: Delete a namespace.
l
2
: Attach a namespace.
l
3
: Detach a namespace.
l
6
: Set the number of namespaces.
Select
0
in this command.
size
Size of a namespace.
Unit: G or T
If the unit is not specified, the default unit G is
used.
NOTE
If this parameter is set to
0
, the remaining unallocated
space is all used for creating a namespace.
shareflag
Whether the namespace
is shared
l
0
: Exclusive
NOTE
Supports only the exclusive mode.
Usage Guidelines
None
Example
# Create an exclusive namespace of 64 GB for the
nvme0
SSD.
[root@localhost tool]#
hioadm namespace -d nvme0 -t 0 -s 64 -f 0
creating namespace successed.
namespace id: 1
6.13.3 Attaching a Namespace to an NVMe Controller
Function
This command is used to attach a namespace to an NVMe controller.
Format
hioadm namespace -d
devicename
-t
operationtype
-i
namespaceid
-c
controllerid
ES3000 V3 NVMe PCIe SSD
User Guide
6 Command Description
Issue 20 (2019-02-27)
Copyright © Huawei Technologies Co., Ltd.
125