From: Neeraj Pratap Singh Date: Wed, 21 Sep 2022 11:03:04 +0000 (+0530) Subject: doc: documenting the --human_readable flag for volume info cmd X-Git-Tag: v17.2.6~97^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=968276048791ebc598ed80a44c00b4cef50045cd;p=ceph.git doc: documenting the --human_readable flag for volume info cmd Fixes: https://tracker.ceph.com/issues/57620 Signed-off-by: Neeraj Pratap Singh (cherry picked from commit 2c8add629dd80960f3411d9990cd05ad4d170c07) --- diff --git a/doc/cephfs/fs-volumes.rst b/doc/cephfs/fs-volumes.rst index f52f0589e2d4..7bee4a89f621 100644 --- a/doc/cephfs/fs-volumes.rst +++ b/doc/cephfs/fs-volumes.rst @@ -99,32 +99,11 @@ expected to be disabled on the volume. Fetch the information of a CephFS volume using:: - $ ceph fs volume info vol_name - { - "mon_addrs": [ - "192.168.1.7:40977" - ], - "pending_subvolume_deletions": 0, - "pools": { - "data": [ - { - "avail": 106288709632, - "name": "cephfs.vol_name.data", - "used": 4096 - } - ], - "metadata": [ - { - "avail": 106288709632, - "name": "cephfs.vol_name.meta", - "used": 155648 - } - ] - }, - "used_size": 0 - } + $ ceph fs volume info vol_name [--human_readable] -The output format is json and contains fields as follows. +The ``--human_readable`` flag shows used and available pool capacities in KB/MB/GB. + +The output format is JSON and contains fields as follows: * pools: Attributes of data and metadata pools * avail: The amount of free space available in bytes @@ -134,6 +113,33 @@ The output format is json and contains fields as follows. * used_size: Current used size of the CephFS volume in bytes * pending_subvolume_deletions: Number of subvolumes pending deletion +Sample output of volume info command:: + + $ ceph fs volume info vol_name + { + "mon_addrs": [ + "192.168.1.7:40977" + ], + "pending_subvolume_deletions": 0, + "pools": { + "data": [ + { + "avail": 106288709632, + "name": "cephfs.vol_name.data", + "used": 4096 + } + ], + "metadata": [ + { + "avail": 106288709632, + "name": "cephfs.vol_name.meta", + "used": 155648 + } + ] + }, + "used_size": 0 + } + FS Subvolume groups ------------------- @@ -194,8 +200,9 @@ Check the presence of any subvolume group using:: $ ceph fs subvolumegroup exist The strings returned by the 'exist' command: - * "subvolumegroup exists": if any subvolumegroup is present - * "no subvolumegroup exists": if no subvolumegroup is present + +* "subvolumegroup exists": if any subvolumegroup is present +* "no subvolumegroup exists": if no subvolumegroup is present .. note:: It checks for the presence of custom groups and not the default one. To validate the emptiness of the volume, subvolumegroup existence check alone is not sufficient. The subvolume existence also needs to be checked as there might be subvolumes in the default group. @@ -344,8 +351,9 @@ Check the presence of any subvolume using:: $ ceph fs subvolume exist [--group_name ] The strings returned by the 'exist' command: - * "subvolume exists": if any subvolume of given group_name is present - * "no subvolume exists": if no subvolume of given group_name is present + +* "subvolume exists": if any subvolume of given group_name is present +* "no subvolume exists": if no subvolume of given group_name is present Set custom metadata on the subvolume as a key-value pair using::