Parameter
Description
Value
size
Size of a namespace. Unit: G
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
l
1: Shared
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 succeeded.
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
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
2
in this command.
namespaceid
ID of a namespace.
-
ES3000 V5 NVMe PCIe SSD
User Guide
6 Command Description
Issue 07 (2019-03-19)
Copyright © Huawei Technologies Co., Ltd.
139