1 PDF Rac1120installonoel58zfs
1 PDF Rac1120installonoel58zfs
1 PDF Rac1120installonoel58zfs
Required Software
Table-1
Type Software Image & Install
OS Oracle Linux 5.8 OracleLinux-R5-U8-Server-x86_64-dvd.iso
p13390677_112040_Linux-x86-64_1of7
DB Oracle Database 11.2.0.4 p13390677_112040_Linux-x86-64_2of7
p13390677_112040_Linux-x86-64_3of7
VM VM VirtualBox VirtualBox-4.3.2-90405-Win.exe
ZFS ZFS Storage Appliance 700_1 “Sun ZFS Storage Appliance” image
Network Architecture
Table-2
Interface Network IP Full Name Name Entry
eth0 public 192.168.10.101 rac01.taysi.com rac01 HOSTS File
eth0 public 192.168.10.102 rac02.taysi.com rac02 HOSTS File
eth0 virtual 192.168.10.111 rac01-vip.taysi.com rac01-vip HOSTS File
eth0 virtual 192.168.10.112 rac02-vip.taysi.com rac02-vip HOSTS File
eth0 scan 192.168.10.121 rac-scan.taysi.com rac-scan DNS
eth0 scan 192.168.10.122 rac-scan.taysi.com rac-scan DNS
eth0 scan 192.168.10.123 rac-scan.taysi.com rac-scan DNS
eth1 private 192.168.20.101 rac01-priv.taysi.com rac01-priv HOSTS File
eth1 private 192.168.20.102 rac02-priv.taysi.com rac02-priv HOSTS File
eth0 Dns 192.168.10.100 racdns.taysi.com racdns HOSTS File
RAC Node 1 Creation
INSTALLATION
Start the VirtualBox and create a new virtual machine by clicking the “New” button. Enter the OS details in
the popup window and then click the “Next” button.
Image-1
Select the location of the image file, adjust the disk size (30GB) and click the “Create” button.
Image-6
Start the virtual machine.
Image-7
Check the “Review and modify partitioning layout” option and click the “Next” button.
Image-14
Leave the “swap” and “/root” partitions as they are and click the “Next” button.
Image-18
Accept the loader settings and click the “Next” button.
Image-19
Leave the network page as it is, we‟re going to configure it later. Click the “Next” button.
Image-20
Select “Customize now” option to decide the packages to be installed and then click the “Next” button.
Image-23
Select the required groups from the below screen.
Required Packages for Oracle RAC installation:
Image-24
After selecting the required packages click the “Next” button and continue.
Image-25
Reboot.
Image-28
Press the “Forward” button to continue installation after the reboot.
Image-29
Disable Secure Linux and click the “Forward” button. Click “Yes” for the security warning.
Image-32
Do NOT enable the Kdump, click the “Forward” button to continue.
Image-33
Adjust the Date & Time and then click the “Forward” button to continue.
Image-34
Do NOT create any user, click the “Forward” button to continue.Click the “Continue” button for the warning
popup.
Image-35
Change the settings of the newly installed RAC01 Node, right click the RAC01 tab then choose the
“Settings…” from the popup menu.
Image-40
Configure the adapter settings of the newly installed RAC01 Node
Image-41
Add a second adapter for RAC01 as seen below, and then click the “OK” button.
Image-42
Change the IP settings of VirtualBox adapters from Control Center > Network and Sharing Center. Click
VirtualBox Host-Only Network.
Image-43
INSTALL RPMS
Mount the Linux OS iso file. Machine > Settings > Storage
If some other image is already mounted here, remove the mounted image and reboot. When the Linux is
up again, mount the OracleLinux Image as seen below.
Image-46
Note: Do not forget to remove the image after you‟re done, else it will try to boot from image next time
you reboot the server.
Install RPMs -> cd /media/OL5.8\ x86_64\ dvd\ 20120229/Server/ (should be mounted somewhere under
/media)
Just copy the whole command and paste it in the terminal and enter. [ROOT]
rpm -Uvh binutils-2.*
rpm -Uvh compat-libstdc++-33*
rpm -Uvh elfutils-libelf-0.*
rpm -Uvh elfutils-libelf-devel-*
rpm -Uvh gcc-4.*
rpm -Uvh gcc-c++-4.*
rpm -Uvh glibc-2.*
rpm -Uvh glibc-common-2.*
rpm -Uvh glibc-devel-2.*
rpm -Uvh glibc-headers-2.*
rpm -Uvh ksh-2*
rpm -Uvh libaio-0.*
rpm -Uvh libaio-devel-0.*
rpm -Uvh libgcc-4.*
rpm -Uvh libstdc++-4.*
rpm -Uvh libstdc++-devel-4.*
rpm -Uvh make-3.*
rpm -Uvh sysstat-7.*
rpm -Uvh unixODBC-2.*
rpm -Uvh unixODBC-devel-2.*
Note: If dependecies fail, just resubmit the whole command, sometimes some libraries must be installed
before others.
KERNEL SETTINGS
Edit /etc/sysctl.conf [ROOT]
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 1054504960
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048586
Note: Issue the command “/sbin/sysctl -p” after changing kernel values.
SECURITY LIMITS
Edit /etc/security/limits.conf for oracle and grid users. [ROOT]
oracle hard memlock 50000000
oracle soft memlock 50000000
oracle soft core unlimited
oracle hard core unlimited
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 4096
oracle hard nofile 65536
oracle soft stack 10240
grid hard memlock 50000000
grid soft memlock 50000000
grid soft core unlimited
grid hard core unlimited
grid soft nproc 2047
grid hard nproc 16384
grid soft nofile 4096
grid hard nofile 65536
grid soft stack 10240
Add the following line to /etc/pam.d/login [ROOT]
session required pam_limits.so
CREATE DIRECTORIES
Table-3
PATH ENV OWNER MOD
/u01/app/grid ORACLE_BASE grid:oinstall 775
[grid’s]
/u01/app/11.2.0/grid ORACLE_HOME grid:oinstall 775
[grid’s]
/u02/app/oracle ORACLE_BASE oracle:oinstall 775
[oracle’s]
/u02/app/oracle/product/11.2.0/db_home ORACLE_HOME oracle:oinstall 775
[oracle’s]
Note: For grid user, ORACLE_HOME should NOT be a sub-dir of ORACLE_BASE. It should be a seperate
maybe same level directory for its ownership will be changed with root.sh script.
SETUP FILES
Create a directory for setup files and copy the the installation files in here using an FTP tool. [ROOT]
mkdir /setup
DECONFIGURE NTP
Deconfigure [ROOT]
service ntpd stop
chkconfig ntpd off
mv /etc/ntp.conf /etc/ntp.conf.orig
rm /var/run/ntpd
Note: This is a virtual env. test installation. In a real env. you may want to configure NTP instead of
disabling it.
ORACLE_HOSTNAME=rac01.taysi.com;export ORACLE_HOSTNAME
ORACLE_UNQNAME=RAC;export ORACLE_UNQNAME
ORACLE_BASE=/u02/app/oracle;export ORACLE_BASE
ORACLE_HOME=/u02/app/oracle/product/11.2.0/db_home;export ORACLE_HOME
ORACLE_SID=RAC1;export ORACLE_SID
ORACLE_TERM=xterm;export ORACLE_TERM
BASE_PATH=/usr/sbin:$PATH;export BASE_PATH
PATH=$ORACLE_HOME/bin:$BASE_PATH;export PATH
ORACLE_HOSTNAME=rac01.taysi.com;export ORACLE_HOSTNAME
ORACLE_UNQNAME=RAC;export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/grid;export ORACLE_BASE
ORACLE_HOME=/u01/app/11.2.0/grid;export ORACLE_HOME
ORACLE_SID=RAC1;export ORACLE_SID
ORACLE_TERM=xterm;export ORACLE_TERM
BASE_PATH=/usr/sbin:$PATH;export BASE_PATH
PATH=$ORACLE_HOME/bin:$BASE_PATH;export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;export CLASSPATH
Confirm that the “Full clone” option is selected. Click the “Clone” button to begin the cloning process.
Image-50
START THE RAC02 SERVER AND CHANGE THE NETWORK CONFIGURATIONS OF RAC02 NODE
Delete files with .bak extension and reboot the machine. [ROOT]
rm /etc/sysconfig/network-scripts/ifcfg-eth0.bak
rm /etc/sysconfig/network-scripts/ifcfg-eth1.bak
Note: You can also use Linux GUI to change network settings by choosing System > Administration >
Network.
ORACLE_HOSTNAME=rac02.taysi.com;export ORACLE_HOSTNAME
ORACLE_UNQNAME=RAC;export ORACLE_UNQNAME
ORACLE_BASE=/u02/app/oracle;export ORACLE_BASE
ORACLE_HOME=/u02/app/oracle/product/11.2.0/db_home;export ORACLE_HOME
ORACLE_SID=RAC2;export ORACLE_SID
ORACLE_TERM=xterm;export ORACLE_TERM
BASE_PATH=/usr/sbin:$PATH;export BASE_PATH
PATH=$ORACLE_HOME/bin:$BASE_PATH;export PATH
ORACLE_HOSTNAME=rac02.taysi.com;export ORACLE_HOSTNAME
ORACLE_UNQNAME=RAC;export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/grid;export ORACLE_BASE
ORACLE_HOME=/u01/app/11.2.0/grid;export ORACLE_HOME
ORACLE_SID=RAC2;export ORACLE_SID
ORACLE_TERM=xterm;export ORACLE_TERM
BASE_PATH=/usr/sbin:$PATH;export BASE_PATH
PATH=$ORACLE_HOME/bin:$BASE_PATH;export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib;export CLASSPATH
Just create a new Oracle Linux VM Server as we did in step “RAC Node 1 Creation”, but this time allocate
only 512MB of memory and a limited disk space. Install all the RPMs that we did earlier. Name the server
“RACDNS”
Name: rac01.taysi.com
Address: 192.168.10.101
Name: rac02.taysi.com
Address: 192.168.10.102
Installation and Configuration of ZFS
Download Oracle ZFS simulator from Oracle web site.
Then run the VirtualBox and import by File > Import Appliance.
Image-51
Open appliance
Image-52
Choose the ovf file and click the “Open” button.
Image-53
Press the „Enter‟ key to select the Storag of interest. (Here we have only one…)
Image-58
Press any key to begin configuration
Image-59
Config as seen below and press “ESC” then “1” to save config.
Image-60
Login to web console using a compatible browser by using the link -> https://192.168.10.200:215/
Enter username and password you prvieded in the configuration.
Press the “Commit” button without changing anything.
Image-61
Allocate all devices (10 disks, since we‟ll not create any other pool) and then “Commit”
Image-66
Repeat the steps between Image-69 and Image-73 to define te filesystems in the listed in table-4.
Test on both nodes RAC01 and RAC02 that the mounts are OK.
[root@rac01 grid]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00 26G 6.9G 17G 29% /
/dev/sda1 145M 24M 114M 17% /boot
tmpfs 1002M 0 1002M 0% /dev/shm
192.168.10.200:/export/SHAREDCONFIG 49G 32K 49G 1% /u01/sharedconfig
192.168.10.200:/export/ORCL_DATA_FS 49G 32K 49G 1% /u02/app/oracle/ORCL/data
192.168.10.200:/export/ORCL_RECO_FS 49G 32K 49G 1% /u02/app/oracle/ORCL/reco
192.168.10.200:/export/ORCL_REDO_FS 49G 32K 49G 1% /u02/app/oracle/ORCL/redo
CRS Installation
Provide SSH connectivity [ROOT]
Go to the grid installation files path …grid/sshsetup and run the ssh setup script (On RAC01 or RAC02)
cd /setup/grid/sshsetup
./sshUserSetup.sh -user oracle -hosts "rac01 rac02" -advanced -exverify -confirm
./sshUserSetup.sh -user grid -hosts "rac01 rac02" -advanced -exverify -confirm
Examine the output file “result.txt”, at the end of the file we should see the phrase:
su - grid
cd /setup/grid/
./runInstaller
Image-74
Image-75
Image-76
Image-77
Image-78
Image-79
Image-80
Image-81
Image-82
Image-83
Image-84
Image-85
Image-86
Image-87
Image-88
Image-89
Image-90
Image-91
Database Software Installation
su - oracle
cd /setup/database
./runInstaller
Image-92
Image-93
Image-94
Image-95
Image-96
Image-97
Image-98
Image-99
Image-100
Database Installation
On both nodes RAC01 and RAC02 [with oracle user]
su - oracle
mkdir -p /u02/app/oracle/ORCL/data/data
mkdir -p /u02/app/oracle/ORCL/data/index
mkdir -p /u02/app/oracle/ORCL/data/undo
mkdir -p /u02/app/oracle/ORCL/data/temp
mkdir -p /u02/app/oracle/ORCL/redo/redo01
mkdir -p /u02/app/oracle/ORCL/redo/redo02
mkdir -p /u02/app/oracle/ORCL/redo/redo03
mkdir -p /u02/app/oracle/ORCL/reco/backup
mkdir -p /u02/app/oracle/ORCL/reco/reco01
mkdir -p /u02/app/oracle/ORCL/reco/reco02
Image-102
Image-103
Image-104
Image-105
Image-106
Image-107
Image-108
Image-109
Image-112
Image-113
Installation is DONE...