My Oracle Support Banner

How to Create an OCFS2 Cluster With The Global Heartbeat Feature (Doc ID 1553162.1)

Last updated on SEPTEMBER 05, 2023

Applies to:

Linux OS - Version Oracle Linux 5.8 with Unbreakable Enterprise Kernel [2.6.39] and later
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64
Linux x86


Version 1.8 of  OCFS2 introduced the "Global Heartbeat" feature. See "The OCFS2 Global Heartbeat feature [ID 1552519.1]" for an overview.

This document shows examples of defining multiple nodes to a global heartbeat cluster, and dynamically adding a node to such a cluster. In the example, three heartbeat regions are defined for the global heartbeat in order to avoid a single point of failure. Although the minimum requirement is one volume, a minimum of three cluster-heartbeat volumes is recommended where there will be a significant number of ocfs2 volumes mounted in a cluster.

Please note that ocfs2-1.8 kernel driver is only provided with Oracle "UEK" Release 2 or later (kernel version 2.6.39 or later).

Refer to "Oracle Cluster File System (OCFS2) Software Support and Update Policy for Red Hat Enterprise Linux Supported by Red Hat [ID 1253272.1]" for further information. 


OL5, OL6 and OL7 nodes with either 32bit or 64bit (OL7: 64bit only) UEK kernels can participate in a single Global Cluster.



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document
 Section 1 - Initial Setup
 a) Check the ocfs2 component versions:
 b) Create ocfs2 volume(s) specifying the cluster-name and cluster-stack
 c) Initialize the /etc/ocfs2/cluster.conf file and add the cluster nodes
 d) Verify  the ocfs2 cluster configuration
 e) Configure the o2cb stack
 f) Verify cluster operation
 Section 2 - Adding an additional Node
 a) Prepare the new node
 b) Attach the device(s)
 c) Prepare the existing cluster nodes for the additional node.
 d) Register all nodes on the new node
 e) Configure the o2cb stack on the new node
 f) Verify cluster operation

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.