!! OHASD error : When cleanup not done .... !!
[root@uscaav ~]#
[root@uscaav ~]# /etc/init.d/ohasd start
Starting ohasd:
Waiting 10 minutes for filesystem containing /u01/app/oracle/software/bin/crsctl.
Waiting 9 minutes for filesystem containing /u01/app/oracle/software/bin/crsctl.
^C
solution :
1 .check the crs home on /etc/init.d/ohasd and chenge as per the current home
[root@uscaav ~]# cat /etc/init.d/ohasd
#!/bin/sh
#
# Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
#
# ohasd.sbs - Control script for the Oracle HA Services daemon
# This script is invoked by the rc system.
#
# Note:
# For security reason, all cli tools shipped with Clusterware should be
# executed as HAS_USER in init.ohasd and ohasd rc script for SIHA. (See bug
# 9216334 for more details)
#
######### Shell functions #########
# Function : Log message to syslog and console
log_console () {
$ECHO "$*"
$LOGMSG "$*"
}
tolower_host()
{
#If the hostname is an IP address, let hostname
#remain as IP address
H1=`$HOSTN`
len1=`$EXPRN "$H1" : '.*'`
len2=`$EXPRN match $H1 '[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*'`
# Strip off domain name in case /bin/hostname returns
# FQDN hostname
if [ $len1 != $len2 ]; then
H1=`$ECHO $H1 | $CUT -d'.' -f1`
fi
$ECHO $H1 | $TR '[:upper:]' '[:lower:]'
}
# Invoke crsctl as root in case of clusterware, and HAS_USER in case of SIHA.
# Note: Argument with space might be problemactic (my_crsctl 'hello world')
my_crsctl()
{
if [ oracle = "root" ]; then
$CRSCTL $*
else
$SU oracle -c "$CRSCTL $*"
fi
}
###################################
######### Instantiated Variables #########
ORA_CRS_HOME=/u01/app/grid/product/11.2.0.4
export ORA_CRS_HOME
# Definitions
HAS_USER=oracle
SCRBASE=/etc/oracle/scls_scr
PROG="ohasd"
#limits
CRS_LIMIT_CORE=unlimited
CRS_LIMIT_MEMLOCK=unlimited
CRS_LIMIT_OPENFILE=65536
##########################################
[root@uscaav ~]#
[root@uscaav ~]# /etc/init.d/ohasd start
Starting ohasd:
Waiting 10 minutes for filesystem containing /u01/app/oracle/software/bin/crsctl.
Waiting 9 minutes for filesystem containing /u01/app/oracle/software/bin/crsctl.
^C
solution :
1 .check the crs home on /etc/init.d/ohasd and chenge as per the current home
[root@uscaav ~]# cat /etc/init.d/ohasd
#!/bin/sh
#
# Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
#
# ohasd.sbs - Control script for the Oracle HA Services daemon
# This script is invoked by the rc system.
#
# Note:
# For security reason, all cli tools shipped with Clusterware should be
# executed as HAS_USER in init.ohasd and ohasd rc script for SIHA. (See bug
# 9216334 for more details)
#
######### Shell functions #########
# Function : Log message to syslog and console
log_console () {
$ECHO "$*"
$LOGMSG "$*"
}
tolower_host()
{
#If the hostname is an IP address, let hostname
#remain as IP address
H1=`$HOSTN`
len1=`$EXPRN "$H1" : '.*'`
len2=`$EXPRN match $H1 '[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*'`
# Strip off domain name in case /bin/hostname returns
# FQDN hostname
if [ $len1 != $len2 ]; then
H1=`$ECHO $H1 | $CUT -d'.' -f1`
fi
$ECHO $H1 | $TR '[:upper:]' '[:lower:]'
}
# Invoke crsctl as root in case of clusterware, and HAS_USER in case of SIHA.
# Note: Argument with space might be problemactic (my_crsctl 'hello world')
my_crsctl()
{
if [ oracle = "root" ]; then
$CRSCTL $*
else
$SU oracle -c "$CRSCTL $*"
fi
}
###################################
######### Instantiated Variables #########
ORA_CRS_HOME=/u01/app/grid/product/11.2.0.4
export ORA_CRS_HOME
# Definitions
HAS_USER=oracle
SCRBASE=/etc/oracle/scls_scr
PROG="ohasd"
#limits
CRS_LIMIT_CORE=unlimited
CRS_LIMIT_MEMLOCK=unlimited
CRS_LIMIT_OPENFILE=65536
##########################################