×
Menu
Index

createpool

 

Description

 
Create a new storage pool.
 
POST createpool
 

Request

 
In addition to the Standard Request Structure, the following parameters are required.
 
For more information, consult section Parameters
Parameter
Required?
selectedItems
Y
pool_name
Y
raid_abbr
Y
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
}
Made with help of Dr.Explain
Copyright (c) SoftNAS LLC