Example
# Detach namespace 1 of the
nvme0
SSD to NVMe controller 1.
[root@localhost tool]#
hioadm namespace -d nvme0 -t 3 -i 1 -c 1
detaching the namespace succeeded.
Please remove and then install the NVMe driver or reboot the OS.
System Response
If "detach failed" is displayed, the operation failed. The failure causes are as follows:
l
The namespace is not attached to the NVMe controller.
l
The NVMe controller ID is invalid.
6.13.5 Deleting a Namespace of an SSD
Function
This command is used to delete a namespace of an SSD.
Format
hioadm namespace -d devicename -t operationtype -i namespaceid
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
1
in this command.
namespaceid
ID of a namespace.
-
Usage Guidelines
Before running this command, stop all I/O operations related to the namespace.
Before running this command, detach the namespace from all controllers.
Exercise caution because deleting the namespace will also delete its storage data.
ES3000 V5 NVMe PCIe SSD
User Guide
6 Command Description
Issue 07 (2019-03-19)
Copyright © Huawei Technologies Co., Ltd.
142