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

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>
主站蜘蛛池模板: 禹州市| 若羌县| 大名县| 华池县| 石柱| 虎林市| 涟水县| 五台县| 通辽市| 如东县| 石嘴山市| 广南县| 河南省| 陈巴尔虎旗| 五寨县| 宁南县| 浮梁县| 兴文县| 河间市| 电白县| 东乌| 庐江县| 蓝田县| 哈尔滨市| 威信县| 康保县| 耒阳市| 桃园市| 鸡泽县| 山阴县| 金坛市| 阳谷县| 慈溪市| 桂阳县| 洪雅县| 凤山县| 宜城市| 揭西县| 梁山县| 大新县| 永顺县|