Configuring image mirroring
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:
How to do it...
- Create three images in the
cephcluster 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
cephandbackupclusters:
# rbd mirror pool enable data image- Add
cephcluster as a peer tobackupcluster:
root@ceph-node5 # rbd mirror pool peer add
data client.local@ceph- Validate that peer is successfully added:
# rbd mirror pool info
- In the
cephcluster, enable image mirroring...