OCFS Configuration
OCFS related rpms are now available with Oracle Linux CD
Install the following
rpm –Uvh ocfs2-2.6.9-22.EL-1.2.1-1.i686.rpm \
ocfs2console-1.2.1-1.i386.rpm \
ocfs2-tools-1.2.1-1.i386.rpm \
ocfs2-tools-debuginfo-1.2.1-1.i386.rpm
Run the below command it will open the window to add
nodes –
$ ocfs2console
Select the "Cluster > Configure Nodes..."
menu option and ignore the subsequent information message by clicking the
"Close" button.
You may get the message to startup ocfs on startup/boot
On the "Node Configuration" screen add the nodes
and click on apply.
You may get the error for configuration.. It might be
because of the hostname misconfiguration
You would require to delete the cluster config file in
/etc/ocfs2/cluster.conf
Can be done as follows:-
$/etc/init.d/ocfs2 stop
$/etc/init.d/o2cb offline ocfs2
$/etc/init.d/o2cb unload
$rm –f /etc/ocfs2/cluster.conf
$/usr/sbin/ocfs2console &
Now follow the above steps again to add nodes.
Edit /etc/init.d/o2cb script and delete the following lines.
### BEGIN INIT INFO
## Provides: o2cb
## Required-Start: $network
## Should-Start:
## Required-Stop:
## Default-Start: 2 3 5
## Default-Stop:
## Description: Load O2CB cluster services at system boot.
### END INIT INFO
Reregister the o2cb using below commands:-
$chkconfig - - del o2cb
$chkconfig - - add o2cb
$chkconfig - - list o2cb
o2cb 0:off 1:off 2:on 3:on 4:on 5:on 6:off
$
Now configure the o2cb using the below command:-
$/etc/init.d/o2cb offline ocfs2
$/etc/init.d/o2cb unload
$/etc/init.d/o2cb configure
Other commands:-
- "/etc/init.d/o2cb load" - Loads all OCFS2 modules.
- "/etc/init.d/o2cb online" - Brings the cluster online.
- "/etc/init.d/o2cb offline" - Takes the cluster offline.
- "/etc/init.d/o2cb unload" - Unloads all OCFS2 modules.
Partion
the available disks using fdisk
Options can
be choosed as n, 1, Enter, Enter and w to write the partition table.
Start the
OCFS2CONSOLE
Format the
disk from the task menu… names can be given as per choice.
And then
mount the disks by clicking on mount icon.
To make
the persistent mounting of the file system make an entry in the file /etc/fstab
on all nodes.
/dev/sdb1 /u02
ocfs2 _netdev,datavolume 0 0
Filesystem
should be available on all nodes.