OCI - How To Recreate ocfs2 cluster.conf with global-heartbeat option
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.
Tagged:
0