Actions
Bug #73455
closedcephfs-mirror, mgr: interface to observer mirroring stats
Status:
Resolved
Priority:
Normal
Assignee:
Category:
Administration/Usability
Target version:
% Done:
0%
Source:
Development
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
fs
Component(FS):
MDS, cephfs-mirror
Labels (FS):
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
v20.3.0-5784-g8ca4bca1ae
Released In:
Upkeep Timestamp:
2026-03-03T10:57:45+00:00
Description
The interface now for this is practically useless and needs to be improved a lot. Currently,
ceph fs snapshot mirror daemon status
For example:
ceph fs snapshot mirror daemon status | jq
[
{
"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
}
}
]
}
]
}
]
But needs to be enhanced to show per-directory mirroring stats.
Updated by Venky Shankar 5 months ago
The other set of mirroring stats currently is implemented as asok command, which isn't super useful. The new interface should be a mirroring module command and the mirror dameon should periodically update ceph-mgr with mirroring stats.
Updated by Venky Shankar 5 months ago
- Related to Bug #73452: cephfs-mirror: split the snapshot mirror thread into a mirror and crawler thread added
Updated by Kotresh Hiremath Ravishankar 3 months ago
We need to display following essential information
1. fsid of remote
2. fsname of remote - already present
3. monhost - ip
The import key already has this information. Please check below.
>>> base64.b64decode("eyJmc2lkIjogImE4ODI0NGE4LTdkNjYtNDA4Zi05NmY1LTUwNjFhYmEzOGM5YSIsICJmaWxlc3lzdGVtIjogImEiLCAidXNlciI6ICJjbGllbnQubWlycm9yX3JlbW90ZSIsICJzaXRlX25hbWUiOiAicmVtb3RlLXNpdGUiLCAia2V5IjogIkFRQ2N6VU5wWUMwaEVSQUFXOFR0VnpsZDZJL2RtOVBCOGZucFpRPT0iLCAibW9uX2hvc3QiOiAiW3YyOjE5Mi4xNjguMTI0LjM6NDAwNTcsdjE6MTkyLjE2OC4xMjQuMzo0MDA1OF0ifQ==")
b'{"fsid": "a88244a8-7d66-408f-96f5-5061aba38c9a", "filesystem": "a", "user": "client.mirror_remote", "site_name": "remote-site", "key": "AQCczUNpYC0hERAAW8TtVzld6I/dm9PB8fnpZQ==", "mon_host": "[v2:192.168.124.3:40057,v1:192.168.124.3:40058]"}'
>>>
Updated by Kotresh Hiremath Ravishankar about 1 month ago
- Status changed from New to Fix Under Review
- Pull request ID set to 67335
- ceph-qa-suite fs added
- Component(FS) MDS added
Updated by Upkeep Bot 20 days ago
- Status changed from Fix Under Review to Resolved
- Merge Commit set to 8ca4bca1aed17e7301a86e23303a2ef05a33f028
- Fixed In set to v20.3.0-5784-g8ca4bca1ae
- Upkeep Timestamp set to 2026-03-03T10:57:45+00:00
Actions