Project

General

Profile

Feature #24773

RBD mirroring delay replication

Added by duc pham over 5 years ago. Updated over 5 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Target version:
% Done:

0%

Source:
Q/A
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Hi guys,

I'm testing feature delay replication of rbd mirroring in mimic release. I have configurated my cluster flowing guide of redhat https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/3/html/block_device_guide/block_device_mirroring
But i'm not successful, everything is not changed.
Please help me handle the problem.
Thanks.

History

#1 Updated by duc pham over 5 years ago

Hi guys,
I'm testing feature delay replication of rbd mirroring in mimic release. I have configurated my cluster flowing guide of redhat https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/3/html/block_device_guide/block_device_mirroring
I configurated successfully rbd mirroring for two clusters, named ceph and backup. So, i want to configurate feature delay replication. I've worked steps as flowing:
step 1: create a image in ceph cluster
rbd -p data create disk-0 --size 1024 --image-feature exclusive-lock,journaling
result on both cluster have a image named disk-0 in data pool.
step 2: config delay replication for image
rbd image-meta set data/disk-0 conf_rbd_mirroring_replay_delay 600
step 3: i tested the delay replication by deleting disk-0 image in ceph cluster
rbd -p data remove disk-0
if configuration delay replication was succesfull, then 600 seconds disk-0 on backup cluster is deleted. But the image is deleted immediately.
In other use case, i changed in file config on both clusters. In global section, i added `rbd mirroring replay delay = 600` and restart ceph-mon daemon. The daemon ceph-mon running with config mirroring delay:
```
$ ceph daemon /var/run/ceph/ceph-mon.ceph.asok config show | grep mirroring
"rbd_mirroring_delete_delay": "0",
"rbd_mirroring_replay_delay": "600",
"rbd_mirroring_resync_after_disconnect": "false",
```
When i create a rbd image in ceph cluster, the image is replicated immediately in backup cluster.
Please help me handle the problem.
Thanks.

#2 Updated by Jason Dillaman over 5 years ago

  • Status changed from New to Duplicate

See #24818

Also available in: Atom PDF