Adds a label to disks or a storage pool. Permissions required: fc or
a.
maprcli disk setlabel
-host name/ip
-disks comma-separated list of disks
-label label-name
[ -force Need this parameter to reassign label to sp, otherwise reassignment of label
will not happen on sp. Parameter takes no value]
| Request Type | POST |
| Request URL | |
hostdiskslabelforce# maprcli disk setlabel -host atsqa4-161.qa.lab -disks /dev/sdd -label label1 -json
{
"timestamp":1590420155635,
"timeofday":"2020-05-25 08:22:35.635 GMT-0700 AM",
"status":"OK",
"total":0,
"data":[ ]
}
Set label label1 on disk /dev/sdd:
# maprcli disk setlabel -host atsqa4-161.qa.lab -disks /dev/sdd -label label1 -json
{
"timestamp":1590420155635,
"timeofday":"2020-05-25 08:22:35.635 GMT-0700 AM",
"status":"OK",
"total":0,
"data":[ ]
}
TBD