Oracle 11g RAC ohasd failed to start at/u01/APP/11.2.0/GRID/CRS/install/rootcrs. pl line 443 Solution

Source: Internet
Author: User

I. Problem Description

Install RAC of 11.2.0.1 on Oracle Linux 6.1 and run the root. Sh script when installing grid. The error is as follows:

 

[Root @ Rac1 bin] #/u01/APP/11.2.0/GRID/root. Sh

Running Oracle 11g root. Sh script...

 

The following environment variables are Setas:

Oracle_owner = Oracle

ORACLE_HOME =/u01/APP/11.2.0/Grid

 

Enter the full pathname of the local bindirectory: [/usr/local/bin]:

Copying dbhome to/usr/local/bin...

Copying oraenv to/usr/local/bin...

Copying coraenv to/usr/local/bin...

 

Entries will be added to the/etc/oratabfile as needed

Database Configuration assistant when adatabase is created

Finished running generic part of root. shscript.

Now product-specific root actions will beperformed.

2012-06-27 10: 31: 18: parsing the Host Name

2012-06-27 10: 31: 18: checking for superuser privileges

2012-06-27 10: 31: 18: user has super userprivileges

Using configuration parameter file:/u01/APP/11.2.0/GRID/CRS/install/crsconfig_params

Creating trace directory

Local add Mode

Creating OCR keys for user 'root', privgrp 'root '..

Operation successful.

Root wallet

Root wallet Cert

Root Cert Export

Peer wallet

Profile reader wallet

Pawallet

Peer wallet keys

Pawallet keys

Peer Cert request

Pacert request

Peer Cert

Pacert

Peer root Cert TP

Profile reader root Cert TP

Paroot Cert TP

Peer PA Cert TP

Papeer Cert TP

Profile reader PA Cert TP

Profile reader peer Cert TP

Peer user Cert

Pauser Cert

Adding daemon to inittab

CRS-4124: Oracle High Availability Services startup failed.

CRS-4000: Command start failed, or completed with errors.

Ohasd failed to start: Inappropriate IOCTL for Device

Ohasd failed to start at/u01/APP/11.2.0/GRID/CRS/install/rootcrs. pl line 443.

 

It is said that this error only occurs in Linux 6.1 and the Oracle version is 11.2.0.1. This problem does not occur in 11.2.0.3, the solution is to generate the file/var/tmp /. after the Oracle/npohasd file is installed, root immediately executes the command:

/Bin/dd If =/var/tmp/. Oracle/npohasd of =/dev/nullbs = 1024 COUNT = 1

 

 

Ii. Clear installation history

 

There are two methods: 1. Clear grid, 2, clear root. Sh.

 

2.1 clear Grid

Clear the grid before we proceed. For detailed steps, refer:

RAC uninstall description

Http://blog.csdn.net/tianlesoftware/article/details/5892225

 

Run the following command on all nodes:

Rm-RF/etc/Oracle /*

Rm-RF/etc/init. d/init.css d

Rm-RF/etc/init. d/init. CRS

Rm-RF/etc/init. d/init. crsd

Rm-RF/etc/init. d/init. evmd

Rm-RF/etc/rc2.d/k96init. CRS

Rm-RF/etc/rc2.d/s96init. CRS

Rm-RF/etc/rc3.d/k96init. CRS

Rm-RF/etc/rc3.d/s96init. CRS

Rm-RF/etc/rc5.d/k96init. CRS

Rm-RF/etc/rc5.d/s96init. CRS

Rm-RF/etc/Oracle/scls_scr

Rm-RF/etc/inittab. CRS

 

Rm-RF/var/tmp/. Oracle /*

Or

Rm-RF/tmp/. Oracle /*

 

Remove the OCR. Loc file, usually in the/etc/Oracle directory:

[Root @ Rac1 ~] # Cd/etc/Oracle

You have new mail in/var/spool/mail/root

[Root @ Rac1 Oracle] # ls

Lastgasp OCR. Loc OCR. Loc. orig OLR. Loc OLR. Loc. orig oprocd

[Root @ Rac1 Oracle] # rm-rf ocr .*

 

Format the ASM bare device:

[Root @ Rac1 utl] # ll/dev/ASM *

BRW-RW ---- 1 Oracle DBA 8, 17 Jun 27/dev/asm-disk1

BRW-RW ---- 1 Oracle DBA 8, 33 Jun 27/dev/asm-disk2

BRW-RW ---- 1 Oracle DBA 8, 49 Jun 27/dev/asm-disk3

BRW-RW ---- 1 Oracle DBA 8, 65 Jun 27/dev/asm-disk4

 

Dd If =/dev/Zero of =/dev/asm-disk1 BS = 1 mcount = 256

Dd If =/dev/Zero of =/dev/asm-disk2 BS = 1 mcount = 256

Dd If =/dev/Zero of =/dev/asm-disk3 BS = 1 mcount = 256

Dd If =/dev/Zero of =/dev/asm-disk4 BS = 1 mcount = 256

 

Remove the/tmp/cvu * directory:

[Root @ Rac1 ~] # Rm-RF/tmp/cvu *

 

Delete the Oracle information and oracle_base directory under the/var/opt directory:

 

# Rm-RF/data/Oracle

# Rm-RF/var/opt/Oracle

 

Delete the settings in the/usr/local/bin directory:

# Rm-RF/usr/local/bin/dbhome

# Rm-RF/usr/local/bin/oraenv

# Rm-RF/usr/local/bin/coraenv

 

Remove the grid installation directory and recreate it:

[Root @ Rac1 Oracle] # rm-RF/u01/APP

 

[Root @ rac2 u01] # mkdir-P/u01/APP/11.2.0/Grid

[Root @ rac2 u01] # mkdir-P/u01/APP/Oracle/product/11.2.0/db_1

[Root @ rac2 u01] # chown-r ORACLE: oinstall/u01

[Root @ rac2 u01] # chmod-r775/u01/

 

2.2 clear root. Sh records

 

Use the rootcrs. pl Command to clearly record the data. The command is as follows:

 

[Root @ Rac1 Oracle] #/u01/APP/11.2.0/GRID/CRS/install/rootcrs. pl-deconfig-verbose-Force

2012-06-27 14: 30: 17: parsing the Host Name

2012-06-27 14: 30: 17: checking for superuserprivileges

2012-06-27 14: 30: 17: user has superuserprivileges

Using configuration parameterfile:/u01/APP/11.2.0/GRID/CRS/install/crsconfig_params

Failure to execute: Inappropriate ioctlfordevice for command/u01/APP/11.2.0/GRID/bin/crsctl check cluster-N Rac1

Failure to execute: Inappropriate ioctlfordevice for command/u01/APP/11.2.0/GRID/bin/crsctl check cluster-N Rac1

Usage: srvctl <command> <Object> [<Options>]

Commands: Enable | disable | START | stop | status | add | remove | modify | getenv | setenv | unsetenv | config

Objects: Database | service | ASM | diskgroup | listener | home | ons | eons

For detailed help on each command andobjectand its options use:

Srvctl <command>-H or

Srvctl <command> <Object>-H

PRKO-2012: nodeapps object is notsupportedin Oracle restart

SH:/u01/APP/11.2.0/GRID/bin/clsecho: nosuch file or directory

Can 'texec "/u01/APP/11.2.0/GRID/bin/clsecho": no such file or directoryat/u01/APP/11.2.0/GRID/lib/acfslib. PM line 937.

Failure to execute: Inappropriate ioctlfordevice for command/u01/APP/11.2.0/GRID/bin/crsctl check cluster-N Rac1

You must kill CRS processes or rebootthesystem to properly

Cleanup the processes started byoracleclusterware

2560 + 0 records in

2560 + 0 records out

10485760 bytes (10 MB) Copied, 0.0373402 S, 281 MB/S

Error: Package cvuqdisk Is Not Installed

Successfully deconfigured oracleclusterwarestack on this node

You have new mail in/var/spool/mail/root

[Root @ Rac1 Oracle] #

 

 

 

Iii. reinstall and handle problems

 

Run/u01/APP/11.2.0/GRID/root. 2 root shell windows are opened during the sh script, one is used to execute the script, and the other is used to monitor/var/tmp /. the Oracle/npohasd file uses root to immediately execute the command:

/Bin/ddif =/var/tmp/. Oracle/npohasd of =/dev/null BS = 1024 COUNT = 1

 

 

[Root @ Rac1 Oracle] #/u01/APP/11.2.0/GRID/root. Sh

Running Oracle 11g root. Sh script...

 

The following environment variables are Setas:

Oracle_owner = Oracle

ORACLE_HOME =/u01/APP/11.2.0/Grid

 

Enter the full pathname of the local bindirectory: [/usr/local/bin]:

The file "dbhome" already existsin/usr/local/bin. Overwrite it? (Y/N)

[N]:

The file "oraenv" already existsin/usr/local/bin. Overwrite it? (Y/N)

[N]:

The file "coraenv" already existsin/usr/local/bin. Overwrite it? (Y/N)

[N]:

 

Entries will be added to the/etc/oratabfile as needed

Database Configuration assistant when adatabase is created

Finished running generic part of root. shscript.

Now product-specific root actions will beperformed.

2012-06-27 14: 32: 21: parsing the Host Name

2012-06-27 14: 32: 21: checking for superuser privileges

2012-06-27 14: 32: 21: user has super userprivileges

Using configuration parameter file:/u01/APP/11.2.0/GRID/CRS/install/crsconfig_params

Local add Mode

Creating OCR keys for user 'root', privgrp 'root '..

Operation successful.

Rootwallet

Root wallet Cert

Root Cert Export

Peer wallet

Profile reader wallet

Pawallet

Peer wallet keys

Pawallet keys

Peer Cert request

Pacert request

Peer Cert

Pacert

Peer root Cert TP

Profile reader root Cert TP

Paroot Cert TP

Peer PA Cert TP

Papeer Cert TP

Profile reader PA Cert TP

Profile reader peer Cert TP

Peer user Cert

Pauser Cert

 

-------- Note -------------

When we see that the root. Sh command is executed here, we can constantly refresh our dd command in another window. If there is a better way, we can also perform this operation here:

[Root @ Rac1 ~] #/Bin/ddif =/var/tmp/. Oracle/npohasd of =/dev/null BS = 1024 COUNT = 1

/Bin/DD: Opening '/var/tmp/. Oracle/npohasd': no such file or directory

[Root @ Rac1 ~] #/Bin/ddif =/var/tmp/. Oracle/npohasd of =/dev/null BS = 1024 COUNT = 1

/Bin/DD: Opening '/var/tmp/. Oracle/npohasd': no such file or directory

[Root @ Rac1 ~] #/Bin/ddif =/var/tmp/. Oracle/npohasd of =/dev/null BS = 1024 COUNT = 1

/Bin/DD: Opening '/var/tmp/. Oracle/npohasd': no such file or directory

[Root @ Rac1 ~] #/Bin/ddif =/var/tmp/. Oracle/npohasd of =/dev/null BS = 1024 COUNT = 1

/Bin/DD: Opening '/var/tmp/. Oracle/npohasd': no such file or directory

[Root @ Rac1 ~] #/Bin/ddif =/var/tmp/. Oracle/npohasd of =/dev/null BS = 1024 COUNT = 1

/Bin/DD: Opening '/var/tmp/. Oracle/npohasd': no such file or directory

You have new mail in/var/spool/mail/root

[Root @ Rac1 ~] #/Bin/ddif =/var/tmp/. Oracle/npohasd of =/dev/null BS = 1024 COUNT = 1

-- As long as the DD command is successfully executed, our root. Sh can be successfully completed.

 

-------- End --------------

 

 

Adding daemon to inittab

CRS-4123: Oracle High Availability serviceshas been started.

Ohasd is starting

Advm/ACFs is not supported onoraclelinux-release-6Server-1.0.2.x86_64

 

 

 

CRS-2672: attempting to start 'ora. gipcd 'on 'rac1'

CRS-2672: attempting to start 'ora. mdnsd' on 'rac1'

CRS-2676: Start of 'ora. gipcd' on 'rac1' succeeded

CRS-2676: Start of 'ora. mdnsd' on 'rac1' succeeded

CRS-2672: attempting to start 'ora. gpnpd 'on 'rac1'

CRS-2676: Start of 'ora. gpnpd 'on 'rac1' succeeded

CRS-2672: attempting to start'ora.css dmonitor 'on 'rac1'

CRS-2676: Start of 'ora.css dmonitor 'on 'rac1' succeeded

CRS-2672: attempting to start 'ora.css d' on 'rac1'

CRS-2672: attempting to start 'ora. diskmon 'on 'rac1'

CRS-2676: Start of 'ora. diskmon' on 'rac1' succeeded

CRS-2676: Start of 'ora.css d' on 'rac1' succeeded

CRS-2672: attempting to start 'ora. ctssd 'on 'rac1'

CRS-2676: Start of 'ora. ctssd 'on 'rac1' succeeded

 

ASM created and started successfully.

 

Diskgroup data created successfully.

 

Clscfg:-install mode specified

Successfully accumulated necessary ocrkeys.

Creating OCR keys for user 'root', privgrp 'root '..

Operation successful.

CRS-2672: attempting to start 'ora. crsd' on 'rac1'

CRS-2676: Start of 'ora. crsd' on 'rac1' succeeded

CRS-4256: Updating the profile

Successful addition of voting disk372c42f3b2bc4f66bf8b52d2526824e3.

Successfully replaced voting disk groupwith + data.

CRS-4256: Updating the profile

CRS-4266: voting file (s) successfullyreplaced

# State file Universal ID file name disk group

------------------------------------------

1. Online 372c42f3b2bc4f66bf8b52d25261_e3 (/dev/asm-disk1) [Data]

Located 1 voting disk (s ).

CRS-2673: attempting to stop 'ora. crsd' on 'rac1'

CRS-2677: Stop of 'ora. crsd' on 'rac1' succeeded

CRS-2673: attempting to stop 'ora. ASM 'on 'rac1'

CRS-2677: Stop of 'ora. ASM 'on 'rac1' succeeded

CRS-2673: attempting to stop 'ora. ctssd 'on 'rac1'

CRS-2677: Stop of 'ora. ctssd 'on 'rac1' succeeded

CRS-2673: attempting to stop'ora.css dmonitor 'on 'rac1'

CRS-2677: Stop of 'ora.css dmonitor 'on 'rac1' succeeded

CRS-2673: attempting to stop 'ora.css d' on 'rac1'

CRS-2677: Stop of 'ora.css d' on 'rac1' succeeded

CRS-2673: attempting to stop 'ora. gpnpd 'on 'rac1'

CRS-2677: Stop of 'ora. gpnpd 'on 'rac1' succeeded

CRS-2673: attempting to stop 'ora. gipcd 'on 'rac1'

CRS-2677: Stop of 'ora. gipcd' on 'rac1' succeeded

CRS-2673: attempting to stop 'ora. mdnsd' on 'rac1'

CRS-2677: Stop of 'ora. mdnsd' on 'rac1' succeeded

CRS-2672: attempting to start 'ora. mdnsd' on 'rac1'

CRS-2676: Start of 'ora. mdnsd' on 'rac1' succeeded

CRS-2672: attempting to start 'ora. gipcd 'on 'rac1'

CRS-2676: Start of 'ora. gipcd' on 'rac1' succeeded

CRS-2672: attempting to start 'ora. gpnpd 'on 'rac1'

CRS-2676: Start of 'ora. gpnpd 'on 'rac1' succeeded

CRS-2672: attempting to start'ora.css dmonitor 'on 'rac1'

CRS-2676: Start of 'ora.css dmonitor 'on 'rac1' succeeded

CRS-2672: attempting to start 'ora.css d' on 'rac1'

CRS-2672: attempting to start 'ora. diskmon 'on 'rac1'

CRS-2676: Start of 'ora. diskmon' on 'rac1' succeeded

CRS-2676: Start of 'ora.css d' on 'rac1' succeeded

CRS-2672: attempting to start 'ora. ctssd 'on 'rac1'

CRS-2676: Start of 'ora. ctssd 'on 'rac1' succeeded

CRS-2672: attempting to start 'ora. ASM 'on 'rac1'

CRS-2676: Start of 'ora. ASM 'on 'rac1' succeeded

CRS-2672: attempting to start 'ora. crsd' on 'rac1'

CRS-2676: Start of 'ora. crsd' on 'rac1' succeeded

CRS-2672: attempting to start 'ora. evmd 'on 'rac1'

CRS-2676: Start of 'ora. evmd 'on 'rac1' succeeded

CRS-2672: attempting to start 'ora. ASM 'on 'rac1'

CRS-2676: Start of 'ora. ASM 'on 'rac1' succeeded

CRS-2672: attempting to start 'ora. Data. DG 'on 'rac1'

CRS-2676: Start of 'ora. Data. DG 'on 'rac1' succeeded

 

Rac1 14:39:25/u01/APP/11.2.0/GRID/CDATA/Rac1/backup_20120627_143925.olr

Preparing packages for installation...

Cvuqdisk-1.0.7-1

Configure Oracle grid infrastructure for acluster... succeeded

Updating inventory properties forclusterware

Starting Oracle universal installer...

 

Checking swap space: must be greater than500 mb. Actual 969 MB passed

The inventory pointer is located at/etc/orainst. Loc

The inventory is located at/u01/APP/orainventory

'Updatenodelist' was successful.

[Root @ Rac1 Oracle] #

 

Here, root. Sh is successfully executed, and the method is feasible.

 

 

Note:

Run the DD command to run root. Sh on all nodes.

 

 

Bytes -------------------------------------------------------------------------------------------------------

All rights reserved. reprinted articles are allowed, but source addresses must be indicated by links. Otherwise, the documents will be held legally responsible!

Skype: tianlesoftware

QQ: tianlesoftware@gmail.com

Email: tianlesoftware@gmail.com

Blog: http://www.tianlesoftware.com

WEAVER: http://weibo.com/tianlesoftware

Twitter: http://twitter.com/tianlesoftware

Facebook: http://www.facebook.com/tianlesoftware

LinkedIn: http://cn.linkedin.com/in/tianlesoftware

 

 

------- Add a group to describe the relationship between Oracle tablespace and data files in the remarks section. Otherwise, reject the application ----

Dba1 group: 62697716 (full); dba2 group: 62697977 (full) dba3 group: 62697850 (full)

Super DBA group: 63306533 (full); dba4 group: 83829929 dba5 group: 142216823

Dba6 group: 158654907 dba7 group: 172855474 DBA group: 104207940

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.