disk add

Adds one or more disks to the specified node. Permissions required: fc or a.

Syntax

CLI
maprcli disk add
    [ -cluster <cluster> ]
    [ -stripeWidth <stripe-width> ]
    -disks <disk names>
    -host <host> 
REST
Request Type POST
Request URL
http[s]://<host>:<port>/rest/disk/add?<parameters> 

Parameters

Parameter Description
cluster The cluster on which to add disks. If not specified, the default is the current cluster.
stripeWidth The number of disks per storage pool.
disks A comma-separated list of disk names. Examples:
  • /dev/sdc
  • /dev/sdd,/dev/sde,/dev/sdf
host The hostname or IP address of the machine on which to add the disk.

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"]