iSCSIinitiator
Dabbler
- Joined
- Jul 17, 2014
- Messages
- 16
Hi. I'm trying to create a volume that stripes across a set of mirrored vdevs using the REST API. The documentation is here:
http://api.freenas.org/resources/storage.html#create-resource
but it only indicates how to create a volume with one vdev.
Can anyone please help me out with how to do this?
I'd like to do this in one command, but I am happy to do this as multiple commands if necessary (e.g., first create each mirrored vdev, then create a volume striping across them).
The following doesn't seem to work:
It was just a guess and I was hoping that striping would be implied across the list of multiple vdevs (it doesn't work, though). Any suggestions would be really appreciated. Thanks very much!
http://api.freenas.org/resources/storage.html#create-resource
but it only indicates how to create a volume with one vdev.
Can anyone please help me out with how to do this?
I'd like to do this in one command, but I am happy to do this as multiple commands if necessary (e.g., first create each mirrored vdev, then create a volume striping across them).
The following doesn't seem to work:
Code:
POST /api/v1.0/storage/volume/ HTTP/1.1
Content-Type: application/json
{
"volume_name": "tank",
"layout": [
{
"vdevtype": "mirror",
"disks": ["da2", "da3"]
},
{
"vdevtype": "mirror",
"disks": ["da4", "da5"]
}
]
}
It was just a guess and I was hoping that striping would be implied across the list of multiple vdevs (it doesn't work, though). Any suggestions would be really appreciated. Thanks very much!