Oracle OCFS2 clusterware install on Amazon EC2

Like I mentioned in my previous posts. I am using Jeff Hunter’s Oracle RAC build guide to get an Oracle RAC install on Amazon EC2.

I have been testing various steps which are independent on the other steps in the guide.

So last night I played around with getting Oracle OCFS2 (Oracle Cluster File system) installed onto a CentOS 4 EC2 image. This is step 16 in the build guide.

Downloading and/or reading the User Guide and reviewing the FAQ are also a good option.

Downloaded the appropriate RPMs from Oracle’s website and they installed fine.

I am time constrained, but I wanted to attempt the console (using X windows) and also the o2cb_ctl to create the configuration required.
The Oracle documentation for OCFS2 has some man pages for the various tools which can also been installed.

Note: Amazon EC2 is running Xen. uname -a was saying it was SMP, however only the single processor RPM (EL) worked, which is fair enough, given that is what Amazon specifies that i.e. a single virtual 1.7 Ghz CPU.

I have attached the screen dump of what I did.

I have made an image of Openfiler and got that running. So the next step is to fire up that, get OCFS2 running and seeing the shared disk provided by that.
Stay tuned…

Have Fun

Paul


[root@domU-12-31-36-00-30-A2 mnt]# rpm -Uvh ocfs2-2.6.9-42.EL-1.2.4-2.i686.rpm \
> ocfs2-tools-1.2.4-1.i386.rpm
Preparing... ########################################### [100%]
1:ocfs2-tools ########################################### [ 50%]
2:ocfs2-2.6.9-42.EL ########################################### [100%]


[root@domU-12-31-36-00-30-A2 mnt]# /etc/init.d/o2cb configure
Configuring the O2CB driver.

This will configure the on-boot properties of the O2CB driver.
The following questions will determine whether the driver is loaded on
boot. The current values will be shown in brackets ('[]'). Hitting
without typing an answer will keep that current value. Ctrl-C
will abort.

Load O2CB driver on boot (y/n) [n]: y
Cluster to start on boot (Enter "none" to clear) [ocfs2]:
Specify heartbeat dead threshold (>=7) [7]: 61
Specify network idle timeout in ms (>=5000) [10000]:
Specify network keepalive delay in ms (>=1000) [5000]:
Specify network reconnect delay in ms (>=2000) [2000]:
Writing O2CB configuration: OK
Loading module "configfs": OK
Mounting configfs filesystem at /sys/kernel/config: OK
Loading module "ocfs2_nodemanager": OK
Loading module "ocfs2_dlm": OK
Loading module "ocfs2_dlmfs": OK
Creating directory '/dlm': OK
Mounting ocfs2_dlmfs filesystem at /dlm: OK
Checking O2CB cluster configuration : Failed
[root@domU-12-31-36-00-30-A2 mnt]# ps -ef|grep ocds
root 2922 2732 0 08:20 ttyp1 00:00:00 grep ocds
[root@domU-12-31-36-00-30-A2 mnt]# ps -ef|grep ocfs
root 2924 2732 0 08:20 ttyp1 00:00:00 grep ocfs
[root@domU-12-31-36-00-30-A2 mnt]# uptime
08:20:43 up 27 min, 2 users, load average: 0.00, 0.00, 0.00
[root@domU-12-31-36-00-30-A2 mnt]# /etc/init.d/o2cb status
Module "configfs": Loaded
Filesystem "configfs": Mounted
Module "ocfs2_nodemanager": Loaded
Module "ocfs2_dlm": Loaded
Module "ocfs2_dlmfs": Loaded
Filesystem "ocfs2_dlmfs": Mounted
Checking O2CB cluster ocfs2: Offline

Advertisement