[pve-devel] [PATCH docs v3 follow-up] pveceph: add section for rbd namespaces

Aaron Lauterer a.lauterer at proxmox.com
Fri Apr 11 10:33:55 CEST 2025


and a few basic examples on how to manage them.

Signed-off-by: Aaron Lauterer <a.lauterer at proxmox.com>
---
Please use this instead of the original v3 docs patch. It seems I forgot
to commit the changes before creating the patch :-/bin

changes since v2:
* {pve} instead of written out
* incorporated other small fixes and style recommendation

 pveceph.adoc | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/pveceph.adoc b/pveceph.adoc
index 79aa045..3680ac2 100644
--- a/pveceph.adoc
+++ b/pveceph.adoc
@@ -800,6 +800,47 @@ You can find a more in-depth introduction to the PG autoscaler on Ceph's Blog -
 https://ceph.io/rados/new-in-nautilus-pg-merging-and-autotuning/[New in
 Nautilus: PG merging and autotuning].
 
+[[pve_ceph_rbd_namespaces]]
+RBD Namespaces
+~~~~~~~~~~~~~~
+
+Namespaces in the rados block device (RBD) layer can be used to have multiple
+{pve} clusters using the same pool, but still be logically separated.
+Namespaces can be managed in the web UI in the 'Node -> Ceph -> Pools' panel.
+
+Alternatively, the `pveceph` or Ceph's `rbd` footnote:[https://docs.ceph.com/en/latest/man/8/rbd/]
+utility can be used too. To list all RBD namespaces of the pool `vmstore`, run the
+following command:
+[source, bash]
+----
+pveceph pool namespace ls vmstore
+----
+The result will be for example:
+[source, bash]
+----
+┌───────────┐
+│ Namespace │
+╞═══════════╡
+│ bar       │
+├───────────┤
+│ foo       │
+└───────────┘
+----
+
+To create a new RBD namespace `baz` in the pool `vmstore`, run:
+[source, bash]
+----
+pveceph pool namespace create vmstore baz --add-storage 1
+----
+The `--add-storage` parameter is optional and when set, will create a new
+storage configuration with the new namespace.
+
+To delete the empty `baz` RBD namespace in pool `vmstore`:
+[source, bash]
+----
+pveceph pool namespace destroy vmstore baz
+----
+
 
 [[pve_ceph_device_classes]]
 Ceph CRUSH & Device Classes
-- 
2.39.5





More information about the pve-devel mailing list