How to Setup OCFS2 on Oracle Linux

1) Install the ocfs2-tools package.

2) Create a cluster:

o2cb add-cluster cluster

3) Add nodes to the cluster:

o2cb add-node cluster host1 --ip 192.168.56.1

 

o2cb add-node cluster host2 --ip 192.168.56.2

4) Add a disk-based heartbeat to the cluster:

o2cb add-heartbeat cluster /dev/sdb

5) Configure the stack:

service o2cb configure

6) Start the stack:

service o2cb online

7) Create a volume:

mkfs.ocfs2 /dev/sdb

8) Mount a file system

You can find more details here.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s