pool.create =========== Create a new ZFS Pool. .. examples(websocket):: Create a pool named "tank", raidz1 with 3 disks, 1 cache disk, 1 ZIL/log disk and 1 hot spare disk. :::javascript { "id": "6841f242-840a-11e6-a437-00e04d680384", "msg": "method", "method": "pool.create", "params": [{ "name": "tank", "topology": { "data": [ {"type": "RAIDZ1", "disks": ["da1", "da2", "da3"]} ], "cache": [ {"type": "STRIPE", "disks": ["da4"]} ], "log": [ {"type": "RAIDZ1", "disks": ["da5"]} ], "spares": ["da6"] } }] } .. raw:: html
Must be at least 1
characters long
Must be at most 50
characters long
If set, create a ZFS encrypted root dataset for this pool.
Value must be strictly greater than 0
Make sure no block of data is duplicated in the pool. If set to VERIFY
and two blocks have similar signatures,
byte-to-byte comparison is performed to ensure that the blcoks are identical. This should be used in special
circumstances as it carries a significant overhead.
Specify configuration for encryption of root dataset.
No Additional PropertiesAutomatically generate the key to be used for dataset encryption.
Value must be greater or equal to 100000
Must be specified if encryption for root dataset is desired with a passphrase as a key.
Must be at least 8
characters long
A hex-encoded key specified as an alternative to using passphrase
.
Must be at least 64
characters long
Must be at most 64
characters long
{
"cache": [
{
"disks": [
"da4"
],
"type": "STRIPE"
}
],
"data": [
{
"disks": [
"da1",
"da2",
"da3"
],
"type": "RAIDZ1"
}
],
"log": [
{
"disks": [
"da5"
],
"type": "STRIPE"
}
],
"spares": [
"da6"
]
}
All vdevs must be of the same type
.
Must contain a minimum of 1
items
Defaults to zfs.VDEV_DRAID_MAX_CHILDREN
.
"STRIPE"
{
"bytes_issued": null,
"bytes_processed": null,
"bytes_to_process": null,
"end_time": null,
"errors": null,
"function": null,
"pause": null,
"percentage": null,
"start_time": null,
"state": null,
"total_secs_left": null
}
{
"bytes_reflowed": 978944,
"bytes_to_reflow": 835584,
"end_time": null,
"expanding_vdev": 0,
"percentage": 85.35564853556485,
"start_time": null,
"state": "FINISHED",
"total_secs_left": null,
"waiting_for_resilver": 0
}
{
"parsed": "off",
"rawvalue": "off",
"source": "DEFAULT",
"value": "off"
}