7.5.4 增加peer

为了让rbd-mirror进程找到它peer的集群的存储池

rbd mirror pool peer add <pool-name> <client-name>@<cluster-name>

在主上执行

[root@ansible-0 ~]# rbd --cluster local mirror pool peer add rbd client.admin@remote
ea791af3-79e6-43f5-84eb-f15b51b9bfd3
[root@ansible-0 ~]#
[root@ansible-0 ~]# rbd --cluster remote mirror pool peer add rbd client.admin@local
23f5cf0e-6149-4311-8cb4-004984ede550

查询peer状态

[root@ansible-0 ~]# rbd mirror pool info rbd --cluster local
Mode: image
Peers:
  UUID                                 NAME   CLIENT
  ea791af3-79e6-43f5-84eb-f15b51b9bfd3 remote client.admin
[root@ansible-0 ~]#
[root@ansible-0 ~]# rbd mirror pool info rbd --cluster remote
Mode: image
Peers:
  UUID                                 NAME  CLIENT
  23f5cf0e-6149-4311-8cb4-004984ede550 local client.admin

查询存储池状态

[root@ansible-0 ~]# rbd mirror pool status rbd
health: OK
images: 0 total

results matching ""

    No results matching ""