You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI - How To Recreate ocfs2 cluster.conf with global-heartbeat option

edited Apr 4, 2024 6:40AM in Linux

Applies to:

Oracle Cloud Infrastructure - Version N/A and later

Linux x86-64

Goal:

This document outlines the steps required to recreate the /etc/ocfs2/cluster.conf using the global heartbeat option, the filesystem is new and has no data.

Solution:

1. Move or remove the old cluster.conf if it exists

$ mv /etc/ocfs2/cluster.conf /etc/ocfs2/cluster.conf.ORIG

2. Create a new filesystem with the global-heartbeat option

$ mkfs.ocfs2 -L ocfsshare --cluster-name=ocfs2cluster --cluster-stack=o2cb --global-heartbeat /dev/sdb

3. Add the cluster nodes, make sure that the hostnames match exactly, run this on EACH cluster node.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!