Modifies a label. Permissions required: fc or a.
Modifies a label. See Using Storage Labels for more information on labels.
When modifying a label for a Storage Pool, the label and its associated values apply to
all the disks in the Storage Pool.
Syntax
- CLI
-
maprcli label modify
-label <label to be modified>
[ -maxactiveioperdisk max active io per disk ]
[ -isssd is solid state drive ]
[ -istrimenabled is trim enabled ]
- REST
| Request Type |
POST |
| Request URL |
http[s]://<host>:<port>/rest/label/modify?<parameters>
|
Parameters
- label
- Possible Values: Any label
- Description: The label to use for the storage pool. See Using Storage Labels for
more information on labels.
The label should contain only the following
characters:
A-Z a-z 0-9 _ - .
- maxactiveioperdisk
- Possible Values: Any integer value between 100 and 50000.
- Description: The number of concurrent IO operations per second that can be issued
on the disk. Not specifying this value uses the default value specified in the
mfs.conf file.
- isssd
- Possible Values:
true or false
- Description: Set to
true to indicate that the disk is an
SSD.
- istrimenabled
- Possible Values:
true or false
- Description: Set to
true to indicate that the SSD disk is TRIM
enabled. TRIM enables the File System to inform a SSD disk which data blocks it
can erase because they are no longer in use. The use of TRIM can improve the
performance of writing data to SSDs and contribute to longer SSD life. Set this
parameter to true only if the SSD vendor recommends
it.
Examples
Modify a label:
- CLI
-
maprcli label modify -label WDCheetah -maxactiveioperdisk 5000 -isssd true -istrimenabled true
- REST
-
https://abc.sj.us:8443/rest/labels/modify?label=WDCheetah&maxactiveioperdisk=5000&-isssd=true&istrimenabled=true