Step by step, no error will be reported
IP address planning
192.168.8.241
192.168.8.242
192.168.8.248
192.168.8.249
Rac1-> export lang = en_US.UTF-8
VI/etc/sysconfig/network-scripts/ifcfg-eth0
VI/etc/sysconfig/network-scripts/ifcfg-eth1
[Root @ rac2 ~] # More/etc/sysconfig/network-scripts/ifcfg-eth0
# Advanced Micro Devices [amd] 79c970 [pcnet32 Lance]
Device = eth0
Bootproto = none
Ipaddr = 192.168.8.242
Onboot = Yes
Hwaddr = 00: 0C: 29: 98: 38: 5A
Netmask = 255.255.255.0
Gateway = 192.168.8.1
Type = Ethernet
Userctl = No
Ipv6init = No
Peerdns = Yes
You have new mail in/var/spool/mail/root
Service Network restart
[Root @ Rac1 ~] # Vi/etc/hosts
127.0.0.1 localhost
192.168.8.241 rac1.oracle.com Rac1
192.168.8.248 rac1-vip.oracle.com rac1-vip
10.10.10.241 rac1-priv.oracle.com rac1-priv
192.168.8.242 rac2.oracle.com rac2
192.168.8.249 rac2-vip.oracle.com rac2-vip
10.10.10.242 rac2-priv.oracle.com rac2-priv
[Root @ rac2 ~] # Vi/etc/hosts
127.0.0.1 localhost
192.168.8.241 rac1.oracle.com Rac1
192.168.8.248 rac1-vip.oracle.com rac1-vip
10.10.10.241 rac1-priv.oracle.com rac1-priv
192.168.8.242 rac2.oracle.com rac2
192.168.8.249 rac2-vip.oracle.com rac2-vip
10.10.10.242 rac2-priv.oracle.com rac2-priv
Rac1-> mkdir ~ /. SSH
Rac1-> chmod 700 ~ /. SSH
Rac1-> ssh-keygen-T RSA
Rac1-> ssh-keygen-T DSA
Rac2-> mkdir ~ /. SSH
Rac2-> chmod 700 ~ /. SSH
Rac2-> ssh-keygen-T RSA
Rac2-> ssh-keygen-T DSA
Rac2-> CAT ~ /. Ssh/id_rsa.pub> ~ /. Ssh/authorized_keys
Rac2-> CAT ~ /. Ssh/id_dsa.pub> ~ /. Ssh/authorized_keys
Rac2-> SSH Rac1 cat ~ /. Ssh/id_rsa.pub> ~ /. Ssh/authorized_keys
Rac2-> SSH Rac1 cat ~ /. Ssh/id_dsa.pub> ~ /. Ssh/authorized_keys
Rac2-> SCP ~ /. Ssh/authorized_keys Rac1 :~ /. Ssh/authorized_keys
Oracle @ Rac1's password:
Authorized_keys 100% 2032 2.0kb/s
00: 00
Rac1-> SSH rac2 date
Rac1-> SSH rac2-priv date
Rac1-> SSH rac2.oracle.com date
Rac1-> SSH rac2-priv.oracle.com date
Rac1-> SSH rac1.oracle.com
Rac1-> SSH Rac1
Rac1-> SSH rac1-priv.oracle.com
Rac1-> SSH rac1-priv
Rac2-> SSH rac1.oracle.com date
Rac2-> SSH rac1-priv.oracle.com date
Rac2-> SSH Rac1 date
Rac2-> SSH rac1-priv date
Rac2-> SSH rac2.oracle.com
Rac2-> SSH rac2
Rac2-> SSH rac2-priv.oracle.com
Rac2-> SSH rac2-priv
[Root @ Rac1 ~] # Rpm-Qa | grep ocfs
Ocfs2-2.6.18-128.el5xen-1.2.9-1.el5
Ocfs2-2.6.18-128.el5-1.2.9-1.el5
Ocfs2console-1.2.7-1.el5
Ocfs2-2.6.18-128.el5debug-1.2.9-1.el5
Ocfs2-tools-devel-1.2.7-1.el5
Ocfs2-2.6.18-128.el5PAE-1.2.9-1.el5
Ocfs2-tools-1.2.7-1.el5
[Root @ rac2 ~] # Rpm-Qa | grep ocfs
Ocfs2-2.6.18-128.el5xen-1.2.9-1.el5
Ocfs2-2.6.18-128.el5-1.2.9-1.el5
Ocfs2console-1.2.7-1.el5
Ocfs2-2.6.18-128.el5debug-1.2.9-1.el5
Ocfs2-tools-devel-1.2.7-1.el5
Ocfs2-2.6.18-128.el5PAE-1.2.9-1.el5
Ocfs2-tools-1.2.7-1.el5
Configure Cluster File System
Ocfs2console
Rac1-> more/etc/ocfs2/cluster. conf
Node:
Ip_port = 7777
Ip_address = 192.168.8.241
Number = 0
Name = Rac1
Cluster = ocfs2
Node:
Ip_port = 7777
Ip_address = 192.168.8.242
Number = 1
Name = rac2
Cluster = ocfs2
Ocfs2console transmission configuration file
[Root @ rac2 ~] # More/etc/ocfs2/cluster. conf
Node:
Ip_port = 7777
Ip_address = 192.168.8.241
Number = 0
Name = Rac1
Cluster = ocfs2
Node:
Ip_port = 7777
Ip_address = 192.168.8.242
Number = 1
Name = rac2
Cluster = ocfs2
Cluster:
Node_count = 2
Name = ocfs2
Cluster:
Node_count = 2
Name = ocfs2
[Root @ Rac1 ~] #/Etc/init. d/o2cb unload
[Root @ rac2 ~] #/Etc/init. d/o2cb unload
Configure heartbeat
[Root @ Rac1 ~] #/Etc/init. d/o2cb configure
[Root @ rac2 ~] #/Etc/init. d/o2cb configure
[Root @ Rac1 ~] #/Etc/init. d/o2cb status
Module "configfs": loaded
Filesystem "configfs": mounted
Module "ocfs2_nodemanager": loaded
Module "ocfs2_dlm": loaded
Module "ocfs2_dlmfs": loaded
Filesystem "ocfs2_dlmfs": mounted
Checking o2cb cluster ocfs2: Online
Heartbeat dead threshold: 1200
Network idle Timeout: 30000
Network keepalive delay: 2000
Network reconnect delay: 2000
Checking o2cb heartbeat: Not active
[Root @ rac2 ~] #/Etc/init. d/o2cb status
Module "configfs": loaded
Filesystem "configfs": mounted
Module "ocfs2_nodemanager": loaded
Module "ocfs2_dlm": loaded
Module "ocfs2_dlmfs": loaded
Filesystem "ocfs2_dlmfs": mounted
Checking o2cb cluster ocfs2: Online
Heartbeat dead threshold: 1200
Network idle Timeout: 30000
Network keepalive delay: 2000
Network reconnect delay: 2000
Checking o2cb heartbeat: Not active
[Root @ Rac1 ~] # Fdisk-l
Disk/dev/SDB: 536 MB, 536870912 bytes
64 heads, 32 sectors/track, 512 Cylinders
Units = cylinders of 2048*512 = 1048576 bytes
Ocfs2console format/dev/SDB
Mount
[Root @ Rac1 ~] # Mount-T ocfs2-O datavolume, nointr/dev/sdb1/ocfs
[Root @ rac2 ~] # Mount-T ocfs2-O datavolume, nointr/dev/sdb1/ocfs
[Root @ Rac1 ~] # Vi/etc/fstab
[Root @ rac2 ~] # Vi/etc/fstab
/Dev/sdb1/ocfs ocfs2 _ netdev, datavolume, nointr 0 0
[Root @ Rac1 ~] # DF-H
[Root @ rac2 ~] # DF-H
[Root @ Rac1 ~] # Cd/ocfs
[Root @ Rac1 ocfs] # ll
Total 1
Drwxr-XR-x 2 root Root 1024 Aug 12 lost + found
[Root @ Rac1 ocfs] # mkdir Cluster
[Root @ Rac1 ocfs] # chown-r ORACLE: DBA/ocfs
[Root @ rac2 soft] # cd/ocfs
[Root @ rac2 ocfs] # ll
Total 2
Drwxr-XR-x 2 Oracle DBA 1024 Aug 12 Cluster
Drwxr-XR-x 2 Oracle DBA 1024 Aug 12 lost + found
Rac1-> Cd/soft
Rac1-> LL
Total 12
Drwxrwxrwx 9 Oracle oinstall 4096 Jun 3 clusterware
Drwxrwxrwx 6 Oracle oinstall 4096 Jul 3 2005 database
Drwxr-XR-x 3 Root 4096 Nov 22 2009 RAC
Rac1-> more ~ /. Bash_profile
Rac2-> more ~ /. Bash_profile
Path = $ path: $ home/bin
Export PS1 = "'/bin/hostname-S'->"
Export editor = Vim
Export oracle_sid = devdb1
Export oracle_base =/u01/APP/Oracle
Export ORACLE_HOME = $ oracle_base/product/10.2.0/db_1
Export ora_crs_home = $ oracle_base/product/10.2.0/crs_1
Export LD_LIBRARY_PATH = $ ORACLE_HOME/lib
Export Path = $ ORACLE_HOME/bin: $ ora_crs_home/bin:/usr/sbin:/usr/local/bin :/
Usr/x11r6/bin
Umask 022
Export lang = en_US.UTF-8
Rac1-> export lang = en
Rac1-> Cd/soft
Rac1-> Cd clusterware/
Rac1-> pwd
/Soft/clusterware
Rac1-> LL
Total 36
Drwxrwxrwx 2 Oracle oinstall 4096 Jun 3 cluvfy
Drwxrwxrwx 6 Oracle oinstall 4096 Jun 3 Doc
Drwxrwxrwx 4 Oracle oinstall 4096 Jun 3 install
Drwxrwxrwx 2 Oracle oinstall 4096 Jun 3 response
Drwxrwxrwx 2 Oracle oinstall 4096 Jun 3 rpm
-Rwxrwxrwx 1 Oracle oinstall 1328 Jun 3 runinstaller
Drwxrwxrwx 9 Oracle oinstall 4096 Jun 3 stage
Drwxrwxrwx 2 Oracle oinstall 4096 Jun 3 upgrade
-Rwxrwxrwx 1 Oracle oinstall 3445 Jun 3 welcome.html
OCR Disk:/ocfs/cluster/OCR
Vote Disk:/ocfs/cluster/votingdisk
[Root @ Rac1 ~] #/U01/APP/Oracle/orainventory/orainstroot. Sh
[Root @ rac2 ~] #/U01/APP/Oracle/orainventory/orainstroot. Sh
[Root @ Rac1 ~] # Cd/u01/APP/Oracle/product/10.2.0/crs_1/bin
[Root @ Rac1 bin] # ls-l vipca
-Rwxr-XR-x 1 Oracle oinstall 5014 Aug 12 VIP ca
[Root @ Rac1 bin] # vi vipca
Unset ld_assume_kernel
[Root @ Rac1 bin] # Vim srvctl
Unset ld_assume_kernel
[Root @ rac2 bin] # vi vipca
Unset ld_assume_kernel
[Root @ rac2 bin] # Vim srvctl
Unset ld_assume_kernel
[Root @ Rac1 bin] #/u01/APP/Oracle/product/10.2.0/crs_1/root. Sh
[Root @ rac2 bin] #/u01/APP/Oracle/product/10.2.0/crs_1/root. Sh
Dding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
Rac1
Rac2
CSS is active on all nodes.
Waiting for the Oracle crsd and evmd to start
Waiting for the Oracle crsd and evmd to start
Waiting for the Oracle crsd and evmd to start
Oracle CRS stack installed and running under Init (1 m)
Running vipca (silent) for processing nodeapps
Error 0 (native: listnetinterfaces: [3])
[Error 0 (native: listnetinterfaces: [3])]
Vipca
Alias
[Root @ Rac1 ~] # Route-n
Kernel IP routing table
Destination gateway genmask flags metric ref use iface
192.168.8.0 0.0.0.0 255.255.255.0 u 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 u 0 0 0 eth1
10.0.0.0 0.0.0.0 255.0.0.0 u 0 0 0 eth1
[Root @ Rac1 ~] # Route add default GW 192.168.8.1
[Root @ Rac1 ~] # Route-n
Kernel IP routing table
Destination gateway genmask flags metric ref use iface
192.168.8.0 0.0.0.0 255.255.255.0 u 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 u 0 0 0 eth1
10.0.0.0 0.0.0.0 255.0.0.0 u 0 0 0 eth1
0.0.0.0 192.168.8.1 0.0.0.0 ug 0 0 0 eth0
[Root @ rac2 ~] # Route-n
Kernel IP routing table
Destination gateway genmask flags metric ref use iface
192.168.8.0 0.0.0.0 255.255.255.0 u 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 u 0 0 0 eth1
10.0.0.0 0.0.0.0 255.0.0.0 u 0 0 0 ETH
[Root @ rac2 ~] # Route add default GW 192.168.8.1
[Root @ rac2 ~] # Route-n
Kernel IP routing table
Destination gateway genmask flags metric ref use iface
192.168.8.0 0.0.0.0 255.255.255.0 u 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 u 0 0 0 eth1
10.0.0.0 0.0.0.0 255.0.0.0 u 0 0 0 eth1
0.0.0.0 192.168.8.1 0.0.0.0 ug 0 0 0 eth0
[Root @ rac2 bin] #./oifcfg setif-Global eth0/192.168.8.0: Public
[Root @ rac2 bin] #./oifcfg setif-Global eth1/10.10.10.0: cluster_interconnect
[Root @ rac2 bin] #./oifcfg iflist
Eth0 192.168.8.0
Eth1 10.0.0.0
[Root @ Rac1 bin] #./oifcfg getif
Eth0 192.168.8.0 global public
Eth1 10.10.10.0 global cluster_interconnect
Rac1-> rpm-Qa | grep oracleasm
Rac2-> rpm-Qa | grep oracleasm
[Root @ Rac1 Rac1] #/etc/init. d/oracleasm configure
Processing 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 <enter> without typing
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 []: DBA
Start Oracle ASM library driver on boot (y/n) [N]: Y
Scan for Oracle ASM disks on boot (y/n) [y]: Y
Writing Oracle ASM library driver configuration: Done
Initializing the Oracle asmlib DRIVER: [OK]
Scanning the system for Oracle asmlib disks: [OK]
[Root @ rac2 ~] #/Etc/init. d/oracleasm configure
Processing 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 <enter> without typing
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 []: DBA
Start Oracle ASM library driver on boot (y/n) [N]: Y
Scan for Oracle ASM disks on boot (y/n) [y]: Y
Writing Oracle ASM library driver configuration: Done
Initializing the Oracle asmlib DRIVER: [OK]
Scanning the system for Oracle asmlib disks: [OK]
[Root @ Rac1 Rac1] #/etc/init. d/oracleasm createdisk vol1/dev/sdc1
Marking disk "vol1" as an ASM Disk: [OK]
[Root @ Rac1 Rac1] #/etc/init. d/oracleasm createdisk vol1/dev/sdc1
Marking disk "vol1" as an ASM Disk: [OK]
[Root @ Rac1 Rac1] #/etc/init. d/oracleasm createdisk vol2/dev/sdd1
Marking disk "vol2" as an ASM Disk: [OK]
[Root @ Rac1 Rac1] #/etc/init. d/oracleasm createdisk vol3/dev/sde1
Marking disk "vol3" as an ASM Disk: [OK]
[Root @ Rac1 Rac1] #/etc/init. d/oracleasm listdisks
Vol1
Vol2
Vol3
[Root @ rac2 ~] #/Etc/init. d/oracleasm listdisks
[Root @ rac2 ~] #/Etc/init. d/oracleasm
Usage:/etc/init. d/oracleasm {START | stop | restart | enable | disable | configure | createdisk | deletedisk | querydisk | listdisks | scandisks | status}
[Root @ rac2 ~] #/Etc/init. d/oracleasm scandisks
Scanning the system for Oracle asmlib disks: [OK]
[Root @ rac2 ~] #/Etc/init. d/oracleasm listdisks
Vol1
Vol2
Vol3
[Root @ Rac1 ~] #/U01/APP/Oracle/product/10.2.0/db_1/root. Sh
[Root @ rac2 ~] #/U01/APP/Oracle/product/10.2.0/db_1/root. Sh
If you need to reprint the content, please indicate the source and original link