Bug #52829
opencephfs/mirroring: peer_bootstrap import failed with EPERM
0%
Description
Tried setting up mirroring on vstart cluster as below but peer_bootstrap import failed with EPERM.
#Create vstart cluster
env MDS=2 OSD=3 MON=3 ../src/vstart.sh -d -b -n --without-dashboard
#Create user on primary site
bin/ceph auth get-or-create client.mirror mon 'profile cephfs-mirror' mds 'allow r' osd 'allow rw tag cephfs metadata=*, allow r tag cephfs data=*' mgr 'allow r'
#Append the above user's key to keyring file
#Create secondary fs
bin/ceph fs flag set enable_multiple true --yes-i-really-mean-it
bin/ceph osd pool create cephfs.mr_fs.data
bin/ceph osd pool create cephfs.mr_fs.meta
bin/ceph fs new mr_fs cephfs.mr_fs.meta cephfs.mr_fs.data
#Create user on secondary site
bin/ceph fs authorize mr_fs client.mirror_remote / rwps
#Append the above user's key to keyring file
#Enable mirroring
bin/ceph mgr module enable mirroring
bin/ceph fs snapshot mirror enable a
#start mirroring daemon
bin/cephfs-mirror --id mirror
#bootstrap peer
#ceph fs snapshot mirror peer_bootstrap create <remote_fs_name> <client_entity> <site-name>
bin/ceph fs snapshot mirror peer_bootstrap create mr_fs client.mirror_remote site-remote
#Import token
#ceph fs snapshot mirror peer_bootstrap import <fs_name> <token>
bin/ceph fs snapshot mirror peer_bootstrap import a eyJmc2lkIjogIjRjMTMxY2JiLTg4NDctNDIwNS1hYjU5LWEyM2I2YzVhMzk3YiIsICJmaWxlc3lzdGVtIjogIm1yX2ZzIiwgInVzZXIiOiAiY2xpZW50Lm1pcnJvcl9yZW1vdGUiLCAic2l0ZV9uYW1lIjogInNpdGUtcmVtb3RlIiwgImtleSI6ICJBUUR6ZmwxaHdsekJEaEFBNGI4cXk5MWU3empka0xvTWFWOEIxZz09IiwgIm1vbl9ob3N0IjogIlt2MjoxOTIuMTY4LjEuMTI6NDA4ODYsdjE6MTkyLjE2OC4xLjEyOjQwODg3XSBbdjI6MTkyLjE2OC4xLjEyOjQwODg4LHYxOjE5Mi4xNjguMS4xMjo0MDg4OV0gW3YyOjE5Mi4xNjguMS4xMjo0MDg5MCx2MToxOTIuMTY4LjEuMTI6NDA4OTFdIn0=
Error EPERM: failed to add peer
Files
Updated by Kotresh Hiremath Ravishankar over 2 years ago
- Project changed from Ceph to CephFS
- Component(FS) cephfs-mirror added
Updated by Kotresh Hiremath Ravishankar over 2 years ago
- File mgr.x.log.1.tar.gz mgr.x.log.1.tar.gz added
- File mgr.x.log.2.tar.gz mgr.x.log.2.tar.gz added
Attaching mgr logs split into two files