[Ocfs2-tools-devel] [PATCH] add support for Ceph block devices
Frank Brendel
frank.brendel at eurolog.com
Mon Feb 6 03:40:15 PST 2017
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))
More information about the Ocfs2-tools-devel
mailing list