Home > Oracle 11g Release 2 > Oracle 11g Release 2 Install Guide – Grid Infrastructure installation

Oracle 11g Release 2 Install Guide – Grid Infrastructure installation

System configuration:

Hardware configuration

  • two virtual machines (VMWARE)
  • 1 vCPU
  • 2 GB RAM –> bare minimum possible
  • 40 GB Disk
  • Storage exported via ISCSI
    • 4 LUNs with 2 GB each
    • 2 LUNs with 30 GB each

Operating system configuration

  • Oracle Enterprise Linux 5.3 x86_64 (Kernel 2.6.18-128.el5)
  • Installed packages: default system + development packages

Grid Infrastructure configuration:

  • Cluster Name: “RAC”
  • Binary installation on local disk
  • OCR, Voting and datafiles stored in ASM

Steps to install Oracle 11g Release 2 Grid Infrastructure

  • Configure Linux and pre-requirements
  • Configure Storage
  • Binary installation of grid infrastructure
  • Installation of Oracle 11g Release 2 Database (either single or rac installation)

Configure Linux and pre-requirements

SWAP

  • Between 1 and 2 GB RAM –>SWAP 1.5 times the size of RAM
  • Between 2 and 16 GB RAM –> equal to size of RA
  • > 16 GB RAM –> 16 GB SWAP

Memory

  • according to grid infrastructure documentation “>= 1 GB Memory”
  • bare minumum from authors experience:
    • 1 GB for grid infrastructure components
    • 500 MB for operating system
    • 1 GB for cluster database SGA/PGA/UGA
    • = 2,5 GB bare minimum!

See below for memory consumption with grid infrastructure installed: > 800 MB for infrastructure processes

step2_010

Automatic Memory Management

Required /dev/shm with appropriate size (i.e. SGA of 16 GB required /dev/shm to be 16 GB+)

Huge Pages and autom. Memory Management are INCOMPATIBLE

Checking required packages

(see required packages for single database installation; this applies here as well cause we will end up install a database in the end)

According to the documentation the following packages are needed:

  • binutils-2.17.50.0.6
  • compat-libstdc++-33-3.2.3
  • compat-libstdc++-33-3.2.3 (32 bit)
  • elfutils-libelf-0.125
  • elfutils-libelf-devel-0.125
  • gcc-4.1.2, gcc-c++-4.1.2
  • glibc-2.5-24, glibc-2.5-24 (32 bit)
  • glibc-common-2.5
  • glibc-devel-2.5
  • glibc-devel-2.5 (32 bit)
  • glibc-headers-2.5
  • ksh-20060214
  • libaio-0.3.106
  • libaio-0.3.106 (32 bit)
  • libaio-devel-0.3.106
  • libaio-devel-0.3.106 (32 bit)
  • libgcc-4.1.2, libgcc-4.1.2 (32 bit)
  • libstdc++-4.1.2
  • libstdc++-4.1.2 (32 bit)
  • libstdc++-devel 4.1.2
  • make-3.81
  • sysstat-7.0.2
  • unixODBC-2.2.11
  • unixODBC-2.2.11 (32 bit)
  • unixODBC-devel-2.2.11
  • unixODBC-devel-2.2.11 (32 bit)

On sample system with OEL 5.3 and default + development packages installed only the following rpms were missing:

rpm -ihv libaio-devel-0.3.106-3.2.* libstdc++43-devel-4.3.2-7.el5.* sysstat-7.0.2-3.el5.x86_64.rpm unixODBC-2.2.11-7.1.* unixODBC-devel-2.2.11-7.1.*

Shell Limits

/etc/security/limits.conf

grid                  soft     nproc    16384
grid                  hard    nproc    16384
grid                  soft     nofile   65536
grid                  hard    nofile   65536
grid                  soft     stack      10240
grid                 hard    stack      10240

In /etc/pam.d/login add if not exists

session    required     pam_limits.so

Kernel Limits (MINIMUM values) in /etc/sysctl.conf

kernel.sem=250 32000 100 128
kernel.shmall=2097152
kernel.shmmax=536870912
kernel.shmmni=4096
fs.file-max=6815744
fs.aio-max-nr=1048576
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=1048576

- SuSE only -
vm.hugetlb_shm_group=<gid of osdba group>

The values in /etc/sysctl.conf should be tuned (i.e. according to the number of instance, available memory, number of connections,…)

Kernel Limits on Linux (Calculate them)

kernel.sem

semmns = Total number of semaphores systemwide =

2 * sum (process parameters of all database instances on the system)
+ overhead for background processes
+ system and other application requirements

semmsl = total semaphoren for each set

semmni = total semaphore sets =  semmns divided by semmsl, rounded UP to nearest multiple to 1024

kernel.sem = <semmsl semmns semopm semmni>

semmsl    =  set to 256
semmns    = set total number of semaphoren (see above!)
semopm    = 100; in documentation not explicitly described
semmni    = see calculcation above

kernel.shmall

kernel.shmall = This parameter sets the total amount of shared memory pages that  can be used system wide. Hence, SHMALL should always be at least   ceil(shmmax/PAGE_SIZE). PAGE_SIZE is usually 4096 bytes unless you use Big Pages or Huge  Pages which supports the configuration of larger memory pages.  (quoted from: www.puschitz.com/TuningLinuxForOracle.shtml)

kernel.shmmax

kernel.shmmax = the maximum size of a single shared memory segment in bytes that
a linux process can allocate
If not set properly database startup can fail with:

ORA-27123: unable to attach to shared memory segment

kernel.shmmni

kernel.shmmni = system wide number of shared memory segments; Oracle recommendation for 11g Release 1 “at least to 4096″; i did not found anything for Release 2….

fs.file-max

fs.file-max = maximum number of open files system-wide; must be at least %G„%@6815744$(B!H(B

fs.aio-max-nr

fs.aio-max-nr = concurrent outstanding i/o requests; must be set to %G„%@1048576$(B!H(B

net.ipv4.ip_local_port_range

net.ipv4.ip_local_port_range = mimimum and maximum ports for use; must be set to  minimal “9000″ and “65500″ as maximum

net.core.rmem_default

net.core.rmem_default = the default size in bytes of the receive buffer; must  be set at least to “262144″

net.core.rmem_max

net.core.rmem_max = the maximum size in bytes of the receive buffer; must be set at least to “@4194304″

net.core.wmem_default

net.core.wmem_default = the default size in bytes of the send buffer; must be set at least to “262144″

net.core.wmem_max

net.core.wmem_max = the maximum size in bytes of the send buffer; must be set at least to “1048576″

Networking

Basic facts

  • Works completely different than 10g or 11g R1!
  • At least two separated networks (public and private) and therefore two network interfaces required
  • ATTENTION: Interface names must be equal on ALL nodes! (i.e. If private network interface on node A is eth2 the private network interface name on all other nodes must be eth2 as well…. )
  • Recommendation: Use bonding for:
    • Static naming (even if you use only one interface per bond)
    • Failover / Load Sharing
    • –> we will use network bonding with only one interface in the following
  • IP adresses can be given by two schemes:
    • GNS (grid naming service) –> automatic ip numbering
    • Manual Mode
    • –> we will use manual ip adressing mode in the following
  • GNS mode requires:
    • one fixed public IP for each node
    • one dhcp virtual IP for each node
    • one hdcp for fixed private IP for each node
    • three dhcp IP for the SCAN
    • Thougths by the author:
      • new
      • more complex
      • if working quite easy adding of an node; at least from the ip numbering point of view %G–%@ but how often do you add a node?
  • Manual Mode ip adressing requires:
    • one public IP for each node
    • one virtual IP for each node
    • one private IP for each node
    • one to three (recommended) IPs for providing the SCAN name

Naming schema used in the following (remember: 2-node-cluster)

step2_011

Configure Network Bonding

In /etc/modprobe.conf add line:

alias bond0 bonding
alias bond1 bonding
options bonding miimon=100 mode=1 max-bonds=2
(“mode=1″ means active/passive failover… see “bonding.txt” in kernel sources for more options)
/etc/sysconfig/network-scripts/ifcfg-bond0 looks like:

DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
NETWORK=192.168.180.0
NETMASK=255.255.255.0
IPADDR=192.168.180.10
USERCTL=no
/etc/sysconfig/network-scripts/ifcfg-eth0 looks like:

DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=yes

(Note: Add a second interface to achive real fault tolerance…. for our testing environment we use bonding to provide a consistent name schema)

The configuration for bond1 is not shown… just alter interface names and IPs.

Configure NTP

Grid Infrastructure provides ntp-like time synchronization with “ctss” (cluster time synchronization service) ctssd is provided in case connections to ntp servers are not possible

If no running (“chkconfig ntpd off” and configured “rm /etc/ntp.conf” ntpd is found ctssd will be used; if ntpd is found  ctssd will start in observer mode.

ATTENTION: Set the “-x” flag if you use ntp to prevent ntp from stepping the clock in /etc/sysconfig/ntpd!

Check if NTP is working

  • start “ntpq”
  • enter “opeer” to see list of all peers
    In our example two peers: host “nb-next-egner” and the local clock

step2_012

enter “as” to see associations
“sys.peer” means the clock is synchronized against this; the order in which the entries apper is like “opeer” – so first entry means host “nb-next-egner” – fine!
reject means not synchronized against due to various reasons
enter “rv” for detailed information

step2_013

SCAN

  • SCAN = Single Client Access Name; new concept in 11g R2
  • DNS-based
  • nameing notation: <name of cluster>-scan.<domain>
  • for our cluster named  “rac” with domain “regner.de” this is    rac-scan.regner.de
  • You need at least ONE – better three IPs for the new database access schema called SCAN
  • IPs are configured in DNS (forward and reverse lookup);
  • !! using local hosts file failed verification after grid installation !!
  • forward- and reverse lookup needs to be configured
  • excerpt from zone file:
    rac-scan          IN A          192.168.180.6
    rac-scan          IN A          192.168.180.7
    rac-scan          IN A          192.168.180.8

After installation we will find three listeners running from grid infrastructure home:

bash# srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node rac1
SCAN Listener LISTENER_SCAN2 is enabled
SCAN listener LISTENER_SCAN2 is running on node rac2
SCAN Listener LISTENER_SCAN3 is enabled
SCAN listener LISTENER_SCAN3 is running on node rac2

Connection to database “RAC11P” using SCAN would use this tnsnames entry:

RAC11P =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=rac-scan.regner.de)(PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=RAC11P))
)

The ”old fashioned” way still works:

RAC11P_old =
(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HOST=rac1-vip.regner.de)(PORT=1521))
(ADDRESS=(PROTOCOL=tcp)(HOST=rac2-vip.regner.de)(PORT=1521))
)
(CONNECT_DATA=(SERVICE_NAME=RAC11P))
)

Connecting to a named instance:

RAC11P =
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=rac-scan.regner.de)(PORT=1521))
(CONNECT_DATA=(SERVICE_NAME=RAC11P)
(INSTANCE_NAME=RAC11P1))
)

Check DNS for SCAN

Update [16th October 2009]: If you do not have a working DNS server available refer here to set up your own,

Forward lookup

Use ”dig” to check: “dig rac-scan.regner.de”

step2_014

Reverse lookup

Use “dig -x” to check

dig -x 192.168.180.6
dig -x 192.168.180.7
dig -x 192.168.180.8

step2_015

Create User and Group

Create Group

groupadd -g 500 dba

Note: For educational purposes we use only one group. In productive enviroments there should be more groups to separate administrative duties.

Create User

mkdir -p /u01/app/11.2.0/grid
chown -R root:dba /u01
chmod -R 775 /u01
chown -R grid:dba /u01/app/11.2.0/grid
useradd -g dba -u 500 -d /u01/app/11.2.0/grid grid
passwd grid

Note: Oracle recommends different users for grid and database installation!

Make sure groupid and userid are the same on ALL nodes!

Create profile file (~/.bash_profile or ~/.profile on SuSE) for user “grid”

umask 022
if [ -t 0 ]; then
stty intr ^C
fi

Prepare and Configure Storage

  • Requirements
    • must be visible on all nodes
    • as always – recommendation: SAME (stripe and mirror everything)
  • What to store where:
    • OCR and Voting disk
      • ASM
      • NFS
      • RAW disks (deprecated; read doucmentation!)
    • Oracle Clusterware binaries
      • NFS
      • Local disk
    • Oracle RAC binaries
      • ACFS
      • NFS
      • local disk
    • Oracle database files
      • ASM
      • NFS
      • RAW disks
    • Oracle recovery files
      • ASM
      • NFS

Install RPMs

  • oracleasmsupport
  • oracleasmlib
  • oracleasm-<kernel-version>
    (see “Sources” for download locatio)

Configure ASM

/usr/sbin/oracleasm configure -i

step2_016

init ASM

/usr/sbin/oracleasm init

Create Partitions on disk with fdisk

In the following example disk /dev/sde (this is our iSCSI storage) does not contain a partition at all  – we will create one

step2_017

Create one whole disk partition on /dev/sde

step2_018

Label all disks with asm label

step2_019

Query disks on all nodes – Node “rac1″

step2_020

–> all disks visible with correct label

Query disks on all nodes – Node ”rac2″ (the other node)

–> also all four LUNs visible

step2_021

OCR and Voting disks

  • Will be placed in ASM (new in 11g R2)
  • three different redundancy levels:
    • External - 1 disk minimum needed
    • Normal - 3 disks minumum needed
    • High  - 5 disks minimum needed
  • Storage Requirments
    • External - 280 MB OCR + 280 MB Voting Disk
    • Normal - 560 MB OCR + 840 MB Voting Disk
    • High  - 840 MB OCR + 1,4 GB Voting Disk
    • plus Overhead for ASM Metadata

Overhead for ASM metadata

total =
[2 * ausize * disks]
+ [redundancy * (ausize * (nodes * (clients + 1) + 30) + (64 * nodes) + 533)]

redundancy = Number of mirrors: external = 1, normal = 2, high = 3.
ausize = Metadata AU size in megabytes.
nodes = Number of nodes in cluster.
clients – Number of database instances for each node.
disks – Number of disks in disk group.
For example, for a four-node Oracle RAC installation, using three disks in a normal redundancy disk group, you require 1684 MB of space for ASM metadata

[2 * 1 * 3]
+ [2 * (1 * (4 * (4 + 1)+ 30)+ (64 * 4)+ 533)]
= 1684 MB

OCR and Voting disks – recommendations

  • use high redundancy for OCR and Voting disks -  the correct function of your cluster depends on it!
  • use 5 disks with 10 GB each - enough space for all files plus asm metadata plus space for futher growth

Checklist

  • Storage visible
  • user and groups created
  • Kernel parameters configured
  • RPM Packages checked / installed
  • NTP working
  • DNS working
  • Connection (ping, ssh) between nodes working?
  • Backup available for rollback?

–> Alright! Lets start binary installation

Installing

Start installation as user “grid” (on one node (here on node “rac1″))

step2_022
step2_023
step2_024
step2_025

Remember: We choose not to use GNS; so it is deselected

step2_026

The node the installer was started is already added by default; add here all other nodes (in our case we added “rac2″)
step2_027

Click on “SSH Connectivity”, enter username and password and click on “Setup”
step2_028

If everything worked the following message appears
step2_029

If there are problems check:

  • Group ID and User ID on both nodes
  • Connectivity between both nodes
  • Passwords

Select which interface is the public and which the private one
step2_030

Where to place OCR and Voting disk… in our case we use ASM for everything
step2_031

For storing OCR and Voting disk we need to create a data group; our first data group is called “DATA1″ and consists of the four LUNs we prepared and labeled before… here we see the disk names we labeled the disks with again. We choose “normal” redundancy which will create a mirror.
step2_032

Specify passwords for ASM and ASMSNMP.. choose strong passwords if possible (i was lazy and chose not that strong ones – acceptable for educational purposes but not in real productive scenarios)
step2_033

Grid Infrastructure can use IPMI for fencing… VMWARE does not have IPMI
step2_034

group mapping…for role separation… we have only “dba” ? change accordingly to your needs
step2_035

Set Oracle Base and software (install) location… software location must not be under oracle base location… else the installer throws an error saying so
step2_036

Inventoriy location…
step2_037

Make sure you fix every issue reported here (memory and swap size are limited on virtual machine so this is not fixable…but should anyway)

step2_038

Ready..
step2_039

Installing…
step2_040

Post-Installation scripts to be started in the following order:

  • orainstRoot.sh on node rac1
  • orainstRoot.sh on node rac2
  • root.sh on node rac1
  • root.sh on node rac2

step2_041

Sample of root.sh output

step2_042

The full output can be found rac-install-node1 and rac-install-node2.

If everything works as expected the result should look like this:
step2_043

FINISHED
step2_044

If there are problems:

  • Look at the log files located on /u01/app/oraInventory/logs
  • Fix the issues noted here
  • If this does not work out: Search Metalink / Open SR

Where to go now?

  • We just installed the Infrastructure needed for RAC, i.e. ASM and Clusterware
  • Install diagnostic utilities (strongly recommended)
    • OSWatcher
    • and RACDDT
  • Tune Kernel parameters (if not done before)
  • Create at least TWO more disk groups:
    • one for holding database files (i.e. datafiles and binary installation files)
    • one to be used as flashback recovery area
  • Backup current configuration
  • some ADVM (ASM Dynamic Volume Manager) and ACFS (ASM Cluster File system) foundations can be found here
  • now we need to install a RAC database - this is covered here and here
Categories: Oracle 11g Release 2 Tags:
  1. Sayantan
    April 15th, 2010 at 16:36 | #1

    i have created the bond as shown by u.problem is that its not pinging to google via my ADSL modem…

    what to do?

    do i need IPADDR= or GATEWAY= ??Or what else?

  2. Ronny Egner
    April 16th, 2010 at 07:51 | #2

    Check for your default gateway….

  3. Sayantan
    April 24th, 2010 at 16:22 | #3

    do i need to set each ethernet as slave to the rac-1 bond??

  4. king
    April 25th, 2010 at 06:31 | #4

    hi

    my question may look simple and easy to you.
    my question is how to create bond as eth0 and eth1 sre in two different ip/subnet for a perticular node?

    do i need to run clusterware in each node?

    regards

  5. mangoboy
    April 25th, 2010 at 17:48 | #5

    hi

    how to create bond0 and bond1 for RAC installation between two nodes??
    node1

    [grid1@rac-1 ~]$ /sbin/ifconfig
    eth0 Link encap:Ethernet HWaddr 00:00:E8:F7:02:B0
    inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::200:e8ff:fef7:2b0/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:20571 errors:0 dropped:0 overruns:0 frame:0
    TX packets:19190 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:10508240 (10.0 MiB) TX bytes:9218545 (8.7 MiB)
    Interrupt:177 Base address:0×8400

    eth1 Link encap:Ethernet HWaddr 00:26:18:59:EE:49
    inet addr:192.168.181.10 Bcast:192.168.181.63 Mask:255.255.255.192
    inet6 addr: fe80::226:18ff:fe59:ee49/64 Scope:Link
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:49 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:23
    collisions:0 txqueuelen:1000
    RX bytes:18391 (17.9 KiB) TX bytes:0 (0.0 b)
    Memory:fe9c0000-fea00000

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:16332 errors:0 dropped:0 overruns:0 frame:0
    TX packets:16332 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:16738217 (15.9 MiB) TX bytes:16738217 (15.9 MiB)

    virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
    inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
    inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:47 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 b) TX bytes:10062 (9.8 KiB)

    [grid1@rac-1 ~]$

    node2

    [root@rac-2 ~]# ifconfig
    eth0 Link encap:Ethernet HWaddr 00:1D:72:39:3A:E4
    inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::21d:72ff:fe39:3ae4/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:6765 errors:0 dropped:0 overruns:0 frame:0
    TX packets:7040 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:3922791 (3.7 MiB) TX bytes:1079834 (1.0 MiB)
    Interrupt:169

    eth2 Link encap:Ethernet HWaddr 00:00:00:00:00:00
    inet addr:192.168.181.20 Bcast:192.168.181.63 Mask:255.255.255.192
    inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:7029 (6.8 KiB)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:4970 errors:0 dropped:0 overruns:0 frame:0
    TX packets:4970 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:7648305 (7.2 MiB) TX bytes:7648305 (7.2 MiB)

    virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
    inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
    inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 b) TX bytes:10706 (10.4 KiB)

    [root@rac-2 ~]# ifconfig
    eth0 Link encap:Ethernet HWaddr 00:1D:72:39:3A:E4
    inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::21d:72ff:fe39:3ae4/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:6767 errors:0 dropped:0 overruns:0 frame:0
    TX packets:7044 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:3923027 (3.7 MiB) TX bytes:1080210 (1.0 MiB)
    Interrupt:169

    eth2 Link encap:Ethernet HWaddr 00:00:00:00:00:00
    inet addr:192.168.181.20 Bcast:192.168.181.63 Mask:255.255.255.192
    inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:37 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 b) TX bytes:9982 (9.7 KiB)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:4970 errors:0 dropped:0 overruns:0 frame:0
    TX packets:4970 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:7648305 (7.2 MiB) TX bytes:7648305 (7.2 MiB)

    virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
    inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
    inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 b) TX bytes:10706 (10.4 KiB)

    [root@rac-2 ~]#

    i have done till now….

    Configure Network Bonding

    In /etc/modprobe.conf add line:

    alias bond0 bonding

    alias bond1 bonding

    options bonding miimon=100 mode=1 max-bonds=2

    (“mode=1? means active/passive failover… see “bonding.txt” in kernel sources for more options)

    /etc/sysconfig/network-scripts/ifcfg-bond0 looks like:

    DEVICE=bond0

    BOOTPROTO=none

    ONBOOT=yes

    NETWORK=192.168.181.10

    NETMASK=255.255.255.192

    IPADDR=192.168.181.20

    USERCTL=no

    /etc/sysconfig/network-scripts/ifcfg-eth0 looks like:

    DEVICE=eth0

    BOOTPROTO=none

    ONBOOT=yes

    MASTER=bond0

    SLAVE=yes

    USERCTL=yes

    1)what to do get my access to adsl modem?
    2)what to do on node2?

    i am facing some error when i am installing clusterware bcz the interface names are different in each node.and public and private ip NICs are in different order.

    will this bonding solute out this issue?

    regards

  6. Sayantan
    April 25th, 2010 at 19:41 | #6

    @Ronny Egner

    where to check that?i have already added GATEWAY=192.x.x.x in ifcfg-bond0 file….

    regards

  7. Ronny Egner
    April 26th, 2010 at 07:58 | #7

    Use “netstat -n” to check if there are any routes. In addition to that check if you can ping a server on the internet.

  8. Ronny Egner
    April 26th, 2010 at 07:59 | #8

    No. Slave means in terms of bonding: “what *physical* interfaces consist the interface of”. So eth0 and eth2 might form bond0 while eth1 and eth3 form bond1.

  9. Ronny Egner
    April 26th, 2010 at 08:00 | #9

    You cannot name a network bond “eth0″ or “eth1″. These names are reserved for physical devices. Note that for high availability you need at least two physical interfaces per bond.

  10. Ronny Egner
    April 26th, 2010 at 08:05 | #10

    Hi,

    access to the internet requires some kind of default gateway and a dns server configured (for resolving host names).

    You configuration look quite right.

    On Node 1 the configuration files should state:

    DEVICE=bond0
    BOOTPROTO=none
    ONBOOT=yes
    NETWORK=192.168.181.10
    NETMASK=255.255.255.192
    IPADDR=192.168.181.20
    USERCTL=no

    DEVICE=bond1
    BOOTPROTO=none
    ONBOOT=yes
    NETWORK=192.168.1.255
    NETMASK=255.255.255.0
    IPADDR=192.168.1.3
    USERCTL=no

    DEVICE=eth0
    BOOTPROTO=none
    ONBOOT=yes
    MASTER=bond0
    SLAVE=yes
    USERCTL=yes

    DEVICE=eth1
    BOOTPROTO=none
    ONBOOT=yes
    MASTER=bond1
    SLAVE=yes
    USERCTL=yes

    On Node 2:

    DEVICE=bond0
    BOOTPROTO=none
    ONBOOT=yes
    NETWORK=192.168.181.11
    NETMASK=255.255.255.192
    IPADDR=192.168.181.20
    USERCTL=no

    DEVICE=bond1
    BOOTPROTO=none
    ONBOOT=yes
    NETWORK=192.168.1.255
    NETMASK=255.255.255.0
    IPADDR=192.168.1.4
    USERCTL=no

    DEVICE=eth0
    BOOTPROTO=none
    ONBOOT=yes
    MASTER=bond0
    SLAVE=yes
    USERCTL=yes

    DEVICE=eth2
    BOOTPROTO=none
    ONBOOT=yes
    MASTER=bond1
    SLAVE=yes
    USERCTL=yes

    Using bonding will definitely solve your interface naming problem.

  11. Sayantan
    April 26th, 2010 at 12:04 | #11

    Now getting this….

    INS-32012,INS-32012,INS-20702

    Cause – A call to cluster verification utility failed. Action – Refer to the logs or contact Oracle Support Services. Note for advanced users: Launch the installer by passing the following flag ”-ignoreInternalDriverError”.

  12. Ronny Egner
    April 26th, 2010 at 12:59 | #12

    I have never seen this error before. At what stage do you observe this problem? What is the configuration?
    What is the output of the cluster verification utility?

  13. Sayantan
    April 26th, 2010 at 14:32 | #13

    cluvfy is running fine it states as successful.

    step 12 of 16 i get this error.

  14. Sayantan
    April 26th, 2010 at 14:35 | #14

    this is without vmware installation.so 2gb ram 240gb hdd 4 lun each 10.5gb on ASM shared by iscsi ie tgtadm.

  15. Ronny Egner
    April 26th, 2010 at 14:36 | #15

    Sorry but “step 12 of 16″ does not mean anything to me. Please review your log files for any errors. You can find them in the oraInstall\log directory.

  16. Sayantan
    April 26th, 2010 at 15:45 | #16

    @Ronny Egner
    INFO: Checking specified location on remote nodes…
    INFO: size estimation for Completeinstall is 3017.24600315094
    SEVERE: [FATAL] [INS-32012] Unable to create directory.
    CAUSE: Either proper permissions were not granted to create the directory or there was no space left in the volume.
    ACTION: Check your permission on the selected directory or choose another directory.
    SEVERE: [FATAL] [INS-32012] Unable to create directory.
    CAUSE: Either proper permissions were not granted to create the directory or there was no space left in the volume.
    ACTION: Check your permission on the selected directory or choose another directory.
    SEVERE: [FATAL] [INS-32052] Oracle base and Oracle home locations are same.
    CAUSE: Oracle base and Oracle home locations were same.
    ACTION: Oracle base and Oracle home locations cannot be same. Oracle recommends installing Oracle software within the Oracle base directory. Adjust the Oracle home or Oracle base accordingly.
    SEVERE: [FATAL] [INS-32026] The Software Location specified should not be under Oracle base location.
    CAUSE: Grid Infrastructure for a Cluster installation will assign root ownership to all parent directories of clusterware software location. As a result, all named directories in the software location path will acquire root ownership. This may create problems for subsequent installations into the same Oracle base.
    ACTION: Specify software location outside of Oracle base.
    SEVERE: [FATAL] [INS-20702] Unexpected internal driver error
    CAUSE: A call to cluster verification utility failed.
    ACTION: Refer to the logs or contact Oracle Support Services. Note for advanced users: Launch the installer by passing the following flag ”-ignoreInternalDriverError”..
    Refer associated stacktrace #oracle.install.commons.util.exception.DefaultErrorAdvisor:1740
    INFO: Advice is ABORT
    INFO: Adding ExitStatus INVALID_USER_INPUT to the exit status set
    INFO: Completed validating state
    INFO: Terminating all background operations
    INFO: Terminated all background operations
    INFO: Transition aborted
    INFO: Rolled back to state
    INFO: Pause Oracle Grid Infrastructure
    INFO: Resume Oracle Grid Infrastructure
    INFO: Finding the most appropriate exit status for the current application
    INFO: Exit Status is -2
    INFO: Shutdown Oracle Grid Infrastructure

  17. Sayantan
    April 26th, 2010 at 16:08 | #17

    Another thing i want to clarify do i need any separate interface to connect private and vertual network?

  18. Sayantan
    April 26th, 2010 at 16:21 | #18

    details of the directory ownership etc.

    [root@rac-1 yum.repos.d]# cd /u01
    [root@rac-1 u01]# ls -al
    total 48
    drwxrwxr-x 8 504 500 4096 Feb 22 15:29 .
    drwxr-xr-x 30 root root 4096 Apr 26 19:05 ..
    drwxrwxr-x 7 root root 4096 Apr 11 21:53 app
    drwxrwxr-x 2 504 500 16384 Jan 26 12:44 lost+found
    drwxrwxr-x 4 504 500 4096 Feb 4 19:36 sql-dev
    drwxrwxr-x 5 504 504 4096 Feb 15 03:51 .Trash-grid
    drwxrwxr-x 5 504 500 4096 Feb 3 20:40 .Trash-oracle
    drwxrwxr-x 3 root root 4096 Feb 22 15:29 .Trash-root
    [root@rac-1 u01]# ls -al /app
    ls: /app: No such file or directory
    [root@rac-1 u01]# ls -al app
    total 28
    drwxrwxr-x 7 root root 4096 Apr 11 21:53 .
    drwxrwxr-x 8 504 500 4096 Feb 22 15:29 ..
    drwxrwxr-x 5 root root 4096 Apr 11 21:53 11.2.0
    drwxrwxr-x 2 root root 4096 Apr 11 21:53 grid1
    drwxrwxr-x 2 500 501 4096 Feb 16 17:35 oracle
    drwxrwxr-x 2 oracle1 oinstall 4096 Apr 11 21:31 oracle1
    drwxrwxr-x 4 oracle1 oinstall 4096 Feb 17 16:54 oraInventory
    [root@rac-1 u01]# ls -al app/11.2.0
    total 20
    drwxrwxr-x 5 root root 4096 Apr 11 21:53 .
    drwxrwxr-x 7 root root 4096 Apr 11 21:53 ..
    drwxrwxr-x 2 504 501 4096 Feb 16 17:34 grid
    drwxrwxr-x 2 root root 4096 Apr 11 21:53 grid1
    drwxrwxr-x 2 504 501 4096 Feb 17 15:35 oraInventory
    [root@rac-1 u01]#

  19. Anonymous
    April 26th, 2010 at 18:45 | #19

    cluster configuration failed now i need to setup asmca netca etc by my own can you give any pointer or link?

  20. Ronny Egner
    April 29th, 2010 at 13:21 | #20

    Once an assistant failed it is not suitable to run them manually. Check the error logs, fix the problems and restart the installation is my recommendation,

  21. Ronny Egner
    April 29th, 2010 at 13:22 | #21

    Reading the log file some line are most probably pointing to the error:

    SEVERE: [FATAL] [INS-32012] Unable to create directory.
    SEVERE: [FATAL] [INS-32052] Oracle base and Oracle home locations are same.

  22. Ronny Egner
    April 29th, 2010 at 13:23 | #22

    You need two physical network interfaces. One for the interconnect and the other for your public and virtual host IPs (including SCAN and VIP IPs).

  23. Ronny Egner
    April 29th, 2010 at 13:24 | #23

    Fix the root:root permissions and i am wondering why i see numerical user IDs instead of the owner….?

  24. Marija
    May 10th, 2010 at 11:29 | #24

    Hi

    Great blog!

    Thank you for responding to my thread at technet forum. That’s where I got the URL of your blog.

    I have done a similar install, but I have used different groups for oracle and grid users.

    oracle is a member of oinstall, dba and asmdba
    grid is a member of oinstall, asmdba and asmadmin groups.

    I had issues with privileges when writing to diag directory which I resolved by having different ORACLE_BASE for grid and oracle user.

    I am also not sure if running a listener as a grid user causes any issues. An issue that I found so far is that users who are not oracle or grid cannot establish local BEQ connections to an instance. I logged an SR for this, but Oracle support was unable to help, I assume they just have a basic install where everything is installed as oracle so they could not reproduce my problem.

    I wander if it is worth installing as two separate users if the same team looks after the grid infrastructure and RAC? I would like to know what do other people do. I did not have a chance to talk to anyone who is actually using 11gR2 in production.

    Thanks

  25. Ronny Egner
    May 10th, 2010 at 16:34 | #25

    Hi,

    i always separate database from grid installation – just as oracle recommends.
    Regarding directory permissions i usually set them on installation to 775 (oracle:dba or grid:dba) and tighten them after installation.

    The same is true for RAC installation.

    Free free to ask if there are more questions.

  26. king
    May 13th, 2010 at 08:11 | #26

    hi

    i have one or two questions.May i ??

    what is multi-path?how it is helpful to grid??any doc link could be helpful….
    is it possible to configure multi-path on just two C2D machine.

    how to install clusterware if the multipath is configure?will the ASM take care of multi path??

    regards

  27. king
    May 13th, 2010 at 08:46 | #27

    and how it is configured with linux massive parallel processing??

  28. sayantan
    May 13th, 2010 at 09:03 | #28

    @Ronny Egner

    ie. bcz i have to make equivalence user.so i deleted user …. but their id is there…some permission and folder is not changed…..

    i have a changed the settings now

    thx r

    regards

  29. Ronny Egner
    May 17th, 2010 at 11:03 | #29

    > and how it is configured with linux massive parallel processing??

    Sorry but i dont understand your question.

  30. Ronny Egner
    May 17th, 2010 at 11:08 | #30

    > what is multi-path?how it is helpful to grid??any doc link could be helpful….

    Multipathing is a type of connection redundancy often used in SAN or network environments where you have at least two redundant ways from your server to your san-box or switch. This involved two network cards in your server, two switches and so on. Everything is there twice. If one component fails there is no interruption in service because the other path is used.
    Often multi-pathing is combined with some sort of load-balancing so increase bandwidth. But that depends.

    Multipathing is configured at operating system leven and has nothing to do with the clusterware itself. In my documents i already describe network bonding which – with two interfaces – can also be seen as a form of multipathing.
    In SAN environments you have to a vendor multipathing software or the linux multipathing software “dm”.

  31. mango
    May 23rd, 2010 at 11:31 | #31

    http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/en-US/RHEL510/pdf/DM_Multipath.pdf

    its looked clumsy for me.
    can you refer an easy pointer for editing multipath.conf??

  32. Anonymous
    May 23rd, 2010 at 15:14 | #32

    currently getting a failure related to ASM PRV-9994 for my second node

    what to do?

    Device Checks for ASM – This is a pre-check to verify if the specified devices meet the requirements for configuration through the Oracle Universal Storage Manager Configuration Assistant.
    Check Failed on Nodes: [rac-2] Check Succeeded On Nodes: [rac-1]
    Verification result of failed node: rac-2
    Expected Value
     : n/a
    Actual Value
     : n/a
     List of errors:
     - 
    PRVF-9994 : Owner, group, permission information could not be obtained for device(s) “/dev/sdb9″ on node “rac-2″  - Cause:  Owner, group and permission information could not be obtained for devices listed on the nodes listed.  - Action:  “Ensure that the correct devices were specified and that they are created on the indicated node. Make sure that the path exists and is accessible by the user.
     - 
    PRVF-9994 : Owner, group, permission information could not be obtained for device(s) “/dev/sdb8″ on node “rac-2″  - Cause:  Owner, group and permission information could not be obtained for devices listed on the nodes listed.  - Action:  “Ensure that the correct devices were specified and that they are created on the indicated node. Make sure that the path exists and is accessible by the user.
     - 
    PRVF-9994 : Owner, group, permission information could not be obtained for device(s) “/dev/sdb7″ on node “rac-2″  - Cause:  Owner, group and permission information could not be obtained for devices listed on the nodes listed.  - Action:  “Ensure that the correct devices were specified and that they are created on the indicated node. Make sure that the path exists and is accessible by the user.
     - 
    PRVF-9994 : Owner, group, permission information could not be obtained for device(s) “/dev/sdb6″ on node “rac-2″  - Cause:  Owner, group and permission information could not be obtained for devices listed on the nodes listed.  - Action:  “Ensure that the correct devices were specified and that they are created on the indicated node. Make sure that the path exists and is accessible by the user.
     - 
    PRVF-9994 : Owner, group, permission information could not be obtained for device(s) “/dev/sdb5″ on node “rac-2″  - Cause:  Owner, group and permission information could not be obtained for devices listed on the nodes listed.  - Action:  “Ensure that the correct devices were specified and that they are created on the indicated node. Make sure that the path exists and is accessible by the user.
     - 
    PRVF-9994 : Owner, group, permission information could not be obtained for device(s) “/dev/sdb4″ on node “rac-2″  - Cause:  Owner, group and permission information could not be obtained for devices listed on the nodes listed.  - Action:  “Ensure that the correct devices were specified and that they are created on the indicated node. Make sure that the path exists and is accessible by the user.
     - 
    PRVF-9994 : Owner, group, permission information could not be obtained for device(s) “/dev/sdb3″ on node “rac-2″  - Cause:  Owner, group and permission information could not be obtained for devices listed on the nodes listed.  - Action:  “Ensure that the correct devices were specified and that they are created on the indicated node. Make sure that the path exists and is accessible by the user.
     - 
    PRVF-9994 : Owner, group, permission information could not be obtained for device(s) “/dev/sdb2″ on node “rac-2″  - Cause:  Owner, group and permission information could not be obtained for devices listed on the nodes listed.  - Action:  “Ensure that the correct devices were specified and that they are created on the indicated node. Make sure that the path exists and is accessible by the user.
     - 
    PRVF-9994 : Owner, group, permission information could not be obtained for device(s) “/dev/sda7″ on node “rac-2″  - Cause:  Owner, group and permission information could not be obtained for devices listed on the nodes listed.  - Action:  “Ensure that the correct devices were specified and that they are created on the indicated node. Make sure that the path exists and is accessible by the user.
     - 
    PRVF-9994 : Owner, group, permission information could not be obtained for device(s) “/dev/sda6″ on node “rac-2″  - Cause:  Owner, group and permission information could not be obtained for devices listed on the nodes listed.  - Action:  “Ensure that the correct devices were specified and that they are created on the indicated node. Make sure that the path exists and is accessible by the user.
     - 
    PRVF-9994 : Owner, group, permission information could not be obtained for device(s) “/dev/sda5″ on node “rac-2″  - Cause:  Owner, group and permission information could not be obtained for devices listed on the nodes listed.  - Action:  “Ensure that the correct devices were specified and that they are created on the indicated node. Make sure that the path exists and is accessible by the user.
     - 
    PRVF-9994 : Owner, group, permission information could not be obtained for device(s) “/dev/sdh” on node “rac-2″  - Cause:  Owner, group and permission information could not be obtained for devices listed on the nodes listed.  - Action:  “Ensure that the correct devices were specified and that they are created on the indicated node. Make sure that the path exists and is accessible by the user.
     - 
    PRVF-9994 : Owner, group, permission information could not be obtained for device(s) “/dev/sda4″ on node “rac-2″  - Cause:  Owner, group and permission information could not be obtained for devices listed on the nodes listed.  - Action:  “Ensure that the correct devices were specified and that they are created on the indicated node. Make sure that the path exists and is accessible by the user.
     - 
    PRVF-9994 : Owner, group, permission information could not be obtained for device(s) “/dev/sdg1″ on node “rac-2″  - Cause:  Owner, group and permission information could not be obtained for devices listed on the nodes listed.  - Action:  “Ensure that the correct devices were specified and that they are created on the indicated node. Make sure that the path exists and is accessible by the user.
    Back to Top

  33. Ronny Egner
  34. Ronny Egner
    May 25th, 2010 at 09:47 | #34

    Check on BOTH nodes:

    - do the device nodes exist?
    - are permissions set accordingly (i.e. writeable for grid installation user)?

  35. Jack Jack
    August 5th, 2010 at 20:17 | #35

    @Anonymous
    Hi, I encounter the same issue now. Would you please share the resolution to your case?

Comment pages
1 2 152
  1. September 23rd, 2009 at 16:03 | #1