From d56606c72a54d9362480aa378e68d847d7cdf011 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 21 Apr 2021 14:11:58 +0200 Subject: [PATCH] ceph: pools: reword, drop PG scale hint, autoscaler makes it obsolete Signed-off-by: Thomas Lamprecht --- pveceph.adoc | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/pveceph.adoc b/pveceph.adoc index e9c4044..f1f798f 100644 --- a/pveceph.adoc +++ b/pveceph.adoc @@ -455,14 +455,14 @@ A pool is a logical group for storing objects. It holds **P**lacement Create and Edit Pools ~~~~~~~~~~~~~~~~~~~~~ +You can create pools through command line or on the web-interface on each {pve} +host under **Ceph -> Pools**. + [thumbnail="screenshot/gui-ceph-pools.png"] When no options are given, we set a default of **128 PGs**, a **size of 3 -replicas** and a **min_size of 2 replicas** for serving objects in a degraded -state. - -NOTE: The default number of PGs works for 2-5 disks. Ceph throws a -'HEALTH_WARNING' if you have too few or too many PGs in your cluster. +replicas** and a **min_size of 2 replicas**, to ensure no data loss occurs if +any OSD fails. WARNING: **Do not set a min_size of 1**. A replicated pool with min_size of 1 allows I/O on an object when it has only 1 replica which could lead to data @@ -479,17 +479,15 @@ footnoteref:[autoscaler,Automated Scaling {cephdocs-url}/rados/operations/placement-groups/#automated-scaling] can automatically scale the PG count for a pool in the background. -You can create pools through command line or on the GUI on each PVE host under -**Ceph -> Pools**. - +.Example for creating a pool over the CLI [source,bash] ---- -pveceph pool create +pveceph pool create --add_storages ---- -If you would like to automatically also get a storage definition for your pool, -mark the checkbox "Add storages" in the GUI or use the command line option -'--add_storages' at pool creation. +TIP: If you would like to automatically also get a storage definition for your +pool, keep the `Add storages' checkbox ticked in the web-interface, or use the +command line option '--add_storages' at pool creation. .Base Options Name:: The name of the pool. This must be unique and can't be changed afterwards. -- 2.39.2