From: Neeraj Pratap Singh Date: Fri, 22 Apr 2022 06:43:04 +0000 (+0530) Subject: doc: documenting volume info command. X-Git-Tag: v18.0.0~187^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=65a18142fbe847f1eac1179d5a97afb8f9ae208d;p=ceph.git doc: documenting volume info command. Fixes: https://tracker.ceph.com/issues/51434 Signed-off-by: Neeraj Pratap Singh --- diff --git a/doc/cephfs/fs-volumes.rst b/doc/cephfs/fs-volumes.rst index 709d1086a495..afb84de16774 100644 --- a/doc/cephfs/fs-volumes.rst +++ b/doc/cephfs/fs-volumes.rst @@ -97,6 +97,43 @@ The CephX IDs authorized to need to be reauthorized to on-going operations of the clients using these IDs may be disrupted. Mirroring is 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 + } + +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 + * used: The amount of storage consumed in bytes + * name: Name of the pool +* mon_addrs: List of monitor addresses +* used_size: Current used size of the CephFS volume in bytes +* pending_subvolume_deletions: Number of subvolumes pending deletion + FS Subvolume groups -------------------