label add
Registers a label. Permissions required: fc
or a
.
Registers a label. See Using Storage Labels for more information on labels. Attempting to register a label that is already registered, results in an error.
When registering 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 add -label <label to be registered> [ -maxactiveioperdisk max active io per disk ] [ -numdisksperinstance num disks per mfs instance ] [ -isssd is solid state drive ] [ -istrimenabled is trim enabled ]
- REST
Request Type POST Request URL http[s]://<host>:<port>/rest/label/add?<parameters>
Parameters
- label
- Default Value: default
- maxactiveioperdisk
- Default Value: 100
- numdisksperinstance
- Default Value: 20
- isssd
- Default Value:
true
- istrimenabled
- Default Value:
false
Examples
Register a label, before using it to label a storage pool.
- CLI
-
maprcli label add -label WDCheetah
- REST
-
https://abc.sj.us:8443/rest/labels/add?label=WDCheetah
Register a label with additional settings such as the maximum active IO per disk and marking it as a SSD, before using it to label a storage pool.
- CLI
-
maprcli label add -label WDCheetah -maxactiveioperdisk 5000 -isssd true -istrimenabled true
- REST
-
https://abc.sj.us:8443/rest/labels/add?label=WDCheetah&maxactiveioperdisk=5000&-isssd=true&istrimenabled=true