Final Checks and OCFS2 Setup
May 5, 2006
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?
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.
net.core.rmem_default=262144 net.core.wmem_default=262144 net.core.rmem_max=262144 net.core.wmem_max=262144 kernel.shmmax=2147483648 kernel.shmmni=2147483648 kernel.sem=250 32000 100 128 fs.file-max=65536
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) :
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 :
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 is pretty simple. I put all the binaries in the /tmp folder and did the following:
Choose cluster/Configure nodes:
You get this message: