What is OCFS2?
The below are the high level steps for creating ocfs2 filesystem on top of a multipath'd SAN LUN:
Sample Config file:
[root@rac-cluster ~]# cat /etc/ocfs2/cluster.conf
node:
ip_port = 7777
ip_address = 192.168.1.2
number = 0
name = rac-cluster
cluster = ocfs2
node:
ip_port = 7777
ip_address = 192.168.1.3
number = 1
name = rac-cluster
cluster = ocfs2
On each node check the status of OCFS2 cluster service and stop "o2cb" if the service is already running.
# service o2cb status # service o2cb stop
On each node, load the OCFS2 module.
# service o2cb load
Make the OCFS2 service online on all the nodes.
# service o2cb online
Now your OCFS2 cluster is ready.
Format the SAN lun device from any one of the cluster node.
# mkfs.ocfs2 -b 4k -C 32k -L oraclerac /dev/emcpowera
Where,
-b : Block size
-C : Cluster size
-L : Label
Update /etc/fstab on all the nodes in the cluster with the mount point.
/dev/emcpowera /u01 ocfs2 _netdev 0 0
Mount the /u01
Enable ocfs and o2b service on boot
# chkconfig --level 345 o2cb on# chkconfig --level 345 ocfs2 on
The /u01 repository setup on a SAN Lun is done.
You can now configure Oracle RAC on this file System.
Article Number: 149
Posted: Sat, Jun 2, 2018 9:19 PM
Last Updated: Sat, Jun 2, 2018 9:19 PM
Online URL: http://kb.ictbanking.net/article.php?id=149