O'Reilly logo

Ceph Cookbook - Second Edition by Karan Singh, Michael Hackett, Vikhyat Umrao

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

  1. 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
  1. 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
  1. Enable mirroring ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required