Bug 2272718

Summary: [CephFS-Mirror][RFE] - Provide a command to list the paths configured for cephfs mirroring.
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Hemanth Kumar <hyelloji>
Component: CephFSAssignee: Jos Collin <jcollin>
Status: CLOSED ERRATA QA Contact: Hemanth Kumar <hyelloji>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.1CC: bhkaur, ceph-eng-bugs, cephqe-warriors, gfarnum, jcollin, ngangadh, tserlin, vshankar
Target Milestone: ---Keywords: FutureFeature
Target Release: 8.0z2Flags: gfarnum: needinfo-
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-19.2.0-83.el9cp Doc Type: Enhancement
Doc Text:
.Directories configured for Ceph File System mirroring can now be listed using the ceph fs command Previously, to list the directories configured for mirroring, users had to go through the peer list. With this enhancement, users can now list the directories configured for mirroring using the ceph fs snapshot mirror ls FS_NAME command. This provides a direct list of the directories configured for mirroring.
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-03-06 14:21:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Hemanth Kumar 2024-04-02 18:50:48 UTC
Description of problem:
------------------------

We have "ceph fs snapshot mirror add" and "ceph fs snapshot remove" commands to create and remove the paths configured for mirroring.

It would be good if we could also list the paths that are configured for snapshot mirroring. ex: ceph fs snapshot mirror ls <fs_name>".

At present, the path configured can only be seen using the mirror daemon asok file - 

[root@ceph1-hk-m-qxvm7g-node6 08b68d80-f0a2-11ee-a172-fa163e261bf6]# ceph --admin-daemon ceph-client.cephfs-mirror.ceph1-hk-m-qxvm7g-node6.fwrita.2.94224942373104.asok fs mirror peer status cephfs@1 de3cb61a-1e6d-4fe6-8822-d03d0b9771e1
{
    "/volumes/subvolgroup_1/subvol_1": {
        "state": "idle",
        "last_synced_snap": {
            "id": 12,
            "name": "scheduled-2024-04-02-18_00_00_UTC",
            "sync_duration": 0.030000054000000002,
            "sync_time_stamp": "52535.724746s"
        },
        "snaps_synced": 2,
        "snaps_deleted": 0,
        "snaps_renamed": 0
    }
}

Comment 15 errata-xmlrpc 2025-03-06 14:21:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat Ceph Storage 8.0 security, bug fixes, and enhancement updates), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2025:2457

Comment 16 Red Hat Bugzilla 2025-08-27 04:25:06 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days