[Ocfs2-tools-devel] [PATCH] add support for Ceph block devices

Joseph Qi jiangqi903 at gmail.com
Mon Feb 6 16:54:24 PST 2017


Hi Frank,

Please rebase your patch onto master branch, which can be cloned at:

https://github.com/markfasheh/ocfs2-tools/

Thanks,

Joseph

On 17/2/6 19:40, Frank Brendel wrote:
> Hi,
>
> the global-heartbeat does not work with ceph block devices.
> Starting the cluster fails with:
> o2cb.init: o2cb: Heartbeat region could not be found
>
> This patch adds support for Ceph block devices /dev/rbd to be used as
> global-heartbeat.
>
>
> Regards
> Frank
>
>
> diff -Npru ocfs2-tools-1.8.6.orig/o2cb_ctl/o2cb_scandisk.c
> ocfs2-tools-1.8.6/o2cb_ctl/o2cb_scandisk.c
> --- ocfs2-tools-1.8.6.orig/o2cb_ctl/o2cb_scandisk.c     2016-07-11
> 04:45:18.000000000 +0200
> +++ ocfs2-tools-1.8.6/o2cb_ctl/o2cb_scandisk.c  2017-02-05
> 11:20:34.930450644 +0100
> @@ -134,6 +134,8 @@ static void add_to_list(struct list_head
>                                   add = !strncmp(path->path, "/dev/loop",
> 9);
>                           if (!add)
>                                   add = !strncmp(path->path, "/dev/xvd", 8);
> +                       if (!add)
> +                               add = !strncmp(path->path, "/dev/rbd", 8);
>                   }
>                   if (add) {
>                           hb = malloc(sizeof(struct hb_devices))
>
>
>
> _______________________________________________
> Ocfs2-tools-devel mailing list
> Ocfs2-tools-devel at oss.oracle.com
> https://oss.oracle.com/mailman/listinfo/ocfs2-tools-devel




More information about the Ocfs2-tools-devel mailing list