volume rename

Renames the specified volume or mirror. Permissions required: fc or d on the volume.

NOTE
If you rename a volume, you must unmount and re-mount the volume to allow applications and/or users to continue accessing the volume.

Syntax

CLI
maprcli volume rename
    [ -cluster <cluster> ]
    -name <volume name>
    -newname <new volume name>
REST
Request Type POST
Request URL
http[s]://<host>:<port>/rest/volume/rename?<parameters> 

Parameters

Parameter Description
cluster The cluster on which to run the command.
name The volume name.
newname The new volume name. For tiering-enabled volumes, volume name cannot exceed ninety-eight characters.

Examples

Rename a standard volume:

# maprcli volume rename -name testVolume -newname newVolumeName -json
{
	"timestamp":1537994815889,
	"timeofday":"2018-09-26 01:46:55.889 GMT-0700 PM",
	"status":"OK",
	"total":0,
	"data":[
		
	]
}
# curl -X POST 'https://server.sj.us:8443/rest/volume/rename?name=testVolume&newname=newVolumeName' --user <username>:<password>
{"timestamp":1537994918599,"timeofday":"2018-09-26 01:48:38.599 GMT-0700 PM","status":"OK","total":0,"data":[]}