Project

General

Profile

Actions

Support #24818

closed

RBD mirroring delay replication

Added by duc pham almost 6 years ago. Updated almost 6 years ago.

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

0%

Tags:
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

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.

Actions

Also available in: Atom PDF