diff options
author | colemitchell <cole.mitchell@gmail.com> | 2022-12-09 07:17:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-09 07:17:17 +0100 |
commit | 9ccf87c1658331660127cc34f715664d907e6294 (patch) | |
tree | 1f2afc3f04df27e3976545b5a196fe6d1a76fda5 /doc | |
parent | Merge pull request #49343 from zdover23/wip-doc-2022-12-09-rbd-rados-rbd-cmds... (diff) | |
parent | doc/rbd: refine "Resizing a Block Device Image" (diff) | |
download | ceph-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')
-rw-r--r-- | doc/rbd/rados-rbd-cmds.rst | 23 |
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 |