Hi cephers,
    I am wondering someone that familiar with function of  rbd-mirror can
give me some hints.
There were 2 clusters site1 and site2. Both sites deployed by command
ceph-deploy.
And there are the steps of my test. With Ubuntu 14.04(kernel 3.19).
1.) On site1 : Copy ceph.conf and ceph.client.admin.keyring to "local.conf"
"local.client.admin.keyring"

​2.) On site2:​ Copy ceph.conf and ceph.client.admin.keyring to
"remote.conf" "remote.client.admin.keyring"

​3.) Copy these files to each sites.​
     Boths site used command "ceph -s --cluster=local" (or remote) can get
result successfully.

4.) Both sites  installed "rbd-mirror".
     Start daemon "rbd-mirror" .
     On site1:$sudo rbd-mirror -m 192.168.168.21:6789
     On site2:$sudo rbd-mirror -m 192.168.168.22:6789

5.) Enable mirror mode "pool" of pool "rbd".
​    $rbd --cluster local mirror pool enable rbd pool
    $rbd --cluster remote mirror pool enable rbd pool​

6.)Peer setting:
    $rbd --cluster local mirror pool peer add rbd client.admin@remote
    $rbd --cluster remote mirror pool peer add rbd client.admin@local

Finally, I think I can create a rbd image and wait it sync to other site.
But nothing happed. And the log seems no error, only 2 messages.
---rbd mirror log-------
2016-05-12 09:48:23.348333 7fd6e5b65c80  0 ceph version 10.2.0
(3a9fba20ec743699b69bd0181dd6c54dc01c64b9), process rbd-mirror, pid 11921
2016-05-12 09:48:23.349093 7fd6e5b65c80  0 pidfile_write: ignore empty
--pid-file

What I missing? All suggestions are welcome

Best wishes,
Mika
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to