Re: Try to find the right way to enable rbd-mirror.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Dillaman,
Thank you for getting back to me.
My system is ubuntu, so I using "sudo rbd-mirror --cluster=local --log-file=mirror.log --debug-rbd-mirror=20/5" instead. I was read your reply but still confused.
The image journaling is enable.
---------------rbd info start-------------------
$ rbd info test
rbd image 'test':
        size 1024 MB in 256 objects
        order 22 (4096 kB objects)
        block_name_prefix: rbd_data.853d2ae8944a
        format: 2
        features: layering, exclusive-lock, object-map, fast-diff, deep-flatten, journaling
        flags:
        journal: 853d2ae8944a
        mirroring state: enabled
        mirroring global id: 912e6673-6dd9-480c-bfe1-f134f79a9989
        mirroring primary: true
----------------rbd info end--------------------


And
logs like below, I do not seem any errors. But images never show up on site2.
----------------log start --------------------
2016-05-13 10:33:47.076797 7f70d0469c80 20 rbd-mirror: Mirror::run: enter
2016-05-13 10:33:47.076800 7f70d0469c80 20 rbd-mirror: ClusterWatcher::refresh_pools: enter
2016-05-13 10:33:47.083209 7f70d0469c80 20 rbd-mirror: ClusterWatcher::read_configs: pool rbd has mirroring enabled for peer uuid: 1add7cb3-2cee-43a3-a67c-4c5adb9d455d cluster: remote client: client.admin
2016-05-13 10:33:47.083229 7f70d0469c80 20 rbd-mirror: Mirror::update_replayers: enter
2016-05-13 10:33:47.083231 7f70d0469c80 20 rbd-mirror: Mirror::update_replayers: starting replayer for uuid: 1add7cb3-2cee-43a3-a67c-4c5adb9d455d cluster: remote client: client.admin
2016-05-13 10:33:47.083271 7f70d0469c80 20 rbd-mirror: Replayer::init: replaying for uuid: 1add7cb3-2cee-43a3-a67c-4c5adb9d455d cluster: remote client: client.admin
2016-05-13 10:33:47.091120 7f70d0469c80 20 rbd-mirror: Replayer::init: connected to uuid: 1add7cb3-2cee-43a3-a67c-4c5adb9d455d cluster: remote client: client.admin
2016-05-13 10:33:47.091178 7f70d0469c80 20 rbd-mirror: PoolWatcher::refresh_images: enter
2016-05-13 10:33:47.096067 7f707bfff700 20 rbd-mirror: Replayer::run: enter
2016-05-13 10:33:47.096207 7f707bfff700 20 rbd-mirror: Replayer::set_sources: enter
---------------------log end--------------------

Do I need upgrade kernel to 4.4 or higher?




Best wishes,
Mika
 

2016-05-12 21:10 GMT+08:00 Jason Dillaman <jdillama@xxxxxxxxxx>:
On Thu, May 12, 2016 at 6:33 AM, Mika c <mika.leaf666@xxxxxxxxx> wrote:

> 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

Assuming you use keep "ceph" as the local cluster name and use
"remote" for its peer, you should be able to do the following:

systemctl enable ceph-rbd-mirror@0
systemctl start ceph-rbd-mirror@0

You can override the local cluster name by putting
"CLUSTER=<whatever>" in /etc/sysconfig/ceph. The name of the remote
cluster is derived from the registration added via the "rbd mirror
pool peer add" command.

--
Jason

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux