Skip to content

Commit

Permalink
doc:adding "--allow-shrink" in decreasing the size of the rbd block t…
Browse files Browse the repository at this point in the history
…o distinguish from the increasing option

In the original file, the increasing and decreaing of the size of the rbd block shares the same option:
    "rbd resize --size 2048 foo".
However, it is not proper, as the "--allow-shrink" needs to be added while decreasing the size of the rbd block.
As a result, it is necessary to make a distinguish between these two options as follows:
    "rbd resize --size 2048 foo (to increase)"
    "rbd resize --size 2048 foo --allow-shrink (to decrease)"

Signed-off-by: Yehua <chen.yehua@h3c.com>
  • Loading branch information
chenyehua11692 committed Dec 23, 2015
1 parent f14fe56 commit 777564c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/rbd/rados-rbd-cmds.rst
Expand Up @@ -85,7 +85,8 @@ 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::

rbd resize --size 2048 foo
rbd resize --size 2048 foo (to increase)
rbd resize --size 2048 foo --allow-shrink (to decrease)


Removing a Block Device Image
Expand Down

0 comments on commit 777564c

Please sign in to comment.