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.
-
controllerid
ID of an NVMe controller.
The ES3000 V3 SSD has only one
controller. The value of this parameter
is 1.
-
Usage Guidelines
If a Huawei-developed driver is installed, the setting takes effect immediately without needing
to stop I/O services. If an open-source or system-provided driver is installed, the setting takes
effect after the server is restarted.
Example
# Attach namespace 1 of the
nvme0
SSD to NVMe controller 1.
[root@localhost tool]#
hioadm namespace -d nvme0 -t 2 -i 1 -c 1
attaching the namespace successed.
Please remove and then install the NVMe driver or reboot the OS.
System Response
If
attach failed
is displayed, the operation failed. The failure causes are as follows:
l
The namespace is already attached to the NVMe controller.
l
The NVMe controller ID is invalid.
6.13.4 Detaching a Namespace from an NVMe Controller
Function
This command is used to detach a namespace from an NVMe controller.
Format
hioadm namespace -d
devicename
-t
operationtype
-i
namespaceid
-c
controllerid1
controllerid2
...
ES3000 V3 NVMe PCIe SSD
User Guide
6 Command Description
Issue 20 (2019-02-27)
Copyright © Huawei Technologies Co., Ltd.
126