From b09401c47ecdcf01f91fd0d2724330891d002f21 Mon Sep 17 00:00:00 2001 From: Zac Dover Date: Fri, 9 Dec 2022 11:02:31 +1000 Subject: [PATCH] doc/rbd: refine "Resizing a Block Device Image" Refine and add unselectable prompts to "Resizing a Block Device Image" in doc/rbd/rados/rbd-cmds.rst. https://tracker.ceph.com/issues/57001 Signed-off-by: Zac Dover (cherry picked from commit 078bec94d08529c87766c12055c365fc53d356a2) --- doc/rbd/rados-rbd-cmds.rst | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/doc/rbd/rados-rbd-cmds.rst b/doc/rbd/rados-rbd-cmds.rst index 449011efc922..1914483799f5 100644 --- a/doc/rbd/rados-rbd-cmds.rst +++ b/doc/rbd/rados-rbd-cmds.rst @@ -147,13 +147,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 -- 2.47.3