Error 'o2cb_ctl: Unable to load cluster configuration file /etc/ocfs2/cluster.conf' When Starting OCFS2 Cluster Service by 'o2cb online'

(Doc ID 843479.1)

Last updated on MARCH 08, 2017

Applies to:

Linux OS - Version 1.2.0-1 to 1.4.1-2
Linux x86-64
Linux x86
Linux x86-64

Symptoms

You get the following errors when you starts the OCFS2 cluster service:

# /etc/init.d/o2cb online ocfs2
Starting O2CB cluster ocfs2: Failed
o2cb_ctl: Unable to load cluster configuration file "/etc/ocfs2/cluster.conf"
Stopping O2CB cluster ocfs2: Failed
o2cb_ctl: Unable to load cluster configuration file "/etc/ocfs2/cluster.conf"

Changes

Manually created the /etc/ocfs2/cluster.conf, e.g.:


# cat /etc/ocfs2/cluster.conf
cluster:
node_count = 2
name = ocfs2

node:
ip_port = 7777
ip_address = xx.xx.xx.xx
number = 0
name = host1
cluster = ocfs2

node:
ip_port = 7777
ip_address = xx.xx.xx.xx
number = 1
name = host2
cluster = ocfs2

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms