]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: documenting volume info command.
authorNeeraj Pratap Singh <neesingh@redhat.com>
Fri, 22 Apr 2022 06:43:04 +0000 (12:13 +0530)
committerNeeraj Pratap Singh <neesingh@redhat.com>
Tue, 23 Aug 2022 18:17:22 +0000 (23:47 +0530)
Fixes: https://tracker.ceph.com/issues/51434
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
(cherry picked from commit 65a18142fbe847f1eac1179d5a97afb8f9ae208d)

doc/cephfs/fs-volumes.rst

index 0e253f39af0fea317f81cfc68b2349132b59b524..ca776581d6371dd68bd050516c39246fddf26f5f 100644 (file)
@@ -97,6 +97,43 @@ The CephX IDs authorized to <vol_name> need to be reauthorized to <new_vol_name>
 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
 -------------------