summaryrefslogtreecommitdiffstats
path: root/doc/rbd
diff options
context:
space:
mode:
authorcolemitchell <cole.mitchell@gmail.com>2022-12-09 07:17:17 +0100
committerGitHub <noreply@github.com>2022-12-09 07:17:17 +0100
commit9ccf87c1658331660127cc34f715664d907e6294 (patch)
tree1f2afc3f04df27e3976545b5a196fe6d1a76fda5 /doc/rbd
parentMerge pull request #49343 from zdover23/wip-doc-2022-12-09-rbd-rados-rbd-cmds... (diff)
parentdoc/rbd: refine "Resizing a Block Device Image" (diff)
downloadceph-9ccf87c1658331660127cc34f715664d907e6294.tar.xz
ceph-9ccf87c1658331660127cc34f715664d907e6294.zip
Merge pull request #49341 from zdover23/wip-doc-2022-12-09-rbd-rados-rbd-cmds-resizing-a-block-device-image-semantics
doc/rbd: refine "Resizing a Block Device Image" Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
Diffstat (limited to 'doc/rbd')
-rw-r--r--doc/rbd/rados-rbd-cmds.rst23
1 files changed, 17 insertions, 6 deletions
diff --git a/doc/rbd/rados-rbd-cmds.rst b/doc/rbd/rados-rbd-cmds.rst
index 0372ee555c5..bfd75c09fe4 100644
--- a/doc/rbd/rados-rbd-cmds.rst
+++ b/doc/rbd/rados-rbd-cmds.rst
@@ -176,13 +176,24 @@ Resizing a Block Device Image
=============================
:term:`Ceph Block Device` images are thin provisioned. They don't actually use
-any physical storage until you begin saving data to them. However, they do have
-a maximum capacity that you set with the ``--size`` option. If you want to
-increase (or decrease) the maximum size of a Ceph Block Device image, execute
-the following::
+any physical storage until you begin saving data to them. However, they do have
+a maximum capacity that you set with the ``--size`` option. If you want to
+increase (or decrease) the maximum size of a Ceph Block Device image, run one
+of the following commands:
- rbd resize --size 2048 foo (to increase)
- rbd resize --size 2048 foo --allow-shrink (to decrease)
+Increasing the Size of a Block Device Image
+-------------------------------------------
+
+.. prompt:: bash $
+
+ rbd resize --size 2048 foo
+
+Decreasing the Size of a Block Device Image
+-------------------------------------------
+
+.. prompt:: bash $
+
+ rbd resize --size 2048 foo --allow-shrink
Removing a Block Device Image