Parameters
Paramete
r
Description
Value
devicena
me
Name of an SSD.
Example:
nvme0
capacitysi
ze
Target capacity.
In Linux and ESXi, 1
GB equals 1000 MB. In
Windows, 1 GB equals
1024 MB.
Integer or decimal with a unit.
l
Supported units: G.
l
The minimum capacity is 1 GB. The maximum
capacity is the raw capacity of the disk.
l
If the unit is GB, only integers are supported.
0
indicates that the target capacity is the original
capacity.
Usage Guidelines
l
Before running this command, stop all I/O services of the SSD, and unmount all logical
drives of the SSD.
l
If a Huawei-developed driver is installed, the setting takes effect immediately. If an
open-source or system-provided driver is installed, the setting takes effect after the driver
is uninstalled and reinstalled or the server is restarted. After the setting takes effect, the
namespace settings automatically restore to the defaults, that is, only one namespace of
the configured size exists and is attached to controller 1.
Example
# Set the current capacity of
nvme0
to its original capacity.
[root@localhost tool]#
hioadm capacity -d nvme0 -s 0
current capacity : 512.0GB (512000000000Byte)
maximum capacity : 1600.3GB (1600321314816Byte)
You have selected to restore original capacity.
WARNING! The set capacity operation will clear all data.
WARNING! You have selected the set capacity operation.
Proceed with the set capacity? (Y|N):
y
Setting...OK
Setting capacity succeeded.
Please remove and then install the NVMe driver or reboot the OS.
System Response
Parameter
Parameter Description
Value
current capacity
Total available capacity (with one decimal
place) of the SSD. Unit: GB or TB.
In Linux and ESXi, 1 GB equals 1000 MB. In
Windows, 1 GB equals 1024 MB.
Example: 512.0 GB
(512000000000
Byte)
ES3000 V5 NVMe PCIe SSD
User Guide
6 Command Description
Issue 07 (2019-03-19)
Copyright © Huawei Technologies Co., Ltd.
116