Unable to create volume using Storage API

Status
Not open for further replies.

geronime

Cadet
Joined
Mar 21, 2017
Messages
1
Hello,
I tried to create a volume using the storage API but I either get a bad request(400) or the FreeNAS OS malfunctions and I need to reboot it.

I am using the following API:
{
"volume_name": "tank",
"layout": [
{
"vdevtype": "stripe",
"disks": ["ada1", "ada2"]
}
]
}

Two Scenarios:
Scenario 1. When I use vdevtype:stripe, the FreeNAS OS malfunctions and then only option is to reboot the OS.

Scenario 2 When I use vdevtype:mirror/raidz/raidz2/raidz3 I get a 400 Bad request error.
Anything other than "stripe" in "vdevtype" results in a 400 bad request.

Can anyone tell me how to run this API.
I am trying to send the above snippet as the body of the payload to FreeNAS OS using Postman and getting the above errors.
This is the link I am referring to http://api.freenas.org/resources/storage.html#create-resource

Any pointer or help is appreciated.
Thanks in advance.
 
Status
Not open for further replies.
Top