On Sat, Apr 30, 2022 at 3:45 PM Denis Polom <denispolom@xxxxxxxxx> wrote: > > Hi, > > I'm setting up RBD mirror between two Ceph clusters and have an issue to > set up rx-tx direction on primary site. > > Issuing the command > > rbd mirror pool peer bootstrap import --direction rx-tx --site-name > primary rbd token Hi Denis, Normally, the token is created on the primary cluster and imported on the secondary cluster. Judging by --site-name primary here, you seem to be doing it the other way around? > > I'm expecting the bi-directional mirror for the pool rbd. But I'm > getting tx-only: > > Mode: pool > Site Name: primary > > Peer Sites: > > UUID: df53d6f6-bd5e-44c1-adbe-90c170a90b27 > Name: secondary > Mirror UUID: af8cc295-0574-4add-98aa-01018082e5e1 > Direction: tx-only > > > Both clusters can talk to each other and I can issue the ceph commands > between both. On secondary cluster direction is rx-tx and this happens > on primary only. Are rbd-mirror daemons running? I would suggest starting from scratch and if it still doesn't work, pasting all steps here. To start from scratch, remove the peers on both sides: Cluster A: $ rbd mirror pool peer remove rbd df53d6f6-bd5e-44c1-adbe-90c170a90b27 $ rbd mirror pool disable rbd Cluster B: $ rbd mirror pool peer remove rbd <see rbd mirror pool info on cluster B> $ rbd mirror pool disable rbd And set up bidirectional mirroring as follows: Cluster A: $ rbd mirror pool enable --site-name cluster-a rbd pool $ rbd mirror pool peer bootstrap create rbd > token-file Cluster B: $ rbd mirror pool peer bootstrap import --site-name cluster-b rbd token-file Thanks, Ilya _______________________________________________ ceph-users mailing list -- ceph-users@xxxxxxx To unsubscribe send an email to ceph-users-leave@xxxxxxx