]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc:adding "--allow-shrink" in decreasing the size of the rbd block to distinguish... 7020/head
authorYehua <chen.yehua@h3c.com>
Wed, 23 Dec 2015 05:08:44 +0000 (13:08 +0800)
committerYehua <chen.yehua@h3c.com>
Wed, 23 Dec 2015 05:13:04 +0000 (13:13 +0800)
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>
doc/rbd/rados-rbd-cmds.rst

index 37a70a3d4ad6bb1a0801adabaff4547bb0a64533..a8e2302d23e82380dedc9e83dfd1c61b3d90bdf1 100644 (file)
@@ -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