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

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>
主站蜘蛛池模板: 新丰县| 海丰县| 吉隆县| 横峰县| 涡阳县| 大化| 乌拉特后旗| 晋州市| 高要市| 镇安县| 奉化市| 攀枝花市| 福州市| 肇庆市| 临沧市| 沧州市| 合川市| 双辽市| 衡阳县| 哈巴河县| 天镇县| 方山县| 阳信县| 潜江市| 怀安县| 长沙县| 长丰县| 景德镇市| 石狮市| 阳城县| 高雄县| 布拖县| 浦江县| 闵行区| 林甸县| 化隆| 峨眉山市| 合山市| 崇阳县| 无棣县| 阿合奇县|