Before any data can be mirrored from the Ceph cluster to the backup cluster we first need install the rbd-mirror daemon on the backup cluster, enable mirroring on the data pool and then add a peer cluster to the pool:
- On ceph-node5 in the backup cluster install and configure the rbd-mirror. The client ID of remote (our user) is what the rbd-mirror daemon will use:
root@ceph-node5 # yum install -y rbd mirror # systemctl enable ceph-rbd-mirror.target # systemctl enable ceph-rbd-mirror@remote # systemctl start ceph-rbd-mirror@remote
- Enable mirroring of the whole pool named data in cluster ceph. The syntax is as follows:
# rbd mirror pool enable <pool> <mode> root@ceph-node1 # rbd mirror pool enable data pool
- Enable mirroring ...