System setup
How system is setup
Basicsetup
Xen Guest with RHEL5 U2 and ocfs2 from source (/root/src/ocfs2-1.3.9).
Sources in /root/src/ocfs2-1.3.9 from http://oss.oracle.com/projects/ocfs2/files/source/v1.3/ .
RPMS:
- ocfs2-tools-debuginfo-1.3.9-0.1.el5
- ocfs2-tools-1.3.9-0.1.el5
- ocfs2-tools-devel-1.3.9-0.1.el5
- ocfs2console-1.3.9-0.1.el5
- comoonics-pythonosfix-py-0.1-1
- comoonics-bootimage-listfiles-1.3-6.el5
- SysVinit-comoonics-2.86-14.atix.1
- comoonics-cluster-py-0.1-12
- comoonics-cdsl-py-0.2-11
- comoonics-bootimage-1.3-32
- comoonics-release-0.1-1
- comoonics-cs-py-0.1-54
- comoonics-bootimage-initscripts-1.3-5.el6
- comoonics-bootimage-extras-ocfs2-0.1-1
- comoonics-bootimage-extras-xen-0.1-3 (Only needed for xen Guest)
Clusterconfig:
Redhat Cluster.conf
<?xml version="1.0"?>
<cluster config_version="3" name="clurhel5">
<clusternodes>
<clusternode name="ocfs2-node1" nodeid="1">
<com_info>
<syslog name="syslog-server"/>
<rootvolume name="/dev/xvdc" fstype="ocfs2"/>
<eth name="eth0" ip="dhcp" mac="00:16:3E:00:11:12"/>
<fenceackserver user="root" passwd="test123"/>
</com_info>
</clusternode>
<clusternode name="ocfs2-node2" nodeid="2">
<com_info>
<syslog name="syslog server"/>
<rootvolume name="/dev/xvdc" fstype="ocfs2"/>
<eth name="eth0" ip="dhcp" mac="00:16:3E:00:11:13"/>
<fenceackserver user="root" passwd="test123"/>
</com_info>
</clusternode>
</clusternodes>
</cluster>
OCFS2 Cluster.conf
The OCFS2 Cluster.conf will be automatically generated by the initrd from /etc/cluster/cluster.conf. To validate use com-queryclusterconf convert ocfs2 and you'll see the output. It should be somehow like as follows.
If so redirect the output to /etc/ocfs2/cluster.conf in order to setup the filesystem.
node:
ip_port = 7777
ip_address = 192.168.3.74
number = 0
name = ocfs2-node1
cluster = ocfs2
node:
ip_port = 7777
ip_address = 192.168.3.75
number = 1
name = ocfs2-node2
cluster = ocfs2
cluster:
node_count = 2
name = ocfs2