From 20b14437d6847fefdd3435bc9ec7a8b5580968f8 Mon Sep 17 00:00:00 2001 From: Zac Dover Date: Fri, 9 Dec 2022 09:53:14 +1000 Subject: [PATCH] doc/rbd: refine "Creating a Block Device Image" Refine the English and prompts in "Creating a Block Device Image" in doc/rbd/rados-rbd-cmds.rst. https://tracker.ceph.com/issues/57001 Signed-off-by: Zac Dover --- doc/rbd/rados-rbd-cmds.rst | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/doc/rbd/rados-rbd-cmds.rst b/doc/rbd/rados-rbd-cmds.rst index 70def1089625e..449011efc9223 100644 --- a/doc/rbd/rados-rbd-cmds.rst +++ b/doc/rbd/rados-rbd-cmds.rst @@ -65,24 +65,30 @@ Creating a Block Device Image ============================= Before you can add a block device to a node, you must create an image for it in -the :term:`Ceph Storage Cluster` first. To create a block device image, execute -the following:: +the :term:`Ceph Storage Cluster`. To create a block device image, run a command of this form: - rbd create --size {megabytes} {pool-name}/{image-name} +.. prompt:: bash $ + + rbd create --size {megabytes} {pool-name}/{image-name} For example, to create a 1GB image named ``bar`` that stores information in a -pool named ``swimmingpool``, execute the following:: +pool named ``swimmingpool``, run this command: + +.. prompt:: bash $ + + rbd create --size 1024 swimmingpool/bar - rbd create --size 1024 swimmingpool/bar +If you don't specify a pool when you create an image, then the image will be +stored in the default pool ``rbd``. For example, if you ran this command, you +wuold create a 1GB image named ``foo`` that is stored in the default pool +``rbd``: -If you don't specify pool when creating an image, it will be stored in the -default pool ``rbd``. For example, to create a 1GB image named ``foo`` stored in -the default pool ``rbd``, execute the following:: +.. prompt:: bash $ - rbd create --size 1024 foo + rbd create --size 1024 foo -.. note:: You must create a pool first before you can specify it as a - source. See `Storage Pools`_ for details. +.. note:: You must create a pool before you can specify it as a source. See + `Storage Pools`_ for details. Listing Block Device Images =========================== -- 2.39.5