From: Dhairya Parmar Date: Mon, 17 Mar 2025 16:40:23 +0000 (+0530) Subject: doc/cephfs: document resizing subvolumes using units X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4e7c5b11bb2892a77330842666d1d6384ee861bd;p=ceph.git doc/cephfs: document resizing subvolumes using units Fixes: https://tracker.ceph.com/issues/62673 Signed-off-by: Dhairya Parmar --- diff --git a/doc/cephfs/fs-volumes.rst b/doc/cephfs/fs-volumes.rst index d2c6b7273ef5..3464940d3d1a 100644 --- a/doc/cephfs/fs-volumes.rst +++ b/doc/cephfs/fs-volumes.rst @@ -429,6 +429,15 @@ This command resizes the subvolume quota, using the size specified by ``new_size``. The ``--no_shrink`` flag prevents the subvolume from shrinking below the current "used size" of the subvolume. +Resizing can also be done using human-friendly units:: + + ceph fs subvolume resize foo subvol1 100KiB + ceph fs subvolume resize foo subvol1 200.45KiB + ceph fs subvolume resize foo subvol1 300KB + +.. note:: Values will be strictly cast to IEC units even when SI units + are input, i.e. 1{K|KB|Ki|KiB} all translate to 1024 bytes. + The subvolume can be resized to an unlimited (but sparse) logical size by passing ``inf`` or ``infinite`` as ````.