Image mirroring can be used when you choose to only want to mirror a specific subset of images and not an entire pool. The next recipe we will enable mirroring on a single image in the data pool and not mirror the other two images in the pool. This recipe requires you to have completed step 1 - step 9 in Disaster recovery replication using RBD mirroring recipe and have rbd-mirror
running on backup site:
- Create three images in the
ceph
cluster as we did in the previous recipe:
# rbd create image-1 --size 1024 --pool data --image-feature exclusive-lock,journaling
- Enable image mirroring on the data pool on the
ceph
andbackup
clusters:
# rbd mirror pool enable data image
- Add
ceph
cluster as a peer tobackup
cluster:
root@ceph-node5 # rbd mirror pool peer add
data client.local@ceph
- Validate that peer is successfully added:
# rbd mirror pool info
- In the
ceph
cluster, enable image mirroring...