From e6d66c2f522c3b1de65bfcea1bb2f26f7478548d Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 2 May 2022 17:40:50 +0200 Subject: [PATCH] update static/schema info Signed-off-by: Thomas Lamprecht --- api-viewer/apidata.js | 16 ++++++++++++++-- pveceph.1-synopsis.adoc | 6 +++--- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/api-viewer/apidata.js b/api-viewer/apidata.js index cbaba3a..1423523 100644 --- a/api-viewer/apidata.js +++ b/api-viewer/apidata.js @@ -33406,6 +33406,15 @@ const apiSchema = [ "optional" : 1, "title" : "PG Autoscale Target Ratio", "type" : "number" + }, + "type" : { + "enum" : [ + "replicated", + "erasure", + "unknown" + ], + "title" : "Type", + "type" : "string" } }, "type" : "object" @@ -33428,7 +33437,8 @@ const apiSchema = [ "additionalProperties" : 0, "properties" : { "add_storages" : { - "description" : "Configure VM and CT storage using the new pool. Always enabled for erasure coded pools.", + "default" : "0; for erasure coded pools: 1", + "description" : "Configure VM and CT storage using the new pool.", "optional" : 1, "type" : "boolean", "typetext" : "" @@ -33453,6 +33463,7 @@ const apiSchema = [ "typetext" : "" }, "erasure-coding" : { + "description" : "Create an erasure coded pool for RBD with an accompaning replicated pool for metadata storage.", "format" : { "device-class" : { "description" : "CRUSH device class. Will create an erasure coded pool plus a replicated pool for metadata.", @@ -33461,6 +33472,7 @@ const apiSchema = [ "type" : "string" }, "failure-domain" : { + "default" : "host", "description" : "CRUSH failure domain. Default is 'host'. Will create an erasure coded pool plus a replicated pool for metadata.", "format_description" : "domain", "optional" : 1, @@ -33468,7 +33480,7 @@ const apiSchema = [ }, "k" : { "description" : "Number of data chunks. Will create an erasure coded pool plus a replicated pool for metadata.", - "minimum" : 1, + "minimum" : 2, "type" : "integer" }, "m" : { diff --git a/pveceph.1-synopsis.adoc b/pveceph.1-synopsis.adoc index 47857fd..1798c3b 100644 --- a/pveceph.1-synopsis.adoc +++ b/pveceph.1-synopsis.adoc @@ -242,9 +242,9 @@ Create Ceph pool The name of the pool. It must be unique. -`--add_storages` `` :: +`--add_storages` `` ('default =' `0; for erasure coded pools: 1`):: -Configure VM and CT storage using the new pool. Always enabled for erasure coded pools. +Configure VM and CT storage using the new pool. `--application` `` ('default =' `rbd`):: @@ -256,7 +256,7 @@ The rule to use for mapping object placement in the cluster. `--erasure-coding` `k= ,m= [,device-class=] [,failure-domain=] [,profile=]` :: -no description available +Create an erasure coded pool for RBD with an accompaning replicated pool for metadata storage. `--min_size` ` (1 - 7)` ('default =' `2`):: -- 2.39.2