Description
This method is used to create a new storage pool.
Request
For definitions of parameters, see section Properties
Name
|
Parameter Name
|
Required?
|
disc devices
|
selectedItems
|
Y
|
pool name
|
pool_name
|
Y
|
raid level
|
raid_abbr
|
Y
|
force pool creation
|
forcedCreation
|
N
|
selectedItems - this is an array of devices; e.g., { "/dev/sdb", "/dev/sdc" }
raid_abbr - the RAID type:
"0" - No RAID, JBOD
"1" - RAID 1/10 (mirror, striped mirrors)
"5" - RAID-Z (single parity)
"6" - RAID-Z2 (dual parity)
"7" - RAID-Z3 (triple parity)
Response
Example
{
"result": {
"msg": "Create pool 'pool1' was successful.",
"records": [],
"success": true,
"total": 0
},
"session_id": 27088,
"success": true
}
|