]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: adjust `daemon status` section with changed JSON
authorVenky Shankar <vshankar@redhat.com>
Tue, 20 Apr 2021 10:14:18 +0000 (06:14 -0400)
committerVenky Shankar <vshankar@redhat.com>
Wed, 21 Apr 2021 01:18:54 +0000 (21:18 -0400)
Signed-off-by: Venky Shankar <vshankar@redhat.com>
doc/cephfs/cephfs-mirroring.rst
doc/dev/cephfs-mirroring.rst

index cb3bac18659dd22166db4a5947daddbd07700283..82dd6ada8ea3350c16ba9c6adb5c47ba433aa3ed 100644 (file)
@@ -166,26 +166,32 @@ Mirroring Status
 CephFS mirroring module provides `mirror daemon status` interface to check mirror daemon status::
 
   $ ceph fs snapshot mirror daemon status <fs_name>
-  "14135": {
-    "1": {
-      "name": "a",
-      "directory_count": 0,
-      "peers": {
-        "ae3f22e6-1c72-4a81-8d5d-eebca3bfd29d": {
-          "remote": {
-            "client_name": "client.mirror_remote",
-            "cluster_name": "site-remote",
-            "fs_name": "backup_fs"
-          },
-          "stats": {
-            "failure_count": 0,
-            "recovery_count": 0
+  [
+    {
+      "daemon_id": 284167,
+      "filesystems": [
+        {
+          "filesystem_id": 1,
+          "name": "a",
+          "directory_count": 1,
+          "peers": [
+            {
+              "uuid": "02117353-8cd1-44db-976b-eb20609aa160",
+              "remote": {
+                "client_name": "client.mirror_remote",
+                "cluster_name": "ceph",
+                "fs_name": "backup_fs"
+              },
+              "stats": {
+                "failure_count": 1,
+                "recovery_count": 0
+              }
             }
-          }
+          ]
         }
-      }
+      ]
     }
-  }
+  ]
 
 An entry per mirror daemon instance is displayed along with information such as configured
 peers and basic stats. For more detailed stats, use the admin socket interface as detailed
index 6b6f2ff1d1fa4878f05c2e0d6226774732fd7d87..7ce6874db535e2c6d4997e5c4eefaf2f157abb05 100644 (file)
@@ -220,27 +220,32 @@ status::
 E.g::
 
   $ ceph fs snapshot mirror daemon status a | jq
-  {
-  "14135": {
-    "1": {
-      "name": "a",
-      "directory_count": 0,
-      "peers": {
-        "ae3f22e6-1c72-4a81-8d5d-eebca3bfd29d": {
-          "remote": {
-            "client_name": "client.mirror_remote",
-            "cluster_name": "site-remote",
-            "fs_name": "backup_fs"
-          },
-          "stats": {
-            "failure_count": 0,
-            "recovery_count": 0
+  [
+    {
+      "daemon_id": 284167,
+      "filesystems": [
+        {
+          "filesystem_id": 1,
+          "name": "a",
+          "directory_count": 1,
+          "peers": [
+            {
+              "uuid": "02117353-8cd1-44db-976b-eb20609aa160",
+              "remote": {
+                "client_name": "client.mirror_remote",
+                "cluster_name": "ceph",
+                "fs_name": "backup_fs"
+              },
+              "stats": {
+                "failure_count": 1,
+                "recovery_count": 0
+              }
             }
-          }
+          ]
         }
-      }
+      ]
     }
-  }
+  ]
 
 An entry per mirror daemon instance is displayed along with information such as configured
 peers and basic stats. For more detailed stats, use the admin socket interface as detailed