19 December 2010

RAC Install on Linux Part1

Oracle RAC setup on Linux Redhat 4 Install guide:

Introduction:

This document presents the installation of Oracle 10 RAC on Linux environment.
The setup is done based on the following options:

1. Oracle Clusterware: 10.2.0.1 version
2. File system used for clusterware storage is OCFS2
3. ASM is used for RAC database storage – 10.2.0.1

Pre-Install Steps:

1. Install VMWARE on your PC, make sure you have atlease 3 GB RAM if ypu are planning for 3 Node RAC
2. Install Linux OS using ISO image disc or CD/DVD.
3. After logging in for the first time, Install vmware tools.
4. Configure Hang check timer:

[root@rh4as-64 oracle]# modprobe hangcheck-timer hangcheck_tick=30 hangcheck_margin=180
[root@rh4as-64 oracle]# cat >> /etc/rc.d/rc.local << EOF
> modprobe hangcheck-timer hangcheck_tick=30 hangcheck_margin=180
> EOF
[root@rh4as-64 oracle]#


Reason: Oracle needs to rapidly detect and isolate any occurrence of node failure within the cluster. This is mainly used to evict the failed nodes and hence preventing them from corrupting the disk. On linux this eviction is done by Hang-check timer module. This module periodically checks for the delay during last interval, after a threshold value is exceeded then hang check timer reboots the system.

5. Shutdown the server and then Add extra Ethernet card for private address and extra disk for storing 10g RAC software(Needed for my install)
6. Add disks for ASM, OCR and Voting disk. Based on my experience, make sure you have a separate disk for Voting disk and OCR(Can be done under same) and mount them separately later.
7. Add VMware time synchronization:














Edit /boot/grub/grub.conf and add the following options to the kernel /boot/ line of your default (SMP) kernel:





8. Switch on your server and configure your disks with fdisk and set /etc/hosts with IP addresses for public, private and VIP as shown below:




Change Hostname under /etc/sysconfig/network:
NETWORKING=yes
HOSTNAME=v_prd1

Edit /etc/hosts to look like this:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost
192.168.100.51 node1-priv
192.168.100.52 node2-priv
192.168.200.71 node1
192.168.200.72 node2
192.168.200.91 node1-vip
192.168.200.92 node2-vip


Set Ip address for Ethernet Cards (Public and Private) and then activate both

No comments:

Post a Comment