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

How to do it...

  1. Both clients must have the rbd-mirror installed and running:
        # yum install rbd-mirror
# systemctl enable ceph-rbd-mirror.target
# systemctl enable ceph-rbd-mirror@<client-id>
# systemctl start ceph-rbd-mirror@<client-id>
  1. As with one way mirroring, both clients must have copies of the respective cluster configuration files and keyrings for client users for the mirrored pools.
  2. The pools to be replicated must have mirroring enabled at the pool or image level in both clusters:
        # rbd mirror pool enable <pool> <replication type>
# rbd mirror pool enable <pool> <replication type>
  1. Validate that mirroring has been successfully enabled:
        # rbd mirror pool status data
  1. The pools to be replicated must have a peer registered for mirroring in both clusters:
       # rbd mirror pool peer add <pool> 
client.<user>@<primary cluster name>
# rbd mirror pool peer add <pool>
client.<user>@<secondary cluster name>
主站蜘蛛池模板: 绥中县| 陵川县| 华容县| 旬阳县| 攀枝花市| 广州市| 顺平县| 涞水县| 铜鼓县| 克什克腾旗| 南投市| 泗水县| 威海市| 凌海市| 鹿泉市| 深圳市| 太仆寺旗| 承德市| 如东县| 平顶山市| 肇源县| 紫金县| 商城县| 中牟县| 荆州市| 正定县| 凤庆县| 壶关县| 来凤县| 黑水县| 莎车县| 浦县| 鄂尔多斯市| 景泰县| 虹口区| 钟祥市| 社会| 陆丰市| 敖汉旗| 犍为县| 泽州县|