From: Venky Shankar Date: Mon, 29 Mar 2021 08:59:58 +0000 (-0400) Subject: doc: detail `fs snapshot mirror daemon status` mgr command X-Git-Tag: v17.1.0~2316^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=bfaf5e99295dfe9b97bda23c086ca6c791731821;p=ceph-ci.git doc: detail `fs snapshot mirror daemon status` mgr command @leseb noticed that this interface did not have any documentation. Thanks! Fixes: http://tracker.ceph.com/issues/50229 Signed-off-by: Venky Shankar --- diff --git a/doc/dev/cephfs-mirroring.rst b/doc/dev/cephfs-mirroring.rst index 48ff6e4d6ad..6b6f2ff1d1f 100644 --- a/doc/dev/cephfs-mirroring.rst +++ b/doc/dev/cephfs-mirroring.rst @@ -210,8 +210,44 @@ Mirror Daemon Status -------------------- Mirror daemons get asynchronously notified about changes in file system mirroring status -and/or peer updates. CephFS mirror daemons provide admin socket commands for querying -mirror status. To check available commands for mirror status use:: +and/or peer updates. + +CephFS mirroring module provides `mirror daemon status` interface to check mirror daemon +status:: + + $ ceph fs snapshot mirror daemon 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 + } + } + } + } + } + } + +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 +below. + +CephFS mirror daemons provide admin socket commands for querying mirror status. To check +available commands for mirror status use:: $ ceph --admin-daemon /path/to/mirror/daemon/admin/socket help {