官术网_书友最值得收藏!

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 status in backup cluster to verify single image being mirrored:
          # rbd mirror pool status
  1. Check the image status in the backup cluster to validate the statue of this image and that image being mirrored is image-1:
         # rbd mirror image status data/image-1
主站蜘蛛池模板: 金沙县| 洛扎县| 汤阴县| 潼南县| 遂宁市| 梅州市| 临沧市| 石阡县| 公安县| 七台河市| 应城市| 平顶山市| 石台县| 宜川县| 靖西县| 乌兰察布市| 茌平县| 平凉市| 衡山县| 临沧市| 襄汾县| 孟州市| 永平县| 双城市| 宣武区| 邻水| 囊谦县| 通山县| 咸阳市| 武强县| 巧家县| 绥芬河市| 马尔康县| 金门县| 西藏| 汝南县| 松溪县| 沈丘县| 南靖县| 河北区| 林西县|