Volume

Create

curl -v "http://127.0.0.1/admin/createVol?name=test&capacity=100&owner=cfs&mpCount=3"
Allocate a set of data partition and a meta partition to the user.
Default create 10 data partition and 3 meta partition when create volume.
Parameters
Parameter Type Description
name string  
capacity int the quota of vol,unit is GB
owner string the owner of vol
mpCount int the amount of initial meta partitions

Delete

curl -v "http://127.0.0.1/vol/delete?name=test&authKey=md5(owner)"

Mark the vol status to MarkDelete first, then delete data partition and meta partition asynchronous,finally delete meta data from persist store

Parameters
Parameter Type Description
name string  
authKey string calculates the MD5 value of the owner field as authentication information

Get

curl -v "http://127.0.0.1/client/vol?name=test&authKey=md5(owner)" | python -m json.tool

show the base information of the vol,such as name,the detail of data partitions and meta partitions and so on.

Parameters
Parameter Type Description
name string  
authKey string calculates the MD5 value of the owner field as authentication information

response

{
    "Name": "test",
    "VolType": "extent",
    "MetaPartitions": {},
    "DataPartitions": {}
}

Stat

curl -v http://127.0.0.1/client/volStat?name=test

show vol stat information

Parameters
Parameter Type Description
name string  

response

{
    "Name": "test",
    "TotalSize": 322122547200000000,
    "UsedSize": 15551511283278
}

Update

curl -v "http://127.0.0.1/vol/update?name=test&capacity=100&authKey=md5(owner)"

add the vol quota

Parameters
Parameter Type Description
name string  
capacity int the quota of vol, unit is GB
authKey string calculates the MD5 value of the owner field as authentication information