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...

  1. 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
  1. Enable image mirroring on the data pool on the ceph and backup clusters:
        # rbd mirror pool enable data image
  1. Add ceph cluster as a peer to backup cluster:
         root@ceph-node5 # rbd mirror pool peer add                            data client.local@ceph
  1. Validate that peer is successfully added:
        # rbd mirror pool info
  1. In the ceph cluster, enable image mirroring on image-1, image-2 and image-3 will not be mirrored:
        root@ceph-node1 # rbd mirror image enable data/image-1
  1. Check mirror ...

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