disk add
Adds one or more disks to the specified node. Permissions required:
fc
or a
.
Syntax
- CLI
-
maprcli disk add -disks <disk names> -host <host> [ -label <class of the disks>] [ -stripeWidth <stripe-width> ]
- REST
Request Type POST Request URL http[s]://<host>:<port>/rest/disk/add?<parameters>
Parameters
- Parameter:
disks
(Required) - Default Value: No default value
- Parameter:
host
(Required) - Default Value: No default value
- Parameter:
label
(Optional) - Default Value: HDD
- Parameter:
stripeWidth
(Optional) - Default Value: No default value
Output
Output Fields
Field |
Description |
---|---|
|
The IP address of the machine that owns the disk(s). |
|
The name of a disk or partition. Example sca or sca/sca1 |
|
The string |
Example
Add a disk:
maprcli disk add -disks /dev/sda1 -host 10.250.1.79
NOTE
When using a self-signed certificate, pass the -k
option to
curl
to avoid the certificate check.curl -k -u <username> -X POST https://abc.sj.us:8443/rest/disk/add?disks=["/dev/sda1"]&host="10.250.1.79"