Visit Counter

Wednesday, November 8, 2017

Oracle 12c Grid Installation Failed (SCAN name "rac01-scan" failed to resolve)


While installing Oracle 12c GI software...getting error










$ cat /ora/oracle/app/oraInventory/logs/installActions2014-11-08_08-36AM.log


NFO: ERROR:
INFO: PRVG-1101 : SCAN name "rac01-scan" failed to resolve
INFO: ERROR:
INFO: PRVF-4657 : Name resolution setup check for "rac01-scan" (IP address: 172.10.13.46) failed
INFO: ERROR:
INFO: PRVF-4657 : Name resolution setup check for "rac01-scan" (IP address: 172.10.13.47) failed
INFO: ERROR:
INFO: PRVF-4657 : Name resolution setup check for "rac01-scan" (IP address: 172.10.13.45) failed
INFO: ERROR:
INFO: PRVF-4664 : Found inconsistent name resolution entries for SCAN name "rac01-scan"



Skip above failure...just select next....finish



Verify that the cluster services are started properly on both nodes.

bash-4.1$ ./srvctl status nodeapps
VIP rac01-vip.localhost is enabled
VIP rac01-vip.localhost is running on node: rac01
VIP rac02-vip.localhost is enabled
VIP rac02-vip.localhost is running on node: rac02
Network is enabled
Network is running on node: rac01
Network is running on node: rac02
ONS is enabled
ONS daemon is running on node: rac01
ONS daemon is running on node: rac02
bash-4.1$


This concludes the 12c Grid infrastructure installation. Next step is an installation of database software and creating RAC database.




Tuesday, November 7, 2017

Oracleasm deletedisk diskname failed

[root@rac01 init.d]# oracleasm deletedisk ASMD1
Clearing disk header: failed
Unable to clear disk "ASMD1"
[root@rac01 init.d]# oracleasm deletedisk ASMD2
Clearing disk header: failed
Unable to clear disk "ASMD2"
[root@rac01 init.d]# oracleasm deletedisk ASMD2
Clearing disk header: failed
Unable to clear disk "ASMD2"


Solution Description
The issue is the disk header cannot be overwritten by the oracleasm command which is written by the previous commands. For this, you have to manually overwrite the header information by the OSdd command.


Step 1: find out the device information using blkid command.
[

[root@rac01 init.d]#
[root@rac01 init.d]# blkid | grep oracleasm
/dev/sdb1: LABEL="ASMD1" TYPE="oracleasm"
/dev/sdc1: LABEL="ASMD2" TYPE="oracleasm"
/dev/sdd1: LABEL="ASMD3" TYPE="oracleasm"
[root@rac01 init.d]#



Step 2: overwrite the header with null value using dd command. Or we can say clear the device header manually
[root@rac01 init.d]# dd if=dev/zero of=/dev/sdc1 bs=1024 count=100

100+0 records in
100+0 records out
102400 bytes (102 kB) copied, 0.0161951 s, 6.3 MB/s

[root@rac01 init.d]# dd if=dev/zero of=/dev/sdd1 bs=1024 count=100

[root@rac01 init.d]# dd if=dev/zero of=/dev/sdb1 bs=1024 count=100


Step 3: Sync the disk and delete the disk using oracleasm command
[dev]# /sbin/partprobe /dev/sdb1
[dev]# oracleasm deletedisk OCR_VOTE                           Disk "OCR_VOTE" defines an unmarked device


[root@rac01 init.d]# 


[root@rac01 init.d]# /etc/init.d/oracleasm deletedisk ASMD1
[root@rac01 init.d]# /etc/init.d/oracleasm deletedisk ASMD2
[root@rac01 init.d]# /etc/init.d/oracleasm deletedisk ASMD3




I checked the asm log

# cat /var/log/oracleasm

Unable to open device "/dev/sdb1": Device ot resource busy....

But when I create new ASM disk getting an error....so I restarted the virtual machine then ASM creation issue was resolved.


[root@localhost Desktop]# /etc/init.d/oracleasm createdisk Disk1 /dev/sda6

Marking disk "VOL1" as an ASM disk: [FAILED]







Sunday, November 5, 2017

Java VM: Java HotSpot(TM) 64-Bit Server VM (20.12-b01 mixed mode linux-amd64 compressed


While installing Oracle12c Grid software getting below error.



# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000003bb7c14d70, pid=10336, tid=140026722985744
#
# JRE version: 6.0_37-b06
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.12-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [ld-linux-x86-64.so.2+0x14d70]
#
# An error report file with more information is saved as:
# /tmp/hs_err_pid10336.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
2017/11/05 16:06:31 CLSRSC-184: Configuration of ASM failed

2017/11/05 16:06:32 CLSRSC-258: Failed to configure and start ASM

Died at /ora/oracle/app/grid/crs/install/crsinstall.pm line 1976.
The command '/ora/oracle/app/grid/perl/bin/perl -I/ora/oracle/app/grid/perl/lib -I/ora/oracle/app/grid/crs/install /ora/oracle/app/grid/crs/install/rootcrs.pl ' execution failed
[root@rac01 grid]#




Solution:

# export LD_BIND_NOW=1

Then I run root.sh script in each node...It was successfully done.







Thursday, November 2, 2017

The avahi-Daemon service must be disabled.



While installing  Oracle 12c Grid Software Geeting error.


Checking daemon "avahi-daemon" is not configured and running daemon not configured check
failed for process "avahi-daemon"
check failed on nodes: rac01,rac02




Stop on both cluster nodes.

rac01

[root@rac01]# service avahi-daemon status
avahi-daemon (pid 1132) is running....
[root@rac01]#service avahi-daemon stop
shutting down Avahi Daemon:                       [OK]
[root@rac01]#
[root@rac01]#/sbin/chkconfig avahi-daemon off
[root@rac01]#

rac02



[root@rac02]# service avahi-daemon status
avahi-daemon (pid 1144) is running....
[root@rac02]#service avahi-daemon stop
shutting down Avahi Daemon:                       [OK]
[root@rac02]#
[root@rac02]#/sbin/chkconfig avahi-daemon off
[root@rac02]#

Package: cvuqdisk-1.0.9-1.rpm



Check Failed on Nodes [rac01,rac02]


Goto Oracle 12c Grid software directory

Package location : cvuqdisk-1.0.9-1.rpm


/ora/oracle/Desktop/Grid/rpm/cvuqdisk-1.0.9-1.rpm


Install it on both cluster nodes

INS-40927 Interfaces with common subnets that have different names

While Install GRID 12c software getting below error.




INS-40927 Interfaces with common subnets that have different names







Question:  How do I fix the INS-40927 error? I am getting the "INS-40927: Interfaces with common subnets have different names on different nodes." error when trying to install Oracle 11g r2 Grid control:

 


Answer: The oerr utility says this for the INS-40927 error:
INS-40927: Interfaces with common subnets have different names on different nodes.
Cause: The following nodes have interfaces in common subnets that have different interface names: string
Action: Ensure that the names of interfaces defined on common subnets are the same on all cluster member nodes

All interfaces have to use the same name. The interface (e.g. a public LAN), must have the same name on all nodes, same naming ruke for the interconnect. 


Solution:

First of all, stop all virtual machines. Goto virtual machine setting and remove network cards and add one by one in each virtual machine and startup machines.








PRVF-5410 check of common NTP Time Server failed


Do it on all cluster nodes


Either configure NTP, or make sure it is not configured so the Oracle Cluster Time Synchronization Service (ctssd) can synchronize the times of the RAC nodes. In this case we will deconfigure NTP.
# service ntpd stop
Shutting down ntpd:                                        [FAILED]
# chkconfig ntpd off
# mv /etc/ntp.conf /etc/ntp.conf.orig
# rm /var/run/ntpd.pid