Root.sh Fails with Inappropriate ioctl for device


Root.sh Fails with “Adding Clusterware entries to upstart Failed to start oracleohasd,
error: Inappropriate ioctl for device”

Error: During a Grid Infrastructure 11.2.0.4 installation on a Linux x8664 EL6 (or OL6) cluster, root.sh fails with error:


Adding Clusterware entries to upstart
Failed to start oracleohasd,
error: Inappropriate ioctl for device
INT at /data/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 1446.

$GRID_HOME/cfgtoollogs/crsconfig/rootcrs_<node name>.log shows:

20131203
12:42:46: Glob file list =
20131203
12:42:51: Executing cmd: /sbin/restorecon iF
/etc/init/oracleohasd.
conf
20131203
12:42:51: Executing cmd: /sbin/initctl start oracleohasd
20131203
12:42:51: Command output:
> initctl: Unknown job: oracleohasd
>End Command output
20131203
12:42:51: Failed to start oracleohasd,
error: Inappropriate ioctl for device
20131203
12:42:51: Failed to start service ‘ohasd’

Cause :

OS upstart fails to reload the oracleohasd entry automatically. Upstart (a feature from EL6) is an eventbased replacement for the /sbin/init daemon which handles starting of tasks and services.
“initctl list” command shows that no entry exists for “oracleohasd”.

Solution :

1. Force init to reload its configuration via initctl reloadconfiguration command:

# initctl reloadconfiguration
# initctl start oracleohasd
# initctl list |grep oracle
oracleohasd

start/running, process 6855

2. Deconfigure the clusterware:

# $GRID_HOME/crs/install/rootcrs.pl deconfig force verbose

(for Oracle Restart use roothas.pl instead)

3. Rerun root script:

# $GRID_HOME/root.sh

Now root.sh finishes successfully.

references:http://ora10gadmin.blogspot.in/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s