volume mount

Mounts one or more specified volumes. Permissions required: fc or m on the volume.

Syntax

CLI
maprcli volume mount
    [ -cluster <cluster> ]
    -name <volume list>
    -path <path list>
    [ -createparent 0|1 ]
REST
Request Type POST
Request URL
http[s]://<host>:<port>/rest/volume/mount?<parameters> 

Parameters

Parameter Description
cluster The cluster on which to run the command.
name The name of the volume to mount.
path The path at which to mount the volume. The path must be relative to / and cannot be in the form of a global namespace path (for example, /mapr/<cluster-name>/).
createparent Specifies whether or not to create a parent volume:
  • 0 = Do not create a parent volume.
  • 1 = Create a parent volume.

Examples

Mount the volume "test-volume" at the path "/test":

maprcli volume mount -name test-volume -path /test
{
	"timestamp":1537804971391,
	"timeofday":"2018-09-24 09:02:51.391 GMT-0700 AM",
	"status":"OK",
	"total":0,
	"data":[
		
	]
}
curl -X POST 'https://server.sj.us:8443/rest/volume/mount?name=test-volume&path=/test' --user <username>:<password>
{"timestamp":1537804971391,"timeofday":"2018-09-24 09:02:51.391 GMT-0700 AM","status":"OK","total":0,"data":[]}