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> 
  [ -cluster <cluster> ]    
 
  [ -stripeWidth <stripe-width> ] 
REST
Request Type POST
Request URL
http[s]://<host>:<port>/rest/disk/add?<parameters> 

Parameters

Parameter: cluster
Default Value: No default value
Possible Values: Any valid cluster.
Description: The cluster on which to add disks. If not specified, the default is the current cluster.
Parameter: disks
Default Value: No default value
Possible Values: Any valid disk names
Description: A comma-separated list of disk names. Examples:
  • /dev/sdc
  • /dev/sdd,/dev/sde,/dev/sdf
Parameter: host
Default Value: No default value
Possible Values: Any valid host or IP
Description: The hostname or IP address of the machine on which to add the disk.
Parameter: label
Default Value: HDD
Possible Values: Any label
Description: The label to use for the storage pool. See for more information on labels.
The label should contain only the following characters:
A-Z a-z 0-9 _ - .
Parameter: stripeWidth
Default Value: No default value
Possible Values: Any integer
Description: The number of disks per storage pool.

Output

Output Fields

Field

Description

ip

The IP address of the machine that owns the disk(s).

disk

The name of a disk or partition. Example sca or sca/sca1

all

The string all, meaning all unmounted disks for this node.

Examples

Add a disk:

maprcli disk add -disks /dev/sda1 -host 10.250.1.79
https://abc.sj.us:8443/rest/disk/add?disks=["/dev/sda1"]&host="10.250.1.79"