- Package:
- ocfs2-tools
- Source:
- ocfs2-tools
- Description:
- tools for managing OCFS2 cluster filesystems
- Submitter:
- Dan Smolik
- Date:
- 2026-10-11 11:35:01 UTC
- Severity:
- normal
Dear maitainer, in virtual enviroment I try build 2 node ocfs cluster. When drbd device is on top of md device all works. But when drbd device is on top LVM device global heartbeat doesn't start. Using config file '/etc/ocfs2/cluster.conf' Initializing cluster stack Checking heartbeat mode Global heartbeat enabled Heartbeat region 3D69F9BD7AF24C59BB600A8D7B1D4770 Scanning devices About to start heartbeat o2cb: Heartbeat region could not be found 3D69F9BD7AF24C59BB600A8D7B1D4770 root@drbd-server01:/home/marvin/ocfs2-tools/o2cb_ctl# mounted.ocfs2 -d -v -v Probing device /dev/vda1 Probing device /dev/vdb Probing device /dev/vdb1 Probing device /dev/vdb5 Probing device /dev/vdc Probing device /dev/vdc1 Probing device /dev/sr0 Probing device /dev/md0 Probing device /dev/mapper/c-o Probing device /dev/drbd0 Device Stack Cluster F UUID Label /dev/mapper/c-o o2cb mdtxcluster G 3D69F9BD7AF24C59BB600A8D7B1D4770 mdtx /dev/drbd0 o2cb mdtxcluster G 3D69F9BD7AF24C59BB600A8D7B1D4770 mdtx
Maybe you can share more info, like what the cluster.conf looks like in this setup?
Yes no problem. There it is. Dne 22. 10. 23 v 11:57 Valentin Vidic napsal(a):
Thanks. My best guess is that the problem happens because the region UUID is visible on both drbd and the lower device, so the global heartbeat might work if drbd device is selected first (for example in the case of md). Since I don't know if it possible to specify the device directly, your best bet now is probably to use the local heartbeat mode (that should work without the regions being specified).
I completely agree, but when it is on md device then is UUID visible on
both nodes too. My guess is that name of LVM device is longer than md
or drbd device. And I looked to source code and start heartbeat failed
here: in op_start.c
if (!(od->od_flags & O2CB_DEVICE_FOUND)) {
tcom_err(ret, "%s", od->od_uuid);
goto bail;
}
It is only testing device and for final solution isn't local heartbeat
possible. In o2cb is not possible specify device where start heartbeat.
Dne 22. 10. 23 v 13:37 Valentin Vidic napsal(a):
But when use local heartbeat mode I can mount ocfs but not work in cluster mode. I mean that without global heartbeat you didn't have shared storage. Regards Dan Dne 22. 10. 23 v 13:37 Valentin Vidic napsal(a):
If I understand correctly with local heartbeat there is one heartbeat running per ocfs2 mount and this should still allow cluster storage to work. Global heartbeat only optimizes this to run one or more heartbeat devices for all ocfs2 mounts, so it should not be a strong requirement for running a shared cluster storage.
May be but this don't work. I create LVM volume heartbeat on both nodes. Set ocfs mode to local. o2cb add-heartbeat mdtxcluster /dev/c/heratbeat On both nodes. o2cb start-heartbeat mdtxcluster on both nodes ocfs2: Mounting device (147,0) on (node 0, slot 0) with ordered data mode. [ 1290.746345] o2dlm: Leaving domain 3D69F9BD7AF24C59BB600A8D7B1D4770 [ 1290.788991] ocfs2: Unmounting device (147,0) on (node 0) [ 1828.717874] o2hb: Heartbeat stopped on region 3D69F9BD7AF24C59BB600A8D7B1D4770 (dm-0) [ 2202.976390] o2hb: Heartbeat started on region FD5342AE132B4A40A3DE39D0406252E5 (dm-1) [ 2205.008194] o2hb: Region FD5342AE132B4A40A3DE39D0406252E5 (dm-1) is now a quorum device [ 2229.339352] o2dlm: Joining domain 3D69F9BD7AF24C59BB600A8D7B1D4770 [ 2229.339359] ( [ 2229.339362] 0 [ 2229.339364] ) 1 nodes [ 2229.360976] ocfs2: Mounting device (147,0) on (node 0, slot 1) with ordered data mode. [ 2229.366496] ocfs2: Begin replay journal (node 1, slot 0) on device (147,0) [ 2229.380189] ocfs2: End replay journal (node 1, slot 0) on device (147,0) [ 2256.920272] o2dlm: Leaving domain 3D69F9BD7AF24C59BB600A8D7B1D4770 [ 2256.960029] ocfs2: Unmounting device (147,0) on (node 0) [ 2333.541256] o2dlm: Joining domain 3D69F9BD7AF24C59BB600A8D7B1D4770 [ 2333.541263] ( [ 2333.541266] 0 [ 2333.541268] ) 1 nodes [ 2333.667424] ocfs2: Mounting device (147,0) on (node 0, slot 0) with ordered data mode. root@drbd-server01:/home/marvin# o2cb start-heartbeat mdtxcluster o2hb: Heartbeat started on region C402D542D0D648FAA7EA1D8D7B6571B8 (dm-1) [ 2802.429790] o2hb: Region C402D542D0D648FAA7EA1D8D7B6571B8 (dm-1) is now a quorum device [ 2847.205047] o2dlm: Joining domain 3D69F9BD7AF24C59BB600A8D7B1D4770 [ 2847.205055] ( [ 2847.205058] 1 [ 2847.205061] ) 1 nodes [ 2847.292767] ocfs2: Mounting device (147,0) on (node 1, slot 0) with ordered data mode. [ 2875.108121] o2dlm: Leaving domain 3D69F9BD7AF24C59BB600A8D7B1D4770 [ 2875.144193] ocfs2: Unmounting device (147,0) on (node 1) [ 2963.823619] o2dlm: Joining domain 3D69F9BD7AF24C59BB600A8D7B1D4770 [ 2963.823626] ( [ 2963.823629] 1 [ 2963.823631] ) 1 nodes [ 2963.870726] ocfs2: Mounting device (147,0) on (node 1, slot 1) with ordered data mode. [ 2963.879606] ocfs2: Begin replay journal (node 0, slot 0) on device (147,0) [ 2963.893880] ocfs2: End replay journal (node 0, slot 0) on device (147,0) You can see that I have two one node clusters. But no shared storage no one two node cluster. o2cb -v -v -v -v start-heartbeat mdtxcluster Using config file '/etc/ocfs2/cluster.conf' Initializing cluster stack Checking heartbeat mode Global heartbeat enabled Heartbeat region C402D542D0D648FAA7EA1D8D7B6571B8 Scanning devices Region C402D542D0D648FAA7EA1D8D7B6571B8 matched to device /dev/mapper/c-heratbeat About to start heartbeat Starting heartbeat on region C402D542D0D648FAA7EA1D8D7B6571B8, device /dev/mapper/c-heratbeat Stop heartbeat on devices removed from config Checking heartbeat mode Global heartbeat enabled Looking up active heartbeat regions Global heartbeat started I set mode to local but after start set to global. I don´t know why. Regards Dan Dne 22. 10. 23 v 23:48 Valentin Vidic napsal(a):
We believe that the bug you reported is fixed in the latest version of ocfs2-tools, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 1054326@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Valentin Vidic <vvidic@debian.org> (supplier of updated ocfs2-tools package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org) Format: 1.8 Date: Sun, 11 Oct 2026 13:14:46 +0200 Source: ocfs2-tools Architecture: source Version: 1.8.9-2 Distribution: unstable Urgency: medium Maintainer: Debian HA Maintainers <debian-ha-maintainers@alioth-lists.debian.net> Changed-By: Valentin Vidic <vvidic@debian.org> Closes: 1054326 Changes: ocfs2-tools (1.8.9-2) unstable; urgency=medium . * debian/patches: add fix for global heartbeat (Closes: #1054326) * debian/control: use Standards-Version 4.7.4 Checksums-Sha1: 34a9dd48159e6bb4a1e840624f253daa14e00e92 2329 ocfs2-tools_1.8.9-2.dsc af67dac8a4412ec7e39d571e076efadb80db2c35 27124 ocfs2-tools_1.8.9-2.debian.tar.xz 92004868056052a0bfc7e4bcfd6e32ec76ae2f67 7656 ocfs2-tools_1.8.9-2_source.buildinfo Checksums-Sha256: a354202f9baaaf4286b5ada4d3103277094ea233ad346876b17f3068131a60ec 2329 ocfs2-tools_1.8.9-2.dsc ca6adf54857504ae1624e45e3f691b318e650fb94145695115d9e2aa2eda4068 27124 ocfs2-tools_1.8.9-2.debian.tar.xz a53b753b72c2a2e0cb9d0d65d55948004a326f68fbbc0d41e6aff86cc4236005 7656 ocfs2-tools_1.8.9-2_source.buildinfo Files: dd225d5cc3baafc6449060941e0ad21d 2329 admin optional ocfs2-tools_1.8.9-2.dsc 0b798d8922fe47dc7483b1215ef52301 27124 admin optional ocfs2-tools_1.8.9-2.debian.tar.xz 9d2075ea17fc3acfbcdb3b9aa2d09829 7656 admin optional ocfs2-tools_1.8.9-2_source.buildinfo -----BEGIN PGP SIGNATURE----- iQJGBAEBCgAwFiEExaW53cM9k/u2PWfIMofYmpfNqHsFAmrLcL0SHHZ2aWRpY0Bk ZWJpYW4ub3JnAAoJEDKH2JqXzah7PlMP/2ID3mNuBYZAJ/J4DE7AlHJaZ5au3OGo 15F+Umume6LmuEjlb+DzVJYzs5y71n2Vrxj69GruCIkKICZ9b+Nn1bog7cHm/Fks GZ2cdXglnBg6nb7o+0SMtKCu/QWGQSygDlH+HIjfgP5s4BHH0F6jCXLyeElT0jo7 Iqh2XyOPcjjgD3tvzWm8NikyhvVCsOKEw2/gxEmGdmvJvJKJjroDpgBmBbz+TY7P 3bbP6x7tB2833Ewkxg+zOJqnACuPFqY+5FqKxkBv5Az3IlgpVnX/T+zczSIZUxzC EjZD5PCAHBpdMD1Tk2BGj4lJazp2/3mauHD6AFfUUiMtK9PNXnlURELJ/1dRXPfm M+mGu+/kgUfQRT16rMK+mafj5283fGQhqRJYOMWVQkxCgQA1lAcSgvuAr4RNPx7O PyO2n7AdT4eEd9dwxuJv6yewSu9KbA+RQpI4l57B2DjMq2kap7tHuqZ3t+GIsSIl rrD+ZpFFN40MAEaqw7IwFy0GIA599nihs6i0/PH1AbxbXxclfns1Oo4N4m5mblUn 6DvjxWTa9FLkhKj/X0P7EWesMwV6jmjL8orvIHFA+vYR4jdU+Q+hvs4VRSz6Vuok JqcoXi0lPJDR4LbzIWqRarl5uazhCOQnMtSgBdG5gT2A1bJoNUiRfiIOmjltzMKP LZDtGYpt+DPK =GMyl -----END PGP SIGNATURE-----