Database Journal
MS SQL Oracle DB2 Access MySQL PostgreSQL Sybase PHP SQL Etc SQL Scripts & Samples Tips Database Forum Rss Feed

» Database Journal Home
» Database Articles
» Database Tutorials
MS Access
SQL Scripts & Samples
» Database Forum
» Slideshows
Free Newsletters:

News Via RSS Feed

Rss Feed

Database Journal |DBA Support |SQLCourse |SQLCourse2

Featured Database Articles


Posted May 5, 2006

Final Checks and OCFS2 Setup

By Tarry Singh

A Brief Pep talk: Finally there

In part 10, we covered an important topic called security. I think with the world (IT and likewise) gearing up for Utility Computing that virtualization will play greater role in helping utility computing become reality. There is a lot of talk of hosting applications from distant servers. The concept of AJAX will be used to eventually develop a fully functional OS on the web (webOS) and applications (there are already so many of them) that will make almost everything virtual--a kind of IBM mainframe concept, where you get your space on a big fat server somewhere. OS, Network, almost everything will be virtual. Certainly, security and performance will be the biggest challenges to organizations worldwide. Oracle recently launched the Database Vault, which I think is a very smart move. "Protect yourself from yourself". That will be the motto when we all go out on the web.

Ok now let's get on to testing our configurations and on our path to install and configure OCFS2 for our RHEL 4.2. (There is already a RHEL 4.3/Centos 4.3 available for download). So what will we be doing?

  • Final Checks
  • OCFS2

Final Checks

Checking the /etc/modprobe.conf file, the following lines must be present.

options hangcheck-timer hangcheck_tick=30 hangcheck_margin=180

Checking the /etc/sysctl.conf file, the following lines must be present.

kernel.sem=250 32000 100 128

Checking the /etc/hosts.conf file, all your PRIV, VIP and Public addresses must be present (all machines).

Checking the /etc/hosts.equiv file, remember the file we needed for logging in for copy operations? The following lines must be present:

+node1 oracle
+node2 oracle
+node1-priv oracle
+node2-priv oracle

Checking the required RPMs for your linux distribution.

Now this can be pretty tricky. I have had pretty nasty experiences when installing Oracle (and also RAC) on distributions which were similar to RHEL but not exactly the same. As a rule of thumb, for development purposes, I go ahead and do a complete install. If you follow the installation procedure for RHEL 4.2/Centos 4.2 on my installation article then all should go fine.

The Oracle manual does say (a bit outdated since U3 is already out there) :

Red Hat Enterprise Linux 4 (Update 1) Packages

The following packages (or later versions) must be installed:



  • openmotif21-2.1.30-11.RHEL4.2 is required to install Oracle demos.
  • GNU Compiler Collection (GCC) 2.96 is not supported on Red Hat Enterprise Linux 4.0.

Installing and Configuring OCFS2

Did I mention OCFS2? Oracle develops a lot of its applications on linux and OCFS2 is one of the many projects. I did blog about it briefly, during Oracle's speculation of acquiring its own Linux. Anyways what is it? In OCFS team's words :

OCFS2 is the next generation of the Oracle Cluster File System for Linux. It is an extent based, POSIX compliant file system. Unlike the previous release (OCFS), OCFS2 is a general-purpose file system that can be used for shared Oracle home installations making management of Oracle Real Application Cluster (RAC) installations even easier. Among the new features and benefits are:

  • Node and architecture local files using Context Dependent Symbolic Links (CDSL)
  • Network based pluggable DLM
  • Improved journaling / node recovery using the Linux Kernel "JBD" subsystem
  • Improved performance of meta-data operations (space allocation, locking, etc).
  • Improved data caching / locking (for files such as oracle binaries, libraries, etc)

Follow this project closely.

What do I need for my OCFS2? For a listing of software and where to get it, see Part 6 of this series. I also recommend that you go ahead and install the OCFS2Console as it comes in handy as we move ahead to install and configure OCFS2..

Installing OCFS2

Installing OCFS2 is pretty simple. I put all the binaries in the /tmp folder and did the following:

Configuring OCFS2

Choose cluster/Configure nodes:

You get this message:

Oracle Archives

Latest Forum Threads
Oracle Forum
Topic By Replies Updated
Oracle Data Mining: Classification jan.hasller 0 July 5th, 07:19 AM
Find duplicates - Unique IDs Lava 5 July 2nd, 08:30 AM
no matching unique or primary key rcanter 1 April 25th, 12:32 PM
Update values of one table based on condition of values in other table using Trigger Gladiator 3 February 29th, 06:01 PM