Usage Guidelines
l
Before running this command, stop all I/O operations related to the namespace.
l
Before running this command, detach the namespace from all controllers.
l
Exercise caution because deleting the namespace will also delete its storage data.
Example
# Delete namespace 1 of the
nvme0
SSD.
[root@localhost tool]#
hioadm namespace -d nvme0 -t 1 -i 1
WARNING! The delete namespace operation will clear all data of this namespace.
WARNING! You have selected the delete namespace operation.
Proceed with the delete namespace operation? (Y|N):
y
deleting the namespace successed.
Please remove and then install the NVMe driver or reboot the OS.
System Response
If
delete failed
is displayed, the operation failed. The failure cause is as follows:
l
The namespace does not exist.
6.13.6 Setting the Number of Namespaces for an SSD
Function
This command is used to set the number of namespaces that can be created on a specified
SSD.
Format
hioadm namespace -d
devicename
-t
operationtype
-n
num
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
6
in this command.
num
Number of namespaces.
The value ranges from 1 to 64.
ES3000 V3 NVMe PCIe SSD
User Guide
6 Command Description
Issue 20 (2019-02-27)
Copyright © Huawei Technologies Co., Ltd.
129