From: Zac Dover Date: Thu, 8 Dec 2022 23:53:14 +0000 (+1000) Subject: doc/rbd: refine "Creating a Block Device Image" X-Git-Tag: v18.1.0~704^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F49338%2Fhead;p=ceph.git 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 --- diff --git a/doc/rbd/rados-rbd-cmds.rst b/doc/rbd/rados-rbd-cmds.rst index 70def1089625..449011efc922 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 ===========================