Bug 2272718 - [CephFS-Mirror][RFE] - Provide a command to list the paths configured for cephfs mirroring.
Summary: [CephFS-Mirror][RFE] - Provide a command to list the paths configured for ce...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: CephFS
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 8.0z2
Assignee: Jos Collin
QA Contact: Hemanth Kumar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-04-02 18:50 UTC by Hemanth Kumar
Modified: 2025-08-27 04:25 UTC (History)
8 users (show)

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.
Clone Of:
Environment:
Last Closed: 2025-03-06 14:21:49 UTC
Embargoed:
gfarnum: needinfo-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 67292 0 None None None 2024-07-31 09:34:37 UTC
Red Hat Issue Tracker RHCEPH-8727 0 None None None 2024-04-02 18:54:26 UTC
Red Hat Product Errata RHBA-2025:2457 0 None None None 2025-03-06 14:21:52 UTC

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


Note You need to log in before you can comment on or make changes to this bug.