Re: RBD mirroring bootstrap peers - direction

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/15/21 14:18, Arthur Outhenin-Chalandre wrote:
On 12/15/21 13:50, Torkil Svensgaard wrote:
Ah, so as long as I don't run the mirror daemons on site-a there is no
risk of overwriting production data there?

To be perfectly clear there should be no risk whatsoever (as Ilya also
said). I suggested to not run rbd-mirror on site-a so that replication
from site-b to site-a wouldn't be a thing at all.

That being said we also run a setup where we only need one way
replication but for the same reasons posted by Ilya we use rx-tx and run
rbd-mirror in both sites.

Hi Arthur

Thanks for the clarification.

I set up one peer with rx-tx, and it seems to replicate as it should, but the site-a status looks a little odd. Why down+unknown and status not found? Because of rx-tx peer with only one way active?

site-a:
rbd mirror image status rbd_internal/store athos: Thu Dec 16 07:51:26 2021

store:
  global_id:   4888eab6-f6f4-4a11-9e91-e3446651f911
  state:       down+unknown
  description: status not found
  last_update:
  peer_sites:
    name: dcn-ceph
    state: up+replaying
description: replaying, {"bytes_per_second":272384136.53,"bytes_per_snapshot":0.0,"remote_snapshot_timestamp":16395851
29,"replay_state":"syncing","seconds_until_synced":0,"syncing_percent":12,"syncing_snapshot_timestamp":1639585129}
    last_update: 2021-12-16 07:51:04
  snapshots:
20 .mirror.primary.4888eab6-f6f4-4a11-9e91-e3446651f911.137a0eeb-c54d-4f0f-9cb1-3cdc87a891d4 (peer_uuids:[bf1978c0-423
1-43ca-831f-669bf4a898b2])

site-b:
rbd mirror image status rbd_internal/store dcn-ceph-01: Thu Dec 16 06:53:46 2021

store:
  global_id:   4888eab6-f6f4-4a11-9e91-e3446651f911
  state:       up+replaying
description: replaying, {"bytes_per_second":252701491.2,"bytes_per_snapshot":0.0,"remote_snapshot_timestamp":1639585129,"replay_s
tate":"syncing","seconds_until_synced":0,"syncing_percent":13,"syncing_snapshot_timestamp":1639585129}
  service:     dcn-ceph-01.itashe on dcn-ceph-01
  last_update: 2021-12-16 06:53:34

Here's one with rx only. That looks more peaceful:

site-a:
rbd mirror image status rbd/mail athos: Thu Dec 16 07:58:10 2021

mail:
  global_id:   2b3d355c-d095-45a4-8c29-80f059d78483
  snapshots:
116 .mirror.primary.2b3d355c-d095-45a4-8c29-80f059d78483.82d2240a-319f-4990-84e8-98284864032c (peer_uuids:[cabf78ce-f6
5f-4a27-a648-20b3fd326647])


site-b:
rbd mirror image status rbd/mail dcn-ceph-01: Thu Dec 16 06:57:22 2021

mail:
  global_id:   2b3d355c-d095-45a4-8c29-80f059d78483
  state:       up+replaying
description: replaying, {"bytes_per_second":0.0,"bytes_per_snapshot":1140323336192.0,"local_snapshot_timestamp":1639573987,"remot
e_snapshot_timestamp":1639573987,"replay_state":"idle"}
  service:     dcn-ceph-01.itashe on dcn-ceph-01
  last_update: 2021-12-16 06:57:07

Mvh.

Torkil

--
Torkil Svensgaard
Sysadmin
MR-Forskningssektionen, afs. 714
DRCMR, Danish Research Centre for Magnetic Resonance
Hvidovre Hospital
Kettegård Allé 30
DK-2650 Hvidovre
Denmark
Tel: +45 386 22828
E-mail: torkil@xxxxxxxx
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux