Set up an Oracle Cluster File System
You want to start your clustering experiences with an Oracle Cluster File System. Here is how. This is an example using SUSE Linux 11.2. As shared storage we use an iscsi storage.
- We assume here they are named node1 and node2 and have the IP addresses 192.168.0.11 and 192.168.0.12.
On both nodes, configure your iscsi initiator, install everything that yast proposes:
On both nodes, install ocfs2 software
yast -i ocfs2-tools ocfsconsole ocfs2-tools-o2cb
On both nodes, make the cluster services start at boot
You get a message "cluster not known". That is okay.
Start ocfs2console, write the cluster nodes in with their local host names (what the command "hostname" return).
Unable to access cluster service
In ocfs2console when adding nodes you get the error message
o2cb_ctl: Unable to access cluster service while creating node Could not add node node1
The following solution worked once: Delete /etc/ocfs2/cluster.conf
The following solution worked once: Write /etc/ocfs2/cluster.conf manually:
node: name = node1 cluster = ocfs2 number = 0 ip_address = 192.168.0.11 ip_port = 7777 node: name = node2 cluster = ocfs2 number = 1 ip_address = 192.168.0.12 ip_port = 7777 cluster: name = ocfs2 node_count = 2