Awesome, glad I could help! Zitat von "Adiga, Anantha" <anantha.adiga@intel.com>:
Hi Eugen,
Thank you so much. Yes, that fixed the issue: removed the peer uuid from the primary cluster. This removed the attribute from the backup cluster as well. Then import peer bootstrap token worked.
Regards, Anantha
-----Original Message----- From: Eugen Block via ceph-users <ceph-users@ceph.io> Sent: Thursday, April 23, 2026 12:56 AM To: ceph-users@ceph.io Subject: [ceph-users] Re: CephFS Snapshot Mirroring - "File exists already an active peer" Error (EEXIST) Despite Empty
Hi,
a quick look into the code [0] shows (note that I'm not a developer):
def set_mirror_info(local_cluster_id, local_fsid, remote_fs): log.info(f'setting {local_cluster_id}::{local_fsid} on remote') try: remote_fs.setxattr('/', 'ceph.mirror.info', f'cluster_id={local_cluster_id} fs_id={local_fsid}'.encode('utf-8'), os.XATTR_CREATE) except cephfs.Error as e: if e.errno == errno.EEXIST:
My interpretation is that the setxattr command fails on the remote site. Could this be an auth caps issue? Did you verify the keyrings and their permissions?
This is the only lead I got.
Regards, Eugen
[0] https://github.com/ceph/ceph/blob/267bd6273e173c3e9e9ed8693aa73d91a20cbd6a/s...
Zitat von "Adiga, Anantha via ceph-users" <ceph-users@ceph.io>:
Hi,
This is issue with CephFS snapshot mirroring setup between two clusters and would appreciate your assistance.
Environment:
* Primary Cluster: Ceph 15.2.13/16.2.5 (mixed versions) [cid:image001.png@01DCD199.2933E2E0] * Backup Cluster: Ceph 17.2.7/18.2.7 (mixed versions) [cid:image002.png@01DCD199.2933E2E0] * Filesystem: cephfs * Issue: Unable to import peer bootstrap token
Problem Description: When attempting to import a peer bootstrap token using: ceph fs snapshot mirror peer_bootstrap import cephfs <token> I receive the error: Error EEXIST: already an active peer mgr.server reply reply (17) File exists already an active peer However, ceph fs snapshot mirror peer_list cephfs returns an empty list [], indicating no peers are configured.
Steps Performed: Initial Setup: 1. Enabled mirroring module: ceph mgr module enable mirroring 2. Deployed cephfs-mirror service: ceph orch apply cephfs-mirror 3. Enabled mirroring on filesystem: ceph fs snapshot mirror enable cephfs 4. Created remote user and bootstrap token on backup cluster 5. Verified mirroring daemons are running: ceph fs snapshot mirror daemon status Troubleshooting Attempts: 1. Reset filesystem mirroring: ceph fs snapshot mirror disable cephfs ceph fs snapshot mirror enable cephfs 2. Module reset: ceph mgr module disable mirroring ceph mgr module enable mirroring 3. Service recreation: ceph orch rm cephfs-mirror ceph orch apply cephfs-mirror 4. Checked for stale configuration: o ceph config-key ls | grep mirror shows: mgr/cephadm/spec.cephfs-mirror o ceph fs snapshot mirror dirmap cephfs returns empty o ceph fs snapshot mirror status cephfs shows no active mirroring
Current Status:
* Mirroring daemons: Running and visible in daemon status * Peer list: Empty [] * Filesystem mirroring: Enabled * Error persists: EEXIST despite no visible peers
Diagnostic Information:
* MGR logs show: mgr.server reply reply (17) File exists already an active peer * No connectivity issues between clusters (ports 6789, 3300, 6800+ tested) * Both clusters are healthy with no other issues
Regards, Anantha
_______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io