Configuring pools for RBD mirroring with one way replication
RBD mirroring is configured by enabling it on a pool basis in a primary and secondary Ceph cluster. There are two modes that can be configured with RBD mirroring depending on what level of data you choose to mirror. Note that the enabled RBD mirroring configuration must be the same per pool on primary and secondary clusters.
- Pool mode: Any image in a pool with journaling enabled is mirrored to the secondary cluster.
- Image mode: Only specifically chosen images with mirroring enabled will be mirrored to the secondary cluster. This requires the image to have mirroring enabled for it.
How to do it...
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 thebackup
cluster install and configure therbd-mirror
. The client ID of remote (our user) is what therbd...