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

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

 



On Fri, May 13, 2016 at 6:39 AM, Mika c <mika.leaf666@xxxxxxxxx> wrote:
> 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.

For upstart systems, you can run:

# sudo touch /var/lib/ceph/rbd-mirror/{cluster-name}-{id}/done"
# sudo start ceph-rbd-mirror id={id} cluster={cluster-name}

> 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--------------------

The rbd-mirror daemon pulls the updates from a remote cluster, so make
sure (1) you start it with the local cluster name, and (2) when you
configure the peer, the name of the peer aligns to a local
/etc/ceph/<peer cluster name>.conf file which connects to the remote.

> Do I need upgrade kernel to 4.4 or higher?

There are no kernel-specific features for mirroring.

-- 
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]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux