Table of Contents
Overview
This tutorial is based on :
Feature Overview
- FLEX ASM
- Convert a Adminstrator Managed Database to Policy Managed ( PM)
- Configure GNS – requirement for Policy Managed Database
- UDEV to manage ASM disks
- Using Chrony as our Timeserver [ replacing NTP ]
Sofware Versions
- VirtualBox 5.1.18
- OEL 7.3
- Oracle RAC 12.2.0.1 using UDEV, Policy Managed Database , Flex ASM feature
Virtualbox Images used
- ns1 – Name Server / DHCP server / Chrony server running on 192.168.5.50 IP addresss
- ractw21 – Cluster node 1
- ractw22 – Cluster node 2
For installing the nameserver please read the article mentioned below :
In this tutorial we have replaced NTP by Chrony. For Chrony setup please read
Networking Details
Domain : example.com Name Server: ns1.example.com 192.168.5.50
RAC Sub-Domain : grid122.example.com Name Server: gns122.grid122.example.com 192.168.5.55
DHCP Server : ns1.example.com
Chrony NTP Server: ns1.example.com
DHCP adresses : 192.168.1.100 ... 192.168.1.254
Configure DNS:
Identity Home Node Host Node Given Name Type Address Address Assigned By Resolved By
GNS VIP None Selected by Oracle Clusterware gns122.example.com Virtual 192.168.5.59 Net administrator DNS + GNS
Node 1 Public Node 1 ractw21 ractw21.example.com Public 192.168.5.141 Fixed DNS
Node 1 VIP Node 1 Selected by Oracle Clusterware ractw21-vip.grid122.example.com Private Dynamic DHCP GNS
Node 1 Private Node 1 ractw21int ractw21-int.example.com Private 192.168.2.141 Fixed DNS
Node 2 Public Node 2 ractw22 ractw22.example.com Public 192.168.5.142 Fixed DNS
Node 2 VIP Node 2 Selected by Oracle Clusterware ractw22-vip.grid122.example.com Private Dynamic DHCP GNS
Node 2 Private Node 2 ractw22int ractw22-int.example.com Private 192.168.2.142 Fixed DNS
SCAN VIP 1 none Selected by Oracle Clusterware RACTW2-scan.grid122.example.com Virtual Dynamic DHCP GNS
SCAN VIP 2 none Selected by Oracle Clusterware RACTW2-scan.grid122.example.com Virtual Dynamic DHCP GNS
SCAN VIP 3 none Selected by Oracle Clusterware RACTW2-scan.grid122.example.com Virtual Dynamic DHCP GNS
Create VirtualBox Image OEL73 as our RAC Provisioning Server
- Download and install OEL 73 by following : Oracle Database 12c Release 2 (12.2) RAC On Oracle Linux 7 Using VirtualBox
After basic OS Installation install some helpful YUM packages
[root@ractw21 ~]# yum install system-config-users [root@ractw21 ~]# yum install wireshark [root@ractw21 ~]# yum install wireshark-gnome Install X11 applications like xclock [root@ractw21 ~]# yum install xorg-x11-apps [root@ractw21 ~]# yum install telnet
Use the “oracle-database-server-12cR2-preinstall” package to perform all your prerequisite setup
[root@ractw21 ~]# yum install oracle-database-server-12cR2-preinstall -y
Perpare Network
Change the setting of SELinux to permissive by editing the "/etc/selinux/config" file, i making sure the SELINUX flag is set as follows. SELINUX=permissive If you have the Linux firewall enabled, you will need to disable or configure it, as shown here or here. The following is an example of disabling the firewall.
Disable AVAHI daemon [ only if running ] # /etc/init.d/avahi-daemon stop To disable it: # /sbin/chkconfig avahi-daemon off
Stop Firewall [root@ractw21 ~]# systemctl stop firewalld [root@ractw21 ~]# systemctl disable firewalld [root@ractw21 ~]# systemctl status firewalld ● firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled) Active: inactive (dead)
Potential Nameserver issues Make sure the "/etc/resolv.conf" file includes a nameserver entry that points to the correct nameserver. Also, if the "domain" and "search" entries are both present, comment out one of them. For the OS installation my "/etc/resolv.conf" looked like this. #domain localdomain search localdomain nameserver 192.168.1.1 The changes to the "resolv.conf" will be overwritten by the network manager, due to the presence of the NAT interface. For this reason, this interface should now be disabled on startup. You can enable it manually if you need to access the internet from the VMs. Edit the "/etc/sysconfig/network-scripts/ifcfg-enp0s3" (eth0) file, making the following change. This will take effect after the next restart. ONBOOT=no Modify resolv.conf and reboot the system: # Generated by Helmut search example.com nameserver 192.168.5.50 Afer a reboot we have following IP setting and Nameserver loopup should working fine [root@ractw21 ~]# ifconfig enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 ether 08:00:27:c6:ab:10 txqueuelen 1000 (Ethernet) enp0s8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.5.141 netmask 255.255.255.0 broadcast 192.168.5.255 inet6 fe80::a00:27ff:fe83:429 prefixlen 64 scopeid 0x20<link> enp0s9: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.2.141 netmask 255.255.255.0 broadcast 192.168.2.255 Note device emp0s3 has no IP V4 address assigned ! [root@ractw21 ~]# nslookup ractw21 Server: 192.168.5.50 Address: 192.168.5.50#53 Name: ractw21.example.com Address: 192.168.5.141
Perpare and verify Swap Space and /u01 pratition
Follow article : Prepare Swap and /u01 Oracle partition
Verify Space and Memory [root@ractw21 ~]# df / /u01 Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/ol_ractw21-root 15718400 9381048 6337352 60% / /dev/mapper/ol_ractw21-u01 15718400 39088 15679312 1% /u01 [root@ractw21 ~]# free total used free shared buff/cache available Mem: 5700592 595844 4515328 13108 589420 5001968 Swap: 8257532 0 8257532
Note as we can only provide 6 MByte memory the cluvfy Physical Memory Test will fail !
Switching between RAC and Internet ACCESS Networking
RAC Networking - enp0s3 down - No IP V4 address assigned - /etc/resolv.conf points to our RAC Nameserver 192.168.5.50 - RAC Nameserver is working - BUT Internet access is disabled [root@ractw21 ~]# ifdown enp0s3 Device 'enp0s3' successfully disconnected. [root@ractw21 ~]# ifconfig enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 ether 08:00:27:c6:ab:10 txqueuelen 1000 (Ethernet) [root@ractw21 ~]# ping google.de connect: Network is unreachable [root@ractw21 ~]# nslookup ractw21 Server: 192.168.5.50 Address: 192.168.5.50#53 Name: ractw21.example.com Address: 192.168.5.141 Internet Access Networking Note we may need to have Internet access for running yum, ... - activate enp0s3 - /etc/resolv.conf points to our Router Gateway 192.168.1.1 - RAC Nameserver is NOT working - Internet access is enabled [root@ractw21 ~]# ifup enp0s3 Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/2) [root@ractw21 ~]# ifconfig enp0s3 enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255 Verify [root@ractw21 ~]# ping google.de PING google.de (172.217.18.3) 56(84) bytes of data. 64 bytes from fra15s28-in-f3.1e100.net (172.217.18.3): icmp_seq=1 ttl=46 time=45.0 ms 64 bytes from fra15s28-in-f3.1e100.net (172.217.18.3): icmp_seq=2 ttl=46 time=60.8 ms nslookup for our RAC IP fails - this is expected [root@ractw21 ~]# nslookup ractw21 Server: 192.168.1.1 Address: 192.168.1.1#53 ** server can't find ractw21: NXDOMAIN Note if ping google.de does not work you may need to add following entrry to /etc/sysconfig/network GATEWAYDEV=enp0s3 After reboot ping and route should work fine [root@ractw21 ~]# ip route default via 10.0.2.2 dev enp0s3 proto static metric 100 10.0.2.0/24 dev enp0s3 proto kernel scope link src 10.0.2.15 metric 100 192.168.2.0/24 dev enp0s9 proto kernel scope link src 192.168.2.141 metric 100 192.168.5.0/24 dev enp0s8 proto kernel scope link src 192.168.5.141 metric 100 192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1 [root@ractw21 ~]# traceroute google.de traceroute to google.de (172.217.22.35), 30 hops max, 60 byte packets 1 gateway (10.0.2.2) 0.164 ms 0.195 ms 0.074 ms 2 gateway (10.0.2.2) 1.156 ms 1.917 ms 1.832 ms
Create and Verify User accounts
[root@ractw21 ~]# /usr/sbin/groupadd -g 1001 oinstall [root@ractw21 ~]# /usr/sbin/groupadd -g 1002 dba [root@ractw21 ~]# /usr/sbin/groupadd -g 1004 asmadmin [root@ractw21 ~]# /usr/sbin/groupadd -g 1006 asmdba [root@ractw21 ~]# /usr/sbin/groupadd -g 1007 asmoper Create the users that will own the Oracle software using the commands: [root@ractw21 ~]# /usr/sbin/useradd -u 1001 -g oinstall -G asmadmin,asmdba,asmoper grid [root@ractw21 ~]# /usr/sbin/useradd -u 1002 -g oinstall -G dba,asmdba oracle [root@ractw21 ~]# usermod -G vboxsf -a grid [root@ractw21 ~]# usermod -G vboxsf -a oracle [root@ractw21 ~]# passwd oracle [root@ractw21 ~]# passwd grid [root@ractw21 ~]# su - grid [grid@ractw21 ~]$ id uid=1001(grid) gid=1001(oinstall) groups=1001(oinstall),983(vboxsf),1004(asmadmin),1006(asmdba),1007(asmoper) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 [root@ractw21 ~]# su - oracle [oracle@ractw21 ~]$ id uid=1002(oracle) gid=1001(oinstall) groups=1001(oinstall),983(vboxsf),1002(dba),1006(asmdba) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
Creating Installation directories
Oracle GridHome restrictions It must not be placed under one of the Oracle base directories, including the Oracle base directory of the Oracle Grid Infrastructure installation owner. It must not be placed in the home directory of an installation owner. These requirements are specific to Oracle Grid Infrastructure for a cluster installations. Create Directories: - Have a separate ORACLE_BASE for both GRID and RDBMS install ! Create the Oracle Inventory Directory To create the Oracle Inventory directory, enter the following commands as the root user: [root@ractw21 ~]# mkdir -p /u01/app/oraInventory [root@ractw21 ~]# chown -R grid:oinstall /u01/app/oraInventory Creating the Oracle Grid Infrastructure Home Directory To create the Grid Infrastructure home directory, enter the following commands as the root user: Creating the Oracle Base Directory for Grid User [root@ractw21 ~]# mkdir -p /u01/app/grid [root@ractw21 ~]# chown -R grid:oinstall /u01/app/grid [root@ractw21 ~]# chmod -R 775 /u01/app/grid Creating GridHome [root@ractw21 ~]# mkdir -p /u01/app/122/grid [root@ractw21 ~]# chown -R grid:oinstall /u01/app/122/grid [root@ractw21 ~]# chmod -R 775 /u01/app/122/grid Creating the Oracle Base Directory for Database Software To create the Oracle Base directory, enter the following commands as the root user: [root@ractw21 ~]# mkdir -p /u01/app/oracle [root@ractw21 ~]# chown -R oracle:oinstall /u01/app/oracle [root@ractw21 ~]# chmod -R 775 /u01/app/oracle Create file /etc/oraInst.loc wiht following content <inventory_loc=/u01/app/oraInventory inst_group=oinstall
Modify .bashrc scripts for users oracle and grid
Add following lines to grid user .bashrc script
export ORACLE_BASE=/u01/app/grid
export ORACLE_SID=+ASM1
export GRID_HOME=/u01/app/122/grid
export ORACLE_HOME=$GRID_HOME
export PATH=$ORACLE_HOME/bin:.:$PATH
export HOST=`/bin/hostname`
alias h=history
alias log='cd $ORACLE_BASE/diag/crs/hract21/crs/trace'
alias trc='cd $ORACLE_BASE/diag/crs/hract21/crs/trace'
#unalias ls
alias sys='sqlplus / as sysdba'
alias sql='sqlplus scott/tiger'
Add following lines to oracle user .bashrc script
export ORACLE_BASE=/u01/app/oracle
export ORACLE_SID=ractw21
export ORACLE_HOME=/u01/app/oracle/product/122/ractw2
export PATH=$ORACLE_HOME/bin:.:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:.
export HOST=`/bin/hostname`
alias h=history
#unalias ls
alias sys='sqlplus / as sysdba'
alias sql='sqlplus scott/tiger'
Verify our newly created VM with cluvfy
Prepare 12.2 Clufy Usage and Cluvfy log File Location
Create a shared Folder and mount the Installation media [root@ractw21 ~]# mkdir /kits [root@ractw21 ~]# mount -t vboxsf kits /kits [root@ractw21 ~]# su - grid Extract the GRID Zip file on your VBox Host Computer ot get access to Cluvfy Tool ./runcluvfy.sh The runcluvfy.sh script contains temporary variable definitions which enable it to run before you install Oracle Grid Infrastructure or Oracle Database. After you install Oracle Grid Infrastructure, use the cluvfy command to check prerequisites and perform other system readiness checks. Add the proper protections for grid and oracle user to get access to the GRID media [root@ractw21 ~]# usermod -G vboxsf -a grid [root@ractw21 ~]# usermod -G vboxsf -a oracle Run Cluvfy from 12.2 Installation Media and print the cluvfy version number Clufy logs [ very usefull ] are found under $ORACLE_BASE of our grid user [grid@ractw21 ~]$ ls -ld $ORACLE_BASE drwxrwxr-x. 2 grid oinstall 6 Apr 18 14:47 /u01/app/grid [grid@ractw21 linuxx64_12201_grid_home]$ cd /media/sf_kits/Oracle/122/linuxx64_12201_grid_home [grid@ractw21 linuxx64_12201_grid_home]$ ./runcluvfy.sh -version 12.2.0.1.0 Build 010417x8664
Run cluvfy a first time with -fixup options
Run cluvfy a first time with -fixup options before we are cloning the system [grid@ractw21 linuxx64_12201_grid_home]$ cd /media/sf_kits/Oracle/122/linuxx64_12201_grid_home [grid@ractw21 linuxx64_12201_grid_home]$ ./runcluvfy.sh stage -pre crsinst -fixup -n ractw21 .. Got a lot of Errors on the first run ! Execute fixup script "/tmp/CVU_12.2.0.1.0_grid/runfixup.sh" as root user on nodes "ractw21" to perform the fix up operations manually Rerunning clufy ends up with ONLY a following Error / Warning [grid@ractw21 linuxx64_12201_grid_home]$ ./runcluvfy.sh stage -pre crsinst -fixup -n ractw21 .. Verifying Physical Memory ...FAILED ractw21: PRVF-7530 : Sufficient physical memory is not available on node "ractw21" [Required physical memory = 8GB (8388608.0KB)] - CVU operation performed: stage -pre crsinst Date: Apr 8, 2017 7:40:07 AM CVU home: /media/sf_kits/Oracle/122/linuxx64_12201_grid_home/ User: grid PRVF-7530 : I could not fix this as I have only 16 GByte memory - but I've spend at least 6 GByte for the RAC VMs Cluvfy Logs can be found below: ORACLE_BASE=/u01/app/grid /u01/app/grid/crsdata/ractw21/cvu
- For PRVG-13606 error please read following article : Fix PRVG-13606 problem during setup of a local Chrony Env
Testing the DHCP connectivty with cluvfy
Testing DHCP connectivty with cluvfy: [grid@ractw21 linuxx64_12201_grid_home]$ runcluvfy.sh comp dhcp -clustername ractw2 -method root Enter "ROOT" password: Verifying Task DHCP configuration check ... Verifying IP address availability ...PASSED Verifying DHCP response time ...PASSED Verifying Task DHCP configuration check ...PASSED Verification of DHCP Check was successful. CVU operation performed: DHCP Check Date: Apr 11, 2017 1:25:39 PM CVU home: /media/sf_kits/Oracle/122/linuxx64_12201_grid_home/ User: grid Our NameServer should log the following in /var/log/messages Apr 11 13:26:07 ns1 dhcpd: DHCPOFFER on 192.168.5.198 to 00:00:00:00:00:00 via eth1 Apr 11 13:26:07 ns1 dhcpd: DHCPRELEASE of 192.168.5.198 from 00:00:00:00:00:00 via eth1 (found) Apr 11 13:26:12 ns1 dhcpd: DHCPRELEASE of 192.168.5.198 from 00:00:00:00:00:00 via eth1 (found) Apr 11 13:26:13 ns1 dhcpd: DHCPDISCOVER from 00:00:00:00:00:00 via eth1 Apr 11 13:26:13 ns1 dhcpd: DHCPOFFER on 192.168.5.252 to 00:00:00:00:00:00 via eth1
Verify DHCP Connectivity at OS Level
Verify DHCP Connectivity at OS Level [root@ractw21 OEL73]# dhclient enp0s8 Check messages file on our RAC system [root@ractw21 ~]# tail -f /var/log/messages Apr 11 13:11:21 ractw21 dhclient[10998]: DHCPREQUEST on enp0s8 to 255.255.255.255 port 67 (xid=0x43037720) Apr 11 13:11:21 ractw21 dhclient[10998]: DHCPACK from 192.168.5.50 (xid=0x43037720) Apr 11 13:11:21 ractw21 NET[11077]: /usr/sbin/dhclient-script : updated /etc/resolv.conf Apr 11 13:11:21 ractw21 dhclient[10998]: bound to 192.168.5.218 -- renewal in 8225 second --> Our NameServer sucessfully answered with an DHCP address ! Cleanup OS test by Killing the dhclient process [root@ractw21 OEL73]# ps -efl | grep dhclient 1 S root 11106 1 0 80 0 - 28223 poll_s 13:11 ? 00:00:00 dhclient enp0s8 [root@ractw21 OEL73]# kill -9 11106
Verify GNS Setup
Name Server Entry for GNS $ORIGIN grid122.example.com. @ IN NS gns122.grid122.example.com. ; NS grid.example.com IN NS ns1.example.com. ; NS example.com gns122 IN A 192.168.5.59 ; glue record Verify whether UDP port 53 is in use on our RAC VM [root@ractw21 ~]# lsof -P -i:53 dnsmasq 2507 nobody 5u IPv4 22448 0t0 UDP ractw21.example.com:53 dnsmasq 2507 nobody 6u IPv4 22449 0t0 TCP ractw21.example.com:53 (LISTEN) Run cluvfy - should fail ! [grid@ractw21 linuxx64_12201_grid_home]$ runcluvfy.sh comp gns -precrsinst -domain grid122.example.com -vip 192.168.5.59 -verbose Verifying GNS Integrity ... Verifying subdomain is a valid name ...PASSED Verifying GNS VIP is a valid address ...PASSED Verifying Port 53 available for component 'GNS' ...FAILED (PRVG-0330) Verifying GNS Integrity ...FAILED (PRVG-0330) Verification of GNS integrity was unsuccessful on all the specified nodes. Failures were encountered during execution of CVU verification request "GNS integrity". Verifying GNS Integrity ...FAILED Verifying Port 53 available for component 'GNS' ...FAILED ractw21: PRVG-0330 : "UDP" port number "53" required for component "GNS" is already in use on nodes "ractw21" As expected cluvfy fails wiht PRVG-0330 ! You may read article to identify the service which occupies port #53: What process/service occupies a certain port like port 53 ? Having done this you may now disable the related service [root@ractw21 ~]# systemctl stop libvirtd.service [root@ractw21 ~]# systemctl disable libvirtd.service You may need to kill the remaining /sbin/dnsmasq processess [root@ractw21 ~]# ps -elf | grep dnsmasq 5 S nobody 17124 1 0 80 0 - 3888 poll_s 07:59 ? 00:00:00 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper 1 S root 17126 17124 0 80 0 - 3881 pipe_w 07:59 ? 00:00:00 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelper 0 R root 18099 11262 0 80 0 - 28162 - 08:20 pts/4 00:00:00 grep --color=auto dnsmasq [root@ractw21 ~]# kill -9 17124 17126 Note soemtimes dnsmasq service blocks this port. In that case run [root@ractw21 ~]# systemctl stop dnsmasq.service [root@ractw21 ~]# systemctl disable dnsmasq.service Now cluvfy GNS verification should run fine [grid@ractw21 linuxx64_12201_grid_home]$ runcluvfy.sh comp gns -precrsinst -domain grid122.example.com -vip 192.168.5.59 -verbose Verifying GNS Integrity ... Verifying subdomain is a valid name ...PASSED Verifying GNS VIP is a valid address ...PASSED Verifying Port 53 available for component 'GNS' ...PASSED Verifying GNS Integrity ...PASSED Verification of GNS integrity was successful. CVU operation performed: GNS integrity Date: Apr 11, 2017 12:38:29 PM CVU home: /media/sf_kits/Oracle/122/linuxx64_12201_grid_home/ User: grid
Testing subdomain delegation with cluvfy
Start the DNS server [grid@ractw21 linuxx64_12201_grid_home]$ ./runcluvfy.sh comp dns -server -domain grid122.example.com -vipaddress 192.168.5.59/255.255.255.0/enp0s8 -verbose -method root Enter "ROOT" password: Verifying Task DNS configuration check ... Waiting for DNS client requests... --> Server blocks here Note : If the /runcluvfy.sh comp dns -server doesn't block [ means cluvfy returns to command prompt ] you may read the following article : Common cluvfy errors and warnings including first debugging steps Section:: Running cluvfy comp dns -server fails silent – Cluvfy logs show PRCZ-2090 error Now Start the DNS client [grid@ractw21 linuxx64_12201_grid_home]$ runcluvfy.sh comp dns -client -domain grid122.example.com -vip 192.168.5.59 -method root -verbose Enter "ROOT" password: Verifying Task DNS configuration check ...PASSED Verification of DNS Check was successful. CVU operation performed: DNS Check Date: Apr 14, 2017 6:18:49 PM CVU home: /media/sf_kits/Oracle/122/linuxx64_12201_grid_home/ User: grid Run DNS client again and terminate DNS server by using -last swich [grid@ractw21 linuxx64_12201_grid_home]$ runcluvfy.sh comp dns -client -domain grid122.example.com -vip 192.168.5.59 -method root -verbose -last ... Now server responds but terminates after servicing the request Verifying Task DNS configuration check ...PASSED Verification of DNS Check was successful. CVU operation performed: DNS Check Date: Apr 14, 2017 6:17:53 PM CVU home: /media/sf_kits/Oracle/122/linuxx64_12201_grid_home/ User: grid
Current Status
- At this time we have created a base system which we will use for cloning
- Following cluvfy commands runs sucessfully
- Only the first command fails with PRVF-7530 : Sufficient physical memory is not available on node
[grid@ractw21 linuxx64_12201_grid_home]$ cd /media/sf_kits/Oracle/122/linuxx64_12201_grid_home [grid@ractw21 linuxx64_12201_grid_home]$ ./runcluvfy.sh stage -pre crsinst -fixup -n ractw21 [grid@ractw21 linuxx64_12201_grid_home]$ ./runcluvfy.sh comp gns -precrsinst -domain grid122.example.com -vip 192.168.5.59 -verbose [grid@ractw21 linuxx64_12201_grid_home]$ ./runcluvfy.sh comp dhcp -clustername ractw2 -method root [grid@ractw21 linuxx64_12201_grid_home]$ ./runcluvfy.sh comp dns -server -domain grid122.example.com -vipaddress 192.168.5.59/255.255.255.0/enp0s8 -verbose -method root [grid@ractw21 linuxx64_12201_grid_home]$ ./runcluvfy.sh comp dns -client -domain grid122.example.com -vip 192.168.5.59 -method root -verbose -last
- Its now time to shutdown the VM and do backup VM and Vbox file
Clone ractw21 system
You man change in File-> Preference the default machine path first M:\VM\RACTW2 Cloning ractw21 : Now cleanly shutdown your Reference/Clone system Virtualbox -> Clone [ Name clone ractw22 ] -> add new Network Addresses -> Full Clone Boot ractw22 VM a first time - retrieve the new MAC addresses [root@ractw22 ~]# dmesg |grep eth [ 8.153534] e1000 0000:00:03.0 eth0: (PCI:33MHz:32-bit) 08:00:27:dd:af:2c [ 8.153539] e1000 0000:00:03.0 eth0: Intel(R) PRO/1000 Network Connection [ 8.565884] e1000 0000:00:08.0 eth1: (PCI:33MHz:32-bit) 08:00:27:05:1d:93 [ 8.565888] e1000 0000:00:08.0 eth1: Intel(R) PRO/1000 Network Connection [ 8.956019] e1000 0000:00:09.0 eth2: (PCI:33MHz:32-bit) 08:00:27:7b:22:80 [ 8.956023] e1000 0000:00:09.0 eth2: Intel(R) PRO/1000 Network Connection [ 8.957249] e1000 0000:00:03.0 enp0s3: renamed from eth0 [ 8.966330] e1000 0000:00:09.0 enp0s9: renamed from eth2 [ 8.983008] e1000 0000:00:08.0 enp0s8: renamed from eth1 Change and verify the NEW hostname [root@ractw21 ~]# hostnamectl set-hostname ractw22.example.com --static [root@ractw21 ~]# hostnamectl status Static hostname: ractw22.example.com Transient hostname: ractw21.example.com Icon name: computer-vm Chassis: vm Machine ID: c173da783e4c45eab1402e69f783ce10 Boot ID: 3dad3ed3b1f345d3b7fee60778257cd6 Virtualization: kvm Operating System: Oracle Linux Server 7.3 CPE OS Name: cpe:/o:oracle:linux:7:3:server Kernel: Linux 4.1.12-61.1.33.el7uek.x86_64 Architecture: x86-64 Go to /etc/sysconfig/network-scripts and change IP addresses file "ifcfg-enp0s8" IPADDR=192.168.5.142 "ifcfg-enp0s9" IPADDR=192.168.2.142 Restart the Network [root@ractw22 network-scripts]# service network restart Verify that our Network devices has the proper setttings [root@ractw22 ~]# ifconfig enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 ether 08:00:27:dd:af:2c txqueuelen 1000 (Ethernet) enp0s8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.5.142 netmask 255.255.255.0 broadcast 192.168.5.255 enp0s9: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.2.142 netmask 255.255.255.0 broadcast 192.168.2.255 Note as mentioned before enp0s3 ( our NAT device ) is disabled and has no IP V4 address Verify RAC nameserver connectivity [root@ractw22 ~]# nslookup ractw22 Server: 192.168.5.50 Address: 192.168.5.50#53 Name: ractw22.example.com Address: 192.168.5.142 Now boot rawtw21 VM and check IP connectivty [root@ractw22 ~]# ping ractw21 PING ractw21.example.com (192.168.5.141) 56(84) bytes of data. 64 bytes from ractw21.example.com (192.168.5.141): icmp_seq=1 ttl=64 time=0.663 ms 64 bytes from ractw21.example.com (192.168.5.141): icmp_seq=2 ttl=64 time=0.309 ms .. [root@ractw22 ~]# ping ractw21int PING ractw21int.example.com (192.168.2.141) 56(84) bytes of data. 64 bytes from ractw21int.example.com (192.168.2.141): icmp_seq=1 ttl=64 time=0.210 ms 64 bytes from ractw21int.example.com (192.168.2.141): icmp_seq=2 ttl=64 time=0.264 ms ... Check disk space and memory [root@ractw22 ~]# free total used free shared buff/cache available Mem: 5700592 528364 4684328 11256 487900 5083212 Swap: 8257532 0 8257532 [root@ractw22 ~]# df / /u01 Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/ol_ractw21-root 15718400 9381788 6336612 60% / /dev/mapper/ol_ractw21-u01 15718400 46552 15671848 1% /u01 Login into ractw21 [root@ractw21 ~]# ping ractw22 PING ractw22.example.com (192.168.5.142) 56(84) bytes of data. 64 bytes from ractw22.example.com (192.168.5.142): icmp_seq=1 ttl=64 time=0.216 ms 64 bytes from ractw22.example.com (192.168.5.142): icmp_seq=2 ttl=64 time=0.303 ms ... [root@ractw21 ~]# ping ractw22int PING ractw22int.example.com (192.168.2.142) 56(84) bytes of data. 64 bytes from ractw22int.example.com (192.168.2.142): icmp_seq=1 ttl=64 time=0.266 ms 64 bytes from ractw22int.example.com (192.168.2.142): icmp_seq=2 ttl=64 time=0.445 ms
Create and attach ASM Disks
Create ASM disks M:\VM>cd RACTW2 M:\VM\RACTW2>VBoxManage createhd --filename M:\VM\RACTW2\asm1_122_20G.vdi --size 20480 --format VDI --variant Fixed 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Medium created. UUID: 886d76b0-eeb0-43e4-9ab2-bd7d9e8ad879 M:\VM\RACTW2>VBoxManage createhd --filename M:\VM\RACTW2\asm2_122_20G.vdi --size 20480 --format VDI --variant Fixed 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Medium created. UUID: be823513-0d1c-4b25-af29-fe504e28e910 M:\VM\RACTW2>VBoxManage createhd --filename M:\VM\RACTW2\asm3_122_20G.vdi --size 20480 --format VDI --variant Fixed 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Medium created. UUID: 3238860f-a90f-459c-965b-f93773f2ad38 M:\VM\RACTW2>VBoxManage createhd --filename M:\VM\RACTW2\asm4_122_20G.vdi --size 20480 --format VDI --variant Fixed 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100% Medium created. UUID: 185218e4-a7f6-4d29-ae7c-dc7499b05238 M:\VM\RACTW2>VBoxManage modifyhd asm1_122_20G.vdi --type shareable M:\VM\RACTW2>VBoxManage modifyhd asm2_122_20G.vdi --type shareable M:\VM\RACTW2>VBoxManage modifyhd asm3_122_20G.vdi --type shareable M:\VM\RACTW2>VBoxManage modifyhd asm4_122_20G.vdi --type shareable Attach Disks to ractw21 M:\VM\RACTW2>VBoxManage storageattach ractw21 --storagectl "SATA" --port 1 --device 0 --type hdd --medium asm1_122_20G.vdi --mtype shareable M:\VM\RACTW2>VBoxManage storageattach ractw21 --storagectl "SATA" --port 2 --device 0 --type hdd --medium asm2_122_20G.vdi --mtype shareable M:\VM\RACTW2>VBoxManage storageattach ractw21 --storagectl "SATA" --port 3 --device 0 --type hdd --medium asm3_122_20G.vdi --mtype shareable M:\VM\RACTW2>VBoxManage storageattach ractw21 --storagectl "SATA" --port 4 --device 0 --type hdd --medium asm4_122_20G.vdi --mtype shareable Attach the ASM disks to ractw22 M:\VM\RACTW2>VBoxManage storageattach ractw22 --storagectl "SATA" --port 1 --device 0 --type hdd --medium asm1_122_20G.vdi --mtype shareable M:\VM\RACTW2>VBoxManage storageattach ractw22 --storagectl "SATA" --port 2 --device 0 --type hdd --medium asm2_122_20G.vdi --mtype shareable M:\VM\RACTW2>VBoxManage storageattach ractw22 --storagectl "SATA" --port 3 --device 0 --type hdd --medium asm3_122_20G.vdi --mtype shareable M:\VM\RACTW2>VBoxManage storageattach ractw22 --storagectl "SATA" --port 4 --device 0 --type hdd --medium asm4_122_20G.vdi --mtype shareable Use parted to create a single disk partition root@ractw21 ~]# parted /dev/sdb GNU Parted 3.1 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Error: /dev/sdb: unrecognised disk label Model: ATA VBOX HARDDISK (scsi) Disk /dev/sdb: 21.5GB Sector size (logical/physical): 512B/512B Partition Table: unknown Disk Flags: (parted) mklabel msdos (parted) print Model: ATA VBOX HARDDISK (scsi) Disk /dev/sdb: 21.5GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags (parted) mkpart Partition type? primary/extended? primary File system type? [ext2]? Start? 1 End? -1 (parted) print Model: ATA VBOX HARDDISK (scsi) Disk /dev/sdb: 21.5GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 21.5GB 21.5GB primary Display in disk sectors (parted) unit s print Model: ATA VBOX HARDDISK (scsi) Disk /dev/sdb: 41943040s Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 2048s 41940991s 41938944s primary Repeat this for /dev/sdc /dev/sdd and /dev/sde Create following bash script [root@ractw21 ~]# cat ./check_wwid.sh #!/bin/bash # #Usage: As root user run : ./check_wwid.sh # for FILE in `find /dev -name "sd*" | sort` do WWID=`/lib/udev/scsi_id --whitelisted --replace-whitespace --device=$FILE ` echo $FILE " WWID: " $WWID done Display the disk UUIDs [root@ractw21 ~]# ./check_wwid.sh /dev/sda WWID: 1ATA_VBOX_HARDDISK_VB9a03ce8e-7e44db17 /dev/sda1 WWID: 1ATA_VBOX_HARDDISK_VB9a03ce8e-7e44db17 /dev/sda2 WWID: 1ATA_VBOX_HARDDISK_VB9a03ce8e-7e44db17 /dev/sdb WWID: 1ATA_VBOX_HARDDISK_VB4f9101ae-136f6f41 /dev/sdb1 WWID: 1ATA_VBOX_HARDDISK_VB4f9101ae-136f6f41 /dev/sdc WWID: 1ATA_VBOX_HARDDISK_VBe92a2992-3bbc2c78 /dev/sdc1 WWID: 1ATA_VBOX_HARDDISK_VBe92a2992-3bbc2c78 /dev/sdd WWID: 1ATA_VBOX_HARDDISK_VBed1a6a99-97750413 /dev/sdd1 WWID: 1ATA_VBOX_HARDDISK_VBed1a6a99-97750413 /dev/sde WWID: 1ATA_VBOX_HARDDISK_VBc47b21a6-a7b01781 /dev/sde1 WWID: 1ATA_VBOX_HARDDISK_VBc47b21a6-a7b01781 Add the following to the "/etc/scsi_id.config" file to configure SCSI devices as trusted. Create the file if it doesn't already exist. options=-g [root@ractw21 ~]# /sbin/partprobe /dev/sdb1 [root@ractw21 ~]# /sbin/partprobe /dev/sdc1 [root@ractw21 ~]# /sbin/partprobe /dev/sdd1 [root@ractw21 ~]# /sbin/partprobe /dev/sde1 [root@ractw21 ~]# /sbin/udevadm control --reload-rules [root@ractw21 ~]# ls -l /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1 brw-rw----. 1 grid asmadmin 8, 17 Apr 19 15:53 /dev/sdb1 brw-rw----. 1 grid asmadmin 8, 33 Apr 19 15:53 /dev/sdc1 brw-rw----. 1 grid asmadmin 8, 49 Apr 19 15:53 /dev/sdd1 brw-rw----. 1 grid asmadmin 8, 65 Apr 19 15:53 /dev/sde1 [root@ractw21 ~]# ls -l /dev/oracleasm total 0 lrwxrwxrwx. 1 root root 7 Apr 19 15:53 asmdisk1_sdb1 -> ../sdb1 lrwxrwxrwx. 1 root root 7 Apr 19 15:53 asmdisk2_sdc -> ../sdc1 lrwxrwxrwx. 1 root root 7 Apr 19 15:53 asmdisk3_sdd -> ../sdd1 lrwxrwxrwx. 1 root root 7 Apr 19 15:53 asmdisk_sde -> ../sde1 Copy scsi_id.config 99-oracle-asmdevices.rules to ractw22 [root@ractw21 ~]# scp /etc/scsi_id.config ractw22:/etc scsi_id.config 100% 11 0.0KB/s 00:00 [root@ractw21 ~]# scp /etc/udev/rules.d/99-oracle-asmdevices.rules ractw22:/etc/udev/rules.d/ 99-oracle-asmdevices.rules 100% 887 0.9KB/s 00:00 Reboot ractw22 and verify ASM disks [root@ractw22 ~]# ls -l /dev/oracleasm total 0 lrwxrwxrwx. 1 root root 7 Apr 19 16:06 asmdisk1_sdb1 -> ../sdb1 lrwxrwxrwx. 1 root root 7 Apr 19 16:06 asmdisk2_sdc1 -> ../sdc1 lrwxrwxrwx. 1 root root 7 Apr 19 16:06 asmdisk3_sdd1 -> ../sdd1 lrwxrwxrwx. 1 root root 7 Apr 19 16:06 asmdisk_sde1 -> ../sde1 [root@ractw22 ~]# ls -l /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1 brw-rw----. 1 grid asmadmin 8, 17 Apr 19 16:06 /dev/sdb1 brw-rw----. 1 grid asmadmin 8, 33 Apr 19 16:06 /dev/sdc1 brw-rw----. 1 grid asmadmin 8, 49 Apr 19 16:06 /dev/sdd1 brw-rw----. 1 grid asmadmin 8, 65 Apr 19 16:06 /dev/sde1
Setup ssh connectivity for grid user with cluvfy
Cleanup .shh directories which may have inconsistent data due to cloning On Note ractw21 [grid@ractw21 linuxx64_12201_grid_home]$ rm -rf /home/grid/.ssh [grid@ractw21 linuxx64_12201_grid_home]$ ssh grid@ractw22 On Note ractw22 [grid@ractw22 linuxx64_12201_grid_home]$ rm -rf /home/grid/.ssh [grid@ractw22 linuxx64_12201_grid_home]$ ssh grid@ractw21 Now run cluvfy with -fixup option [grid@ractw21 linuxx64_12201_grid_home]$ runcluvfy.sh comp admprv -n "ractw21,ractw22" -o user_equiv -verbose -fixup Verifying User Equivalence ... Node Name Status ------------------------------------ ------------------------ ractw22 failed Verifying User Equivalence ...FAILED (PRVG-2019, PRKN-1038) Verification of administrative privileges was unsuccessful. Checks did not pass for the following nodes: ractw22 Failures were encountered during execution of CVU verification request "administrative privileges". Verifying User Equivalence ...FAILED ractw22: PRVG-2019 : Check for equivalence of user "grid" from node "ractw21" to node "ractw22" failed PRKN-1038 : The command "/usr/bin/ssh -o FallBackToRsh=no -o PasswordAuthentication=no -o StrictHostKeyChecking=yes -o NumberOfPasswordPrompts=0 ractw22 -n /bin/true" run on node "ractw21" gave an unexpected output: "Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)." CVU operation performed: administrative privileges Date: Apr 19, 2017 5:05:53 PM CVU home: /media/sf_kits/Oracle/122/linuxx64_12201_grid_home/ User: grid Setting up SSH user equivalence for user "grid" between nodes "ractw21,ractw22" Enter "grid" password: SSH user equivalence was successfully set up for user "grid" on nodes "ractw21,ractw22" Now rerun the command : [grid@ractw21 linuxx64_12201_grid_home]$ runcluvfy.sh comp admprv -n "ractw21,ractw22" -o user_equiv -verbose Verifying User Equivalence ... Node Name Status ------------------------------------ ------------------------ ractw22 passed Verifying Checking user equivalence for user "grid" on all cluster nodes ...PASSED From node To node Status ------------ ------------------------ ------------------------ ractw22 ractw21 SUCCESSFUL Verifying User Equivalence ...PASSED Verification of administrative privileges was successful. CVU operation performed: administrative privileges Date: Apr 19, 2017 5:18:21 PM CVU home: /media/sf_kits/Oracle/122/linuxx64_12201_grid_home/ User: grid Verify at OS level: [grid@ractw21 linuxx64_12201_grid_home]$ ssh grid@ractw22 Last login: Wed Apr 19 17:14:22 2017 from ractw21.example.com [grid@ractw22 ~]$ ssh grid@ractw21 Last login: Wed Apr 19 17:12:16 2017 from ractw22.example.com
Run cluvfy a first time against both nodes
- with Network Connectivity checks
- with ASM Disk checks
[grid@ractw21 ~]$ cd /media/sf_kits/Oracle/122/linuxx64_12201_grid_home [grid@ractw21 linuxx64_12201_grid_home]$ runcluvfy.sh stage -pre crsinst -asm -presence local -asmgrp asmadmin \ > -asmdev /dev/oracleasm/asmdisk1_sdb1,/dev/oracleasm/asmdisk2_sdc1,/dev/oracleasm/asmdisk3_sdd1,/dev/oracleasm/asmdisk4_sde1 \ > -networks enp0s8:192.168.5.0:PUBLIC/enp0s9:192.168.2.0:cluster_interconnect \ > -n "ractw21,ractw22" Verifying Physical Memory ...FAILED (PRVF-7530) Verifying Available Physical Memory ...PASSED Verifying Swap Size ...PASSED Verifying Free Space: ractw22:/usr,ractw22:/var,ractw22:/etc,ractw22:/sbin,ractw22:/tmp ...PASSED Verifying Free Space: ractw21:/usr,ractw21:/var,ractw21:/etc,ractw21:/sbin,ractw21:/tmp ...PASSED .. Verifying Node Connectivity ... Verifying Hosts File ...PASSED Verifying Check that maximum (MTU) size packet goes through subnet ...PASSED Verifying subnet mask consistency for subnet "192.168.2.0" ...PASSED Verifying subnet mask consistency for subnet "192.168.5.0" ...PASSED Verifying Node Connectivity ...PASSED Verifying Multicast check ...PASSED Verifying Device Checks for ASM ... Verifying ASM device sharedness check ... Verifying Package: cvuqdisk-1.0.10-1 ...PASSED Verifying Shared Storage Accessibility:/dev/oracleasm/asmdisk1_sdb1,/dev/oracleasm/asmdisk3_sdd1,/dev/oracleasm/asmdisk2_sdc1,/dev/oracleasm/asmdisk4_sde1 ...PASSED Verifying ASM device sharedness check ...PASSED Verifying Access Control List check ...PASSED Verifying Device Checks for ASM ...PASSED ... Verifying ASM Filter Driver configuration ...PASSED Pre-check for cluster services setup was unsuccessful on all the nodes. Failures were encountered during execution of CVU verification request "stage -pre crsinst". Verifying Physical Memory ...FAILED ractw22: PRVF-7530 : Sufficient physical memory is not available on node "ractw22" [Required physical memory = 8GB (8388608.0KB)] ractw21: PRVF-7530 : Sufficient physical memory is not available on node "ractw21" [Required physical memory = 8GB (8388608.0KB)] CVU operation performed: stage -pre crsinst Date: Apr 19, 2017 6:12:00 PM CVU home: /media/sf_kits/Oracle/122/linuxx64_12201_grid_home/ User: grid Again the above failures were expected due to memory constraints
Install GRID software
Unzip and install GRID software
- For sceenshots please check : Oracle Database 12c Release 2 (12.2) RAC On Oracle Linux 7 Using VirtualBox
$ cd $GRID_HOME $ unzip -q $SOFTWARE_LOCATION/linuxx64_12201_grid_home.zip $ ./gridSetup.sh -> Configure a standard cluster -> Advanced Installation Cluster name : ractw2 Scan name : ractw2-scan Scan port : 1521 -> Create New GNS GNS VIP address: 192.168.5.59 GNS Sub domain : grid122.example.com Public Hostname Virtual Hostname ractw21.example.com AUTO ractw22.example.com AUTO -> Test and Setup SSH connectivity -> Setup network Interfaces enp0s3: don't use enp0s8: PUBLIC 192.168.5.X enp0s9: Private Cluster_Interconnect,ASM 192.168.2.X -> Configure GRID Infrastruce: YES -> Use standard ASM for storage -> ASM setup Diskgroup : DATA Disk discover PATH: /dev/asm* --> Don't use IPMI Run root scritps as requested by the installation script ! [root@ractw22 etc]# /u01/app/oraInventory/orainstRoot.sh Changing permissions of /u01/app/oraInventory. Adding read,write permissions for group. Removing read,write,execute permissions for world. Changing groupname of /u01/app/oraInventory to oinstall. The execution of the script is complete. [root@ractw21 etc]# /u01/app/122/grid/root.sh [root@ractw22 etc]# /u01/app/122/grid/root.sh
Verify GRID Installation status
Verify Grid Installation Status using crsctl stat res
[grid@ractw21 ~]$ crsi ***** Local Resources: ***** Resource NAME INST TARGET STATE SERVER STATE_DETAILS --------------------------- ---- ------------ ------------ --------------- ----------------------------------------- ora.asm 1 ONLINE ONLINE ractw21 STABLE ora.cluster_interconnect.haip 1 ONLINE ONLINE ractw21 STABLE ora.crf 1 ONLINE ONLINE ractw21 STABLE ora.crsd 1 ONLINE ONLINE ractw21 STABLE ora.cssd 1 ONLINE ONLINE ractw21 STABLE ora.cssdmonitor 1 ONLINE ONLINE ractw21 STABLE ora.ctssd 1 ONLINE ONLINE ractw21 OBSERVER,STABLE ora.diskmon 1 OFFLINE OFFLINE - STABLE ora.driver.afd 1 ONLINE ONLINE ractw21 STABLE ora.drivers.acfs 1 ONLINE ONLINE ractw21 STABLE ora.evmd 1 ONLINE ONLINE ractw21 STABLE ora.gipcd 1 ONLINE ONLINE ractw21 STABLE ora.gpnpd 1 ONLINE ONLINE ractw21 STABLE ora.mdnsd 1 ONLINE ONLINE ractw21 STABLE ora.storage 1 ONLINE ONLINE ractw21 STABLE [grid@ractw21 ~]$ crs ***** Local Resources: ***** Rescource NAME TARGET STATE SERVER STATE_DETAILS ------------------------- ---------- ---------- ------------ ------------------ ora.ASMNET1LSNR_ASM.lsnr ONLINE ONLINE ractw21 STABLE ora.ASMNET1LSNR_ASM.lsnr ONLINE ONLINE ractw22 STABLE ora.DATA.dg ONLINE ONLINE ractw21 STABLE ora.DATA.dg ONLINE ONLINE ractw22 STABLE ora.LISTENER.lsnr ONLINE ONLINE ractw21 STABLE ora.LISTENER.lsnr ONLINE ONLINE ractw22 STABLE ora.net1.network ONLINE ONLINE ractw21 STABLE ora.net1.network ONLINE ONLINE ractw22 STABLE ora.ons ONLINE ONLINE ractw21 STABLE ora.ons ONLINE ONLINE ractw22 STABLE ora.proxy_advm OFFLINE OFFLINE ractw21 STABLE ora.proxy_advm OFFLINE OFFLINE ractw22 STABLE ***** Cluster Resources: ***** Resource NAME INST TARGET STATE SERVER STATE_DETAILS --------------------------- ---- ------------ ------------ --------------- ----------------------------------------- ora.LISTENER_SCAN1.lsnr 1 ONLINE ONLINE ractw22 STABLE ora.LISTENER_SCAN2.lsnr 1 ONLINE ONLINE ractw21 STABLE ora.LISTENER_SCAN3.lsnr 1 ONLINE ONLINE ractw21 STABLE ora.MGMTLSNR 1 ONLINE ONLINE ractw21 169.254.51.105 192.1 68.2.141,STABLE ora.asm 1 ONLINE ONLINE ractw21 Started,STABLE ora.asm 2 ONLINE ONLINE ractw22 Started,STABLE ora.asm 3 OFFLINE OFFLINE - STABLE ora.cvu 1 ONLINE ONLINE ractw21 STABLE ora.gns 1 ONLINE ONLINE ractw21 STABLE ora.gns.vip 1 ONLINE ONLINE ractw21 STABLE ora.mgmtdb 1 ONLINE ONLINE ractw21 Open,STABLE ora.qosmserver 1 ONLINE ONLINE ractw21 STABLE ora.ractw21.vip 1 ONLINE ONLINE ractw21 STABLE ora.ractw22.vip 1 ONLINE ONLINE ractw22 STABLE ora.scan1.vip 1 ONLINE ONLINE ractw22 STABLE ora.scan2.vip 1 ONLINE ONLINE ractw21 STABLE ora.scan3.vip 1 ONLINE ONLINE ractw21 STABLE
Verify Grid Installation Status by using cluvfy
[grid@ractw21 ~]$ cluvfy stage -post crsinst -n ractw21,ractw22 Verifying Node Connectivity ... Verifying Hosts File ...PASSED Verifying Check that maximum (MTU) size packet goes through subnet ...PASSED Verifying subnet mask consistency for subnet "192.168.2.0" ...PASSED Verifying subnet mask consistency for subnet "192.168.5.0" ...PASSED Verifying Node Connectivity ...PASSED Verifying Multicast check ...PASSED Verifying ASM filter driver configuration consistency ...PASSED Verifying Time zone consistency ...PASSED Verifying Cluster Manager Integrity ...PASSED Verifying User Mask ...PASSED Verifying Cluster Integrity ...PASSED Verifying OCR Integrity ...PASSED Verifying CRS Integrity ... Verifying Clusterware Version Consistency ...PASSED Verifying CRS Integrity ...PASSED Verifying Node Application Existence ...PASSED Verifying Single Client Access Name (SCAN) ... Verifying DNS/NIS name service 'ractw2-scan.ractw2.grid122.example.com' ... Verifying Name Service Switch Configuration File Integrity ...PASSED Verifying DNS/NIS name service 'ractw2-scan.ractw2.grid122.example.com' ...PASSED Verifying Single Client Access Name (SCAN) ...PASSED Verifying OLR Integrity ...PASSED Verifying GNS Integrity ... Verifying subdomain is a valid name ...PASSED Verifying GNS VIP belongs to the public network ...PASSED Verifying GNS VIP is a valid address ...PASSED Verifying name resolution for GNS sub domain qualified names ...PASSED Verifying GNS resource ...PASSED Verifying GNS VIP resource ...PASSED Verifying GNS Integrity ...PASSED Verifying Voting Disk ...PASSED Verifying ASM Integrity ... Verifying Node Connectivity ... Verifying Hosts File ...PASSED Verifying Check that maximum (MTU) size packet goes through subnet ...PASSED Verifying subnet mask consistency for subnet "192.168.2.0" ...PASSED Verifying subnet mask consistency for subnet "192.168.5.0" ...PASSED Verifying Node Connectivity ...PASSED Verifying ASM Integrity ...PASSED Verifying Device Checks for ASM ...PASSED Verifying ASM disk group free space ...PASSED Verifying I/O scheduler ... Verifying Package: cvuqdisk-1.0.10-1 ...PASSED Verifying I/O scheduler ...PASSED Verifying User Not In Group "root": grid ...PASSED Verifying Clock Synchronization ... CTSS is in Observer state. Switching over to clock synchronization checks using NTP Verifying Network Time Protocol (NTP) ... Verifying '/etc/chrony.conf' ...PASSED Verifying '/var/run/chronyd.pid' ...PASSED Verifying Daemon 'chronyd' ...PASSED Verifying NTP daemon or service using UDP port 123 ...PASSED Verifying chrony daemon is synchronized with at least one external time source ...PASSED Verifying Network Time Protocol (NTP) ...PASSED Verifying Clock Synchronization ...PASSED Verifying Network configuration consistency checks ...PASSED Verifying File system mount options for path GI_HOME ...PASSED Post-check for cluster services setup was successful. CVU operation performed: stage -post crsinst Date: Apr 20, 2017 10:00:30 AM CVU home: /u01/app/122/grid/ User: grid
Verify GNS installation with OS tools
[root@ractw22 ~]# dig @192.168.5.50 ractw2-scan.grid122.example.com ... ;ractw2-scan.grid122.example.com. IN A ;; ANSWER SECTION: ractw2-scan.grid122.example.com. 0 IN A 192.168.5.223 ractw2-scan.grid122.example.com. 0 IN A 192.168.5.221 ractw2-scan.grid122.example.com. 0 IN A 192.168.5.222 ;; AUTHORITY SECTION: grid122.example.com. 3600 IN NS ns1.example.com. grid122.example.com. 3600 IN NS gns122.grid122.example.com. ;; ADDITIONAL SECTION: ns1.example.com. 3600 IN A 192.168.5.50 ;; Query time: 11 msec ;; SERVER: 192.168.5.50#53(192.168.5.50) ;; WHEN: Thu Apr 20 09:49:09 CEST 2017 ;; MSG SIZE rcvd: 163 [grid@ractw21 ~]$ nslookup ractw2-scan.grid122.example.com Server: 192.168.5.50 Address: 192.168.5.50#53 Non-authoritative answer: Name: ractw2-scan.grid122.example.com Address: 192.168.5.223 Name: ractw2-scan.grid122.example.com Address: 192.168.5.221 Name: ractw2-scan.grid122.example.com Address: 192.168.5.222 [grid@ractw21 ~]$ srvctl config gns -a -list GNS is enabled. GNS is listening for DNS server requests on port 53 GNS is using port 5353 to connect to mDNS GNS status: OK Domain served by GNS: grid122.example.com GNS version: 12.2.0.1.0 .. ractw2-scan.ractw2 A 192.168.5.221 Unique Flags: 0x81 ractw2-scan.ractw2 A 192.168.5.222 Unique Flags: 0x81 ractw2-scan.ractw2 A 192.168.5.223 Unique Flags: 0x81 ractw2-scan1-vip.ractw2 A 192.168.5.221 Unique Flags: 0x81 ractw2-scan2-vip.ractw2 A 192.168.5.223 Unique Flags: 0x81 ..
Install RDBMS software
- Extract database zip File on a VirtualBox Host
Setup ssh connectivity for oracle user by using sshUserSetup.sh [oracle@ractw21 sshsetup]$ cd /media/sf_kits/ORACLE/122/linuxx64_12201_database/database/sshsetup [oracle@ractw21 sshsetup]$ ./sshUserSetup.sh -user oracle -hosts "ractw21 ractw22" -advanced -exverify -noPromptPassphrase Verify setup [oracle@ractw22 ~]$ /usr/bin/ssh -x -l oracle ractw21 Last login: Thu Apr 20 13:32:51 2017 [oracle@ractw21 ~]$ /usr/bin/ssh -x -l oracle ractw22 Last login: Thu Apr 20 13:43:35 2017 from ractw21.example.com
In case trouble you may read following article :
Verify oracle account for rdbms installation with cluvfy
[oracle@ractw21 ~]$ /u01/app/122/grid/bin/cluvfy stage -pre dbinst -n ractw21,ractw22 -d /u01/app/oracle/product/122/ractw2 -fixup Verifying Physical Memory ...PASSED Verifying Available Physical Memory ...PASSED Verifying Swap Size ...PASSED Verifying Free Space: ractw22:/u01/app/oracle/product/122/ractw2 ...PASSED Verifying Free Space: ractw22:/tmp ...PASSED Verifying Free Space: ractw21:/u01/app/oracle/product/122/ractw2 ...PASSED Verifying Free Space: ractw21:/tmp ...PASSED Verifying User Existence: oracle ... Verifying Users With Same UID: 1002 ...PASSED ... Verifying Maximum locked memory check ...PASSED Pre-check for database installation was successful. CVU operation performed: stage -pre dbinst Date: Apr 20, 2017 1:49:00 PM CVU home: /u01/app/122/grid/ User: oracle
Install RDBMS software
Allow and check X-Windows Usage
[root@ractw21 ~]# xhost +
access control disabled, clients can connect from any host
[oracle@ractw21 ~]$ export DISPLAY=:0.0
[oracle@ractw21 ~]$ xclock
[oracle@ractw21 ~]$ cd /media/sf_kits/ORACLE/122/linuxx64_12201_database/database/
[oracle@ractw21 database]$ ./runInstaller
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 500 MB. Actual 5972 MB Passed
Checking swap space: must be greater than 150 MB. Actual 7977 MB Passed
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2017-04-20_02-01-56PM. Please wait ...
-> Select "Install database software only" option
-> Select "Oracle Real Application Clusters database installation" option
-> Select Oracle Nodes: ractw21, ractw22
-> Test SSH Connectivity
-> Select Enterpris Edition
-> Seelct Group: dba
-> Select ORACLE_BASE: /u01/app/oracle
ORACLE_HOME: /u01/app/oracle/product/122/ractw2
-> Press Install Button
-> Execute root scripts
ractw21 :
ractw22 :
Create a RAC database with dbca
Create a RAC database with dbca – Adminstator managed
[oracle@ractw21 ~]$ id
uid=1002(oracle) gid=1001(oinstall) groups=1001(oinstall),983(vboxsf),1002(dba),1006(asmdba) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[oracle@ractw21 database]$ dbca
--> Create and Configure a Database
--> Oracle Real Application Cluster database
--> Policy Managed : false
--> Generel Purpose or Transaction Procession
--> Server Pool: Top_Priority Cardinality :2
--> Global database Name : ractw2.example.com
--> Use local UNDO for PDPs
--> Create as Container db
--> Let ASM unchanged
--> Enable Archiving
--> Enable FRA
--> recoveryAreaDestination=+DATA
--> Limit SGA, PGA
sga_target=1367MB
pga_aggregate_target=456MB
--> password : sys/sys
--> PDP Name : ractw2pdb
--> Select all 2 RAC members
--> Test/Create SSH connectivity
--> Advanced Install
--> Select Generell Purpose / Transaction database type
--> recoveryAreaDestination=+DATA
--> Select ASM and for OSDDBA use group: dba ( default )
Convert Adminstrator Managed Database to Policy Managed
Verify setup by connecting via Scan Name
Find the Scan Name [grid@ractw21 ~]$ srvctl config scan SCAN name: ractw2-scan.ractw2.grid122.example.com, Network: 1 Subnet IPv4: 192.168.5.0/255.255.255.0/enp0s8, dhcp Subnet IPv6: SCAN 1 IPv4 VIP: -/scan1-vip/192.168.5.234 SCAN VIP is enabled. SCAN VIP is individually enabled on nodes: SCAN VIP is individually disabled on nodes: SCAN 2 IPv4 VIP: -/scan2-vip/192.168.5.232 SCAN VIP is enabled. SCAN VIP is individually enabled on nodes: SCAN VIP is individually disabled on nodes: SCAN 3 IPv4 VIP: -/scan3-vip/192.168.5.231 SCAN VIP is enabled. SCAN VIP is individually enabled on nodes: SCAN VIP is individually disabled on nodes: --> Our Scan Name is ractw2-scan.ractw2.grid122.example.com Test the Namesever connectivity: Note we expect to see our 3 VIP addresses here for a working setup [grid@ractw21 ~]$ nslookup ractw2-scan.ractw2.grid122.example.com Server: 192.168.5.50 Address: 192.168.5.50#53 Non-authoritative answer: Name: ractw2-scan.ractw2.grid122.example.com Address: 192.168.5.231 Name: ractw2-scan.ractw2.grid122.example.com Address: 192.168.5.234 Name: ractw2-scan.ractw2.grid122.example.com Address: 192.168.5.232 Find one of our SCAN listener running on this node [oracle@ractw21 ~]$ ps -elf | grep LISTENER_SCAN 0 S grid 16391 1 0 80 0 - 70631 - 10:25 ? 00:00:00 /u01/app/122/grid/bin/tnslsnr LISTENER_SCAN1 -no_crs_notify -inherit Query the SCAN Listener for registered services [grid@ractw21 ~]$ lsnrctl status LISTENER_SCAN1 LSNRCTL for Linux: Version 12.2.0.1.0 - Production on 23-APR-2017 13:25:23 ... Services Summary... Service "-MGMTDBXDB" has 1 instance(s). Instance "-MGMTDB", status READY, has 1 handler(s) for this service... Service "4d93c06c65234fffe0538d05a8c0a06a" has 1 instance(s). Instance "-MGMTDB", status READY, has 1 handler(s) for this service... Service "4dac7be3b0930f43e0538e05a8c01163.example.com" has 2 instance(s). Instance "ractw_1", status READY, has 1 handler(s) for this service... Instance "ractw_2", status READY, has 1 handler(s) for this service... Service "_mgmtdb" has 1 instance(s). Instance "-MGMTDB", status READY, has 1 handler(s) for this service... Service "gimr_dscrep_10" has 1 instance(s). Instance "-MGMTDB", status READY, has 1 handler(s) for this service... Service "ractw.example.com" has 2 instance(s). Instance "ractw_1", status READY, has 1 handler(s) for this service... Instance "ractw_2", status READY, has 1 handler(s) for this service... ... Both instances ractw_1 and ractw_2 are registered for service ractw.example.com at portnumber 1521 ! Now build the connect string using service and scan name [oracle@ractw21 ~]$ sqlplus system/sys@ractw2-scan.ractw2.grid122.example.com:1521/ractw.example.com @v INSTANCE_NUMBER INSTANCE_NAME STATUS HOST_NAME --------------- ---------------- ------------ ---------------------------------------------------------------- 2 ractw_2 OPEN ractw22.example.com [oracle@ractw21 ~]$ sqlplus system/sys@ractw2-scan.ractw2.grid122.example.com:1521/ractw.example.com @v INSTANCE_NUMBER INSTANCE_NAME STATUS HOST_NAME --------------- ---------------- ------------ ---------------------------------------------------------------- 1 ractw_1 OPEN ractw21.example.com - Using the SCAN connect string connect us to different RAC instances on different hosts. - This means our scan setup works fine and connection load balacing takes place
Reference
- Oracle Database 12c Release 2 (12.2) RAC On Oracle Linux 7 Using Virtualbox
- Convert a administrator managed RAC database to policy managed [ 12.2 ]
- Configure Virtualbox Network devices for RAC and Internet Access
- Configure DNS, NTP and DHCP for a mixed RAC/Internet usage
- Bash script to display WWID disk IDs
- Managing Server Pools
- Setup Chrony in a VirtualBox RAC Environment
- Installing Dtrace on OEL 7.3
- Prepare Swap and /u01 Oracle partition
- Setting up ssh on oracle RAC node without password
-
Common cluvfy errors and warnings including first debugging steps
http://www.hhutzler.de/blog/install-rac-12-2-0-1-pm-policy-managed/#Create_and_Verify_User_accounts
Noticed a “typo”
Modify .bashrc scripts for users oracle and grid
1 = Add following lines to “grid” user .bashrc script
2 = Add following lines to “grid” user .bashrc script
I think that it should be;
2 = Add following lines to “oracle” user .bashrc script
Hi dwr,
thx for this info. I’ve just corrected the above text.
Hello.
I have a question. Do the 3 network adapters (.5, .3, and .2) have a DNS and a gateway that you have to enter in the GUI? Or no because they are all Private connects and not Host-only adapter? If they are all Private then where does the outside connection connect from?