About Me

Database and GIS Consultant.

Saturday, March 1, 2014

Install Oracle Linux 6.3 on Virtual Machine in VMware ESXi 5.5 for Oracle 11g RAC database

Objective: Install 64 Bit Oracle Linux Release 6 on newly created Virtual Machine in VMware ESXi 5.5 for Oracle 11g RAC database

Pre-Requisites:-

a. Already installed VMware vSphere Hypervisor ESXi  5.5, see steps.
 

b. Already installed VMware vSphere Client 5.5, see steps.
 

c. Clready created Virtual Machine for 64 Bit Oracle Linux Release 6, see steps.
 

d. ISO image of Oracle Linux Release 6 for x86 64 Bit (from https://edelivery.oracle.com/linux). I downloaded and placed it in my laptop where vSphere client is installed.
 

e. Network Setup:-

Below is the network setup I will be using for our Oracle RAC:-

# Private - eth0 - node interconnect
10.0.0.1    node1-priv.babulab   node1-priv
10.0.0.2    node2-priv.babulab   node2-priv   

# Public - eth1 - Host IP
192.168.50.11    node1.babulab        node1
192.168.50.12    node2.babulab        node2

# Virtual IP
192.168.50.21    node1-vip.babulab    node1-vip
192.168.50.22    node2-vip.babulab    node2-vip

# SCAN
192.168.50.31    node-scan.babulab    node-scan
192.168.50.32    node-scan.babulab    node-scan
192.168.50.33    node-scan.babulab    node-scan
  
Note: Oracle highly recommends using DNS or GNS method to resolve the SCAN (Single Client Access Name) address. Since I don't have a separate DNS / GNS service/server in my lab environment, I will be configuring SCAN in the "/etc/hosts" file in both nodes. You will latter get warnings during the Grid Infrastructure / RAC database install due to lack of this. But since this being a lab setup for RAC testing, you can ignore them and move forward.

From the vSphere client, log in to the ESXi host and note down the MAC addresses of all 3 networks in the VM.  



Below are the MAC Addresses -  Network Adapters mapping, the reason why I documented is, it will make life easier (installing Grid/RAC) if we maintain the same network interface order in the 2nd node as well. I will be creating the 2nd node by cloning this first node (VM):-


Install Linux

1) In the vSphere client, choose the node/VM and click "Launch Virtual Machine Console" as shown below:-


2) Power on the Virtual Machine


3) Connect the ISO image of Linux OS from VM, by clicking on the CD/DVD drive icon (to boot the CD/DVD through network)


4) Locate the ISO image and click open:-


5) Hit "Ctl - Alt - Insert" (it mimics "ALT-CTL-DEL" in VM) to reboot the VM and boot using the connected ISO image:-


6) Once booted using the ISO image, you will see below screen, click inside the window and hit Enter to start the install:-
(Tip: To release the cursor / control out of the VM window, hit "Ctl + Alt")


7) I chose to skip the media test to save some time.


8) Click Next


9) Select Language



10) Select "Basic Storage Devices"


11) Discard any data


12) Provide name of the host (I used node1.babulab) and click "Configure Network"


13) Edit each network interfaces as follows (refer to the info I provided in the Network Setup in the Pre-Requisites section), add the addresses and click "Apply"






14) Once done, click "Close" and "Next"



15) Choose your time zone and click next


16) Provide a root password



17) Select "Use All Space"


18) Click "Write changes to disk"



19) Choose "Database Server", additional repositories as follows, select "Customize now" and click next



20) Modify server components as follows:-




21) Install begins



22) Once completed, click "Reboot"


23) VM is rebooting:-


24) On the welcome screen, click Forward


25) Agree the license agreement and click Forward


26) I chose to register later and clicked Forward


27) I chose to connect later for the updates:-


28) Click Forward


29) Click Forward again to skip user creation (we will be creating "oracle" user later)


30) Click Yes


31) Provide correct date / time and click Forward


32) Don’t enable Kdump and click Finish


33) Now install is complete and will take you to the logon screen, click on "Other" and login as "root
" user:-


34) Acknowledge the warning as follows:-


35) Open a terminal window and test if internet is working:-


36) Disable Firewall (click System - Administration - Firewall in the menu)



37) Click "Disable", "Apply" and "Yes"





38) Run below as root user to install updates and configure ASMLib:-

[root@node1 ~]# yum install oracle-rdbms-server-11gR2-preinstall
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package oracle-rdbms-server-11gR2-preinstall.x86_64 0:1.0-9.el6 will be installed
--> Processing Dependency: gcc for package: oracle-rdbms-server-11gR2-preinstall-1.0-9.el6.x86_64
--> Processing Dependency: xorg-x11-utils for package: oracle-rdbms-server-11gR2-preinstall-1.0-9.el6.x86_64
--> Processing Dependency: gcc-c++ for package: oracle-rdbms-server-11gR2-preinstall-1.0-9.el6.x86_64
--> Processing Dependency: compat-libcap1 for package: oracle-rdbms-server-11gR2-preinstall-1.0-9.el6.x86_64
--> Processing Dependency: ksh for package: oracle-rdbms-server-11gR2-preinstall-1.0-9.el6.x86_64
--> Processing Dependency: libaio-devel for package: oracle-rdbms-server-11gR2-preinstall-1.0-9.el6.x86_64
--> Processing Dependency: glibc-devel for package: oracle-rdbms-server-11gR2-preinstall-1.0-9.el6.x86_64
--> Processing Dependency: compat-libstdc++-33 for package: oracle-rdbms-server-11gR2-preinstall-1.0-9.el6.x86_64
--> Processing Dependency: libstdc++-devel for package: oracle-rdbms-server-11gR2-preinstall-1.0-9.el6.x86_64
--> Running transaction check
---> Package compat-libcap1.x86_64 0:1.10-1 will be installed
---> Package compat-libstdc++-33.x86_64 0:3.2.3-69.el6 will be installed
---> Package gcc.x86_64 0:4.4.7-4.el6 will be installed
--> Processing Dependency: libgomp = 4.4.7-4.el6 for package: gcc-4.4.7-4.el6.x86_64
--> Processing Dependency: cpp = 4.4.7-4.el6 for package: gcc-4.4.7-4.el6.x86_64
--> Processing Dependency: libgcc >= 4.4.7-4.el6 for package: gcc-4.4.7-4.el6.x86_64
--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.7-4.el6.x86_64
---> Package gcc-c++.x86_64 0:4.4.7-4.el6 will be installed
--> Processing Dependency: libstdc++ = 4.4.7-4.el6 for package: gcc-c++-4.4.7-4.el6.x86_64
--> Processing Dependency: libmpfr.so.1()(64bit) for package: gcc-c++-4.4.7-4.el6.x86_64
---> Package glibc-devel.x86_64 0:2.12-1.132.el6 will be installed
--> Processing Dependency: glibc-headers = 2.12-1.132.el6 for package: glibc-devel-2.12-1.132.el6.x86_64
--> Processing Dependency: glibc = 2.12-1.132.el6 for package: glibc-devel-2.12-1.132.el6.x86_64
--> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.132.el6.x86_64
---> Package ksh.x86_64 0:20120801-10.el6_5.3 will be installed
---> Package libaio-devel.x86_64 0:0.3.107-10.el6 will be installed
---> Package libstdc++-devel.x86_64 0:4.4.7-4.el6 will be installed
---> Package xorg-x11-utils.x86_64 0:7.5-6.el6 will be installed
--> Processing Dependency: libdmx.so.1()(64bit) for package: xorg-x11-utils-7.5-6.el6.x86_64
--> Processing Dependency: libXxf86dga.so.1()(64bit) for package: xorg-x11-utils-7.5-6.el6.x86_64
--> Running transaction check
---> Package cloog-ppl.x86_64 0:0.15.7-1.2.el6 will be installed
--> Processing Dependency: libppl_c.so.2()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
--> Processing Dependency: libppl.so.7()(64bit) for package: cloog-ppl-0.15.7-1.2.el6.x86_64
---> Package cpp.x86_64 0:4.4.7-4.el6 will be installed
---> Package glibc.x86_64 0:2.12-1.80.el6 will be updated
--> Processing Dependency: glibc = 2.12-1.80.el6 for package: glibc-common-2.12-1.80.el6.x86_64
---> Package glibc.x86_64 0:2.12-1.132.el6 will be an update
---> Package glibc-headers.x86_64 0:2.12-1.132.el6 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.12-1.132.el6.x86_64
--> Processing Dependency: kernel-headers for package: glibc-headers-2.12-1.132.el6.x86_64
---> Package libXxf86dga.x86_64 0:1.1.3-2.el6 will be installed
---> Package libdmx.x86_64 0:1.1.2-2.el6 will be installed
---> Package libgcc.x86_64 0:4.4.6-4.el6 will be updated
---> Package libgcc.x86_64 0:4.4.7-4.el6 will be an update
---> Package libgomp.x86_64 0:4.4.6-4.el6 will be updated
---> Package libgomp.x86_64 0:4.4.7-4.el6 will be an update
---> Package libstdc++.x86_64 0:4.4.6-4.el6 will be updated
---> Package libstdc++.x86_64 0:4.4.7-4.el6 will be an update
---> Package mpfr.x86_64 0:2.4.1-6.el6 will be installed
--> Running transaction check
---> Package glibc-common.x86_64 0:2.12-1.80.el6 will be updated
---> Package glibc-common.x86_64 0:2.12-1.132.el6 will be an update
---> Package kernel-uek-headers.x86_64 0:2.6.32-400.34.3.el6uek will be installed
---> Package ppl.x86_64 0:0.10.2-11.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                         Arch   Version                Repository  Size
================================================================================
Installing:
 oracle-rdbms-server-11gR2-preinstall
                                 x86_64 1.0-9.el6              ol6_latest  17 k
Installing for dependencies:
 cloog-ppl                       x86_64 0.15.7-1.2.el6         ol6_latest  93 k
 compat-libcap1                  x86_64 1.10-1                 ol6_latest  17 k
 compat-libstdc++-33             x86_64 3.2.3-69.el6           ol6_latest 183 k
 cpp                             x86_64 4.4.7-4.el6            ol6_latest 3.7 M
 gcc                             x86_64 4.4.7-4.el6            ol6_latest  10 M
 gcc-c++                         x86_64 4.4.7-4.el6            ol6_latest 4.7 M
 glibc-devel                     x86_64 2.12-1.132.el6         ol6_latest 977 k
 glibc-headers                   x86_64 2.12-1.132.el6         ol6_latest 608 k
 kernel-uek-headers              x86_64 2.6.32-400.34.3.el6uek ol6_latest 737 k
 ksh                             x86_64 20120801-10.el6_5.3    ol6_latest 756 k
 libXxf86dga                     x86_64 1.1.3-2.el6            ol6_latest  24 k
 libaio-devel                    x86_64 0.3.107-10.el6         ol6_latest  13 k
 libdmx                          x86_64 1.1.2-2.el6            ol6_latest  20 k
 libstdc++-devel                 x86_64 4.4.7-4.el6            ol6_latest 1.6 M
 mpfr                            x86_64 2.4.1-6.el6            ol6_latest 156 k
 ppl                             x86_64 0.10.2-11.el6          ol6_latest 1.3 M
 xorg-x11-utils                  x86_64 7.5-6.el6              ol6_latest  94 k
Updating for dependencies:
 glibc                           x86_64 2.12-1.132.el6         ol6_latest 3.8 M
 glibc-common                    x86_64 2.12-1.132.el6         ol6_latest  14 M
 libgcc                          x86_64 4.4.7-4.el6            ol6_latest 100 k
 libgomp                         x86_64 4.4.7-4.el6            ol6_latest 118 k
 libstdc++                       x86_64 4.4.7-4.el6            ol6_latest 292 k

Transaction Summary
================================================================================
Install      18 Package(s)
Upgrade       5 Package(s)

Total download size: 43 M
Is this ok [y/N]: y
Downloading Packages:
(1/23): cloog-ppl-0.15.7-1.2.el6.x86_64.rpm              |  93 kB     00:00   
(2/23): compat-libcap1-1.10-1.x86_64.rpm                 |  17 kB     00:00   
(3/23): compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm      | 183 kB     00:00   
(4/23): cpp-4.4.7-4.el6.x86_64.rpm                       | 3.7 MB     00:01   
(5/23): gcc-4.4.7-4.el6.x86_64.rpm                       |  10 MB     00:03   
(6/23): gcc-c++-4.4.7-4.el6.x86_64.rpm                   | 4.7 MB     00:01   
(7/23): glibc-2.12-1.132.el6.x86_64.rpm                  | 3.8 MB     00:01   
(8/23): glibc-common-2.12-1.132.el6.x86_64.rpm           |  14 MB     00:04   
(9/23): glibc-devel-2.12-1.132.el6.x86_64.rpm            | 977 kB     00:00   
(10/23): glibc-headers-2.12-1.132.el6.x86_64.rpm         | 608 kB     00:00   
(11/23): kernel-uek-headers-2.6.32-400.34.3.el6uek.x86_6 | 737 kB     00:00   
(12/23): ksh-20120801-10.el6_5.3.x86_64.rpm              | 756 kB     00:00   
(13/23): libXxf86dga-1.1.3-2.el6.x86_64.rpm              |  24 kB     00:00   
(14/23): libaio-devel-0.3.107-10.el6.x86_64.rpm          |  13 kB     00:00   
(15/23): libdmx-1.1.2-2.el6.x86_64.rpm                   |  20 kB     00:00   
(16/23): libgcc-4.4.7-4.el6.x86_64.rpm                   | 100 kB     00:00   
(17/23): libgomp-4.4.7-4.el6.x86_64.rpm                  | 118 kB     00:00   
(18/23): libstdc++-4.4.7-4.el6.x86_64.rpm                | 292 kB     00:00   
(19/23): libstdc++-devel-4.4.7-4.el6.x86_64.rpm          | 1.6 MB     00:00   
(20/23): mpfr-2.4.1-6.el6.x86_64.rpm                     | 156 kB     00:00   
(21/23): oracle-rdbms-server-11gR2-preinstall-1.0-9.el6. |  17 kB     00:00   
(22/23): ppl-0.10.2-11.el6.x86_64.rpm                    | 1.3 MB     00:00   
(23/23): xorg-x11-utils-7.5-6.el6.x86_64.rpm             |  94 kB     00:00   
--------------------------------------------------------------------------------
Total                                           2.6 MB/s |  43 MB     00:16   
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Retrieving key from http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
Importing GPG key 0xEC551F03:
 Userid: "Oracle OSS group (Open Source Software group) "
 From  : http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : libgcc-4.4.7-4.el6.x86_64                                   1/28
  Updating   : glibc-common-2.12-1.132.el6.x86_64                          2/28
  Updating   : glibc-2.12-1.132.el6.x86_64                                 3/28
  Updating   : libstdc++-4.4.7-4.el6.x86_64                                4/28
  Installing : libstdc++-devel-4.4.7-4.el6.x86_64                          5/28
  Installing : mpfr-2.4.1-6.el6.x86_64                                     6/28
  Installing : cpp-4.4.7-4.el6.x86_64                                      7/28
  Installing : ppl-0.10.2-11.el6.x86_64                                    8/28
  Installing : cloog-ppl-0.15.7-1.2.el6.x86_64                             9/28
  Installing : compat-libcap1-1.10-1.x86_64                               10/28
  Installing : compat-libstdc++-33-3.2.3-69.el6.x86_64                    11/28
  Installing : libXxf86dga-1.1.3-2.el6.x86_64                             12/28
  Installing : ksh-20120801-10.el6_5.3.x86_64                             13/28
  Updating   : libgomp-4.4.7-4.el6.x86_64                                 14/28
  Installing : libdmx-1.1.2-2.el6.x86_64                                  15/28
  Installing : xorg-x11-utils-7.5-6.el6.x86_64                            16/28
  Installing : kernel-uek-headers-2.6.32-400.34.3.el6uek.x86_64           17/28
  Installing : glibc-headers-2.12-1.132.el6.x86_64                        18/28
  Installing : glibc-devel-2.12-1.132.el6.x86_64                          19/28
  Installing : gcc-4.4.7-4.el6.x86_64                                     20/28
  Installing : gcc-c++-4.4.7-4.el6.x86_64                                 21/28
  Installing : libaio-devel-0.3.107-10.el6.x86_64                         22/28
  Installing : oracle-rdbms-server-11gR2-preinstall-1.0-9.el6.x86_64      23/28
  Cleanup    : libstdc++-4.4.6-4.el6.x86_64                               24/28
  Cleanup    : libgomp-4.4.6-4.el6.x86_64                                 25/28
  Cleanup    : glibc-common-2.12-1.80.el6.x86_64                          26/28
  Cleanup    : glibc-2.12-1.80.el6.x86_64                                 27/28
  Cleanup    : libgcc-4.4.6-4.el6.x86_64                                  28/28
  Verifying  : glibc-2.12-1.132.el6.x86_64                                 1/28
  Verifying  : glibc-devel-2.12-1.132.el6.x86_64                           2/28
  Verifying  : libaio-devel-0.3.107-10.el6.x86_64                          3/28
  Verifying  : gcc-4.4.7-4.el6.x86_64                                      4/28
  Verifying  : glibc-headers-2.12-1.132.el6.x86_64                         5/28
  Verifying  : libstdc++-4.4.7-4.el6.x86_64                                6/28
  Verifying  : compat-libcap1-1.10-1.x86_64                                7/28
  Verifying  : libstdc++-devel-4.4.7-4.el6.x86_64                          8/28
  Verifying  : xorg-x11-utils-7.5-6.el6.x86_64                             9/28
  Verifying  : cpp-4.4.7-4.el6.x86_64                                     10/28
  Verifying  : glibc-common-2.12-1.132.el6.x86_64                         11/28
  Verifying  : compat-libstdc++-33-3.2.3-69.el6.x86_64                    12/28
  Verifying  : mpfr-2.4.1-6.el6.x86_64                                    13/28
  Verifying  : libXxf86dga-1.1.3-2.el6.x86_64                             14/28
  Verifying  : gcc-c++-4.4.7-4.el6.x86_64                                 15/28
  Verifying  : cloog-ppl-0.15.7-1.2.el6.x86_64                            16/28
  Verifying  : ksh-20120801-10.el6_5.3.x86_64                             17/28
  Verifying  : libgomp-4.4.7-4.el6.x86_64                                 18/28
  Verifying  : oracle-rdbms-server-11gR2-preinstall-1.0-9.el6.x86_64      19/28
  Verifying  : ppl-0.10.2-11.el6.x86_64                                   20/28
  Verifying  : kernel-uek-headers-2.6.32-400.34.3.el6uek.x86_64           21/28
  Verifying  : libgcc-4.4.7-4.el6.x86_64                                  22/28
  Verifying  : libdmx-1.1.2-2.el6.x86_64                                  23/28
  Verifying  : libstdc++-4.4.6-4.el6.x86_64                               24/28
  Verifying  : glibc-common-2.12-1.80.el6.x86_64                          25/28
  Verifying  : glibc-2.12-1.80.el6.x86_64                                 26/28
  Verifying  : libgomp-4.4.6-4.el6.x86_64                                 27/28
  Verifying  : libgcc-4.4.6-4.el6.x86_64                                  28/28

Installed:
  oracle-rdbms-server-11gR2-preinstall.x86_64 0:1.0-9.el6                     

Dependency Installed:
  cloog-ppl.x86_64 0:0.15.7-1.2.el6                                           
  compat-libcap1.x86_64 0:1.10-1                                              
  compat-libstdc++-33.x86_64 0:3.2.3-69.el6                                   
  cpp.x86_64 0:4.4.7-4.el6                                                    
  gcc.x86_64 0:4.4.7-4.el6                                                    
  gcc-c++.x86_64 0:4.4.7-4.el6                                                
  glibc-devel.x86_64 0:2.12-1.132.el6                                         
  glibc-headers.x86_64 0:2.12-1.132.el6                                       
  kernel-uek-headers.x86_64 0:2.6.32-400.34.3.el6uek                          
  ksh.x86_64 0:20120801-10.el6_5.3                                            
  libXxf86dga.x86_64 0:1.1.3-2.el6                                            
  libaio-devel.x86_64 0:0.3.107-10.el6                                        
  libdmx.x86_64 0:1.1.2-2.el6                                                 
  libstdc++-devel.x86_64 0:4.4.7-4.el6                                        
  mpfr.x86_64 0:2.4.1-6.el6                                                   
  ppl.x86_64 0:0.10.2-11.el6                                                  
  xorg-x11-utils.x86_64 0:7.5-6.el6                                           

Dependency Updated:
  glibc.x86_64 0:2.12-1.132.el6       glibc-common.x86_64 0:2.12-1.132.el6   
  libgcc.x86_64 0:4.4.7-4.el6         libgomp.x86_64 0:4.4.7-4.el6           
  libstdc++.x86_64 0:4.4.7-4.el6   

Complete!


[root@node1 ~]# yum install oracleasm
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package kernel-uek.x86_64 0:2.6.39-400.214.3.el6uek will be installed
--> Processing Dependency: kernel-uek-firmware = 2.6.39-400.214.3.el6uek for package: kernel-uek-2.6.39-400.214.3.el6uek.x86_64
--> Running transaction check
---> Package kernel-uek-firmware.noarch 0:2.6.39-400.214.3.el6uek will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package              Arch    Version                     Repository       Size
================================================================================
Installing:
 kernel-uek           x86_64  2.6.39-400.214.3.el6uek     ol6_UEK_latest   28 M
Installing for dependencies:
 kernel-uek-firmware  noarch  2.6.39-400.214.3.el6uek     ol6_UEK_latest  3.6 M

Transaction Summary
================================================================================
Install       2 Package(s)

Total download size: 32 M
Installed size: 119 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): kernel-uek-2.6.39-400.214.3.el6uek.x86_64.rpm     |  28 MB     00:16    
(2/2): kernel-uek-firmware-2.6.39-400.214.3.el6uek.noarc | 3.6 MB     00:01    
--------------------------------------------------------------------------------
Total                                           1.7 MB/s |  32 MB     00:18    
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : kernel-uek-firmware-2.6.39-400.214.3.el6uek.noarch           1/2
  Installing : kernel-uek-2.6.39-400.214.3.el6uek.x86_64                    2/2
  Verifying  : kernel-uek-2.6.39-400.214.3.el6uek.x86_64                    1/2
  Verifying  : kernel-uek-firmware-2.6.39-400.214.3.el6uek.noarch           2/2

Installed:
  kernel-uek.x86_64 0:2.6.39-400.214.3.el6uek                                  

Dependency Installed:
  kernel-uek-firmware.noarch 0:2.6.39-400.214.3.el6uek                         

Complete!


[root@node1 ~]# yum install oracleasm-support
Loaded plugins: refresh-packagekit, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package oracleasm-support.x86_64 0:2.1.8-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                 Arch         Version            Repository        Size
================================================================================
Installing:
 oracleasm-support       x86_64       2.1.8-1.el6        ol6_latest        73 k

Transaction Summary
================================================================================
Install       1 Package(s)

Total download size: 73 k
Installed size: 216 k
Is this ok [y/N]: y
Downloading Packages:
oracleasm-support-2.1.8-1.el6.x86_64.rpm                 |  73 kB     00:00    
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : oracleasm-support-2.1.8-1.el6.x86_64                         1/1
  Verifying  : oracleasm-support-2.1.8-1.el6.x86_64                         1/1

Installed:
  oracleasm-support.x86_64 0:2.1.8-1.el6                                       

Complete!

 

39) configure ASMLib:-

[root@node1 ~]# oracleasm configure -i
Configuring the Oracle ASM library driver.

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

Default user to own the driver interface []: oracle
Default group to own the driver interface []: oinstall
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: Enter
Writing Oracle ASM library driver configuration: done


40) Create oracle user, group and directory:-


[root@node1 ~]# mkdir -p  /u01 
[root@node1 ~]# chown -R oracle:oinstall /u01 
[root@node1 ~]# chmod -R 775 /u01 
[root@node1 ~]# usermod -G dba oracle 
[root@node1 ~]# passwd oracle 
Changing password for user oracle.
New password:
BAD PASSWORD: it is based on a dictionary word
BAD PASSWORD: is too simple
Retype new password:
passwd: all authentication tokens updated successful


41) Disable Linux kernel securities by editing the "/etc/selinux/config" file as follows:- 


[root@node1 ~]# vi /etc/selinux/config

SELINUX=disabled

[root@node1 ~]# service ntpd stop
Shutting down ntpd:                                        [FAILED]
[root@node1 ~]# chkconfig ntpd off
[root@node1 ~]# mv /etc/ntp.conf /etc/ntp.conf.bkp

Clean all cached files from the repository that was used for previous install/updates that are no longer required to free up some space.

[root@node1 ~]# yum clean all
Loaded plugins: refresh-packagekit, security
Cleaning repos: ol6_UEK_latest ol6_latest
Cleaning up Everything
 


42) Add below in /etc/hosts file

# Private
10.0.0.1    node1-priv.babulab   node1-priv
10.0.0.2    node2-priv.babulab   node2-priv   

# Public
192.168.50.11    node1.babulab        node1
192.168.50.12    node2.babulab        node2

# Virtual
192.168.50.21    node1-vip.babulab    node1-vip
192.168.50.22    node2-vip.babulab    node2-vip

# SCAN
192.168.50.31    node-scan.babulab    node-scan
192.168.50.32    node-scan.babulab    node-scan
192.168.50.33    node-scan.babulab    node-scan


43) Check disk space usage


44) Shutdown the virtual machine:-


[root@node1 ~]# init 0

45) Now node 1 is complete, next step is to clone this VM to create the 2nd node.


No comments: