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

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>
主站蜘蛛池模板: 河津市| 镇雄县| 景谷| 惠水县| 镇原县| 镇原县| 甘洛县| 崇州市| 绵竹市| 连州市| 楚雄市| 沅江市| 安顺市| 万州区| 南乐县| 将乐县| 泰来县| 阿巴嘎旗| 双辽市| 广灵县| 蓝山县| 威宁| 江川县| 龙游县| 会泽县| 康平县| 安福县| 河西区| 新田县| 文化| 庐江县| 都江堰市| 孟州市| 晴隆县| 环江| 平湖市| 北海市| 新营市| 康平县| 肇东市| 安义县|