2. RAC_Setup
2. RAC_Setup
restart
Installation of RAC:
====================
1. We are assuming 2 linux rac(2 vm's using vmware) with 1 shared storage(Open
filer) , NFS share, ISCSI(Openfiler), NAS & SAN()
2 linux rac
software
--------
-> Vmware
-> Linux OS - 2 vm's(linux)
RAM - min 4gb
networks - 2 (1 public, 1 private)
hard disk - 50gb each linux
2. set hostnames & Ip address to the cluster linuxs( eth0 - public, - eth1 -
private)
hostname -
ifconfig -
/etc/hosts
#Public Ip's
192.168.1.101 linux1 linux1.example.com
192.168.1.102 linux2 linux2.example.com
#Private Ip's
192.168.2.101 linux1-priv linux1-priv.example.com
192.168.2.102 linux2-priv linux2-priv.example.com
#SCAN Ip
192.168.1.151 rac-scan rac-scan.example.com
192.168.1.152 rac-scan rac-scan.example.com
192.168.1.153 rac-scan rac-scan.example.com
#SAN(openfiler)
192.168.2.150 openfiler openfiler.example.com
yum install binutils* compat-libstdc* elfutils* gcc* glibc* ksh* libaio* libgcc*
libstdc* make* pdksh* sysstat* *libcap* unixODBC* rsh* firefox* iscsi* -y
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 25097152
kernel.shmmax = 8536870912
kernel.shmmni = 4096
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 = 1048576
#sysctl -p
9. Add or edit the following line in the /etc/pam.d/login file, if it does not
already exist:
NOZEROCONF=yes
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=dbhost1.paramlabs.com
10. Enable ssh(secure shell ) passwordless connectivity( oracle) - trusted
relationship
$ssh-keygen rsa
$ssh-keygen dsa
$pwd
$cd ~/.ssh
$pwd
/home/oracle/.ssh or /home/oracle/.grid
$cd .ssh
$ls
dsa.pub rsa.pub
cat dsa.pub > lix1
cat rsa.pub >> lix1
scp lix1
Note: Lets copy the software from your host to guest os.
11. Openfiler -- keeping asm disk are ready( configure and setup Openfiler and
register the linuxs )
setup ASM disks using udev,oracleasm,device multipath..et
NTFS, VFAT, EXT3,EXT4 , XFS
ASM - RAW DEVICES
+ASM
+DATA
+FRA
UDEV rules:
----------
#iscsiadm -m discovery -t sendtargets -p 192.168.2.150
#iscsiadm -m node -p 192.168.2.150 -l
vi /etc/udev/rules.d/99-oracle-asm.rules
12. run cluvy to check the user equivalence & linux reachability.
login as grid user and go to the grid software location and run the below command.
Prerequisites,
. oraenv
/etc/oratab
$sqlplus / as sysdba
3 to 4 hrs of time
====================================
00:0C:29:33:4F:8A
00:0C:29:33:4F:94
HWADDR=00:0C:29:33:4F:8A
TYPE=Ethernet
BOOTPROTO=none
# Server IP #
IPADDR=192.168.1.101
PREFIX=24
GATEWAY=192.168.1.0
DNS1=192.168.1.101
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME=ens33
# This is system specific and can be created using 'uuidgen eth0' command #
UUID=41171a6f-bce1-44de-8a6e-cf5e782f8bd6
DEVICE=ens33
ONBOOT=yes
HWADDR=00:0C:29:33:4F:94
TYPE=Ethernet
BOOTPROTO=none
# Server IP #
IPADDR=192.168.2.101
PREFIX=24
GATEWAY=192.168.2.0
DNS1=192.168.2.101
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME=ens37
# This is system specific and can be created using 'uuidgen eth0' command #
UUID=b606865d-7a09-4089-becf-9aaf4c98b8a5
DEVICE=ens37
ONBOOT=yes
00:0C:29:2C:0E:6E
00:0C:29:2C:0E:78