redhat6安裝oracle11gr2出現rootcrs.pl line 443 解決辦法
/rootcrs.pl line 443 解決辦法
Oracle 11g RAC ohasd failed to start at /u01/app/11.2.0/grid/crs/install/rootcrs.pl line 443 解決方法
一.問題描述
在Oracle Linux 6.1 上安裝11.2.0.1 的RAC,在安裝grid時執行root.sh 指令碼,報錯,如下:
[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 by
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.
據說這個錯誤只在linux 6.1下,且Oracle 版本為11.2.0.1的時候出現,在11.2.0.3的時候就不會有這種問題,而解決方法就是在生成了檔案/var/tmp/.oracle/npohasd檔案後,root立即執行命令:
/bin/dd if=/var/tmp/.oracle/npohasd of=/dev/nullbs=1024 count=1
二.清除安裝歷史記錄
這裡有兩種方法:1.清除grid,2,清除root.sh.
2.1 清除GRID
在我們繼續執行之前先清除GRID,具體步驟參考:
RAC 解除安裝 說明
http://blog.csdn.net/tianlesoftware/article/details/5892225
在所有節點執行:
rm –rf /etc/oracle/*
rm -rf /etc/init.d/init.cssd
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/*
移除ocr.loc 檔案,通常在/etc/oracle 目錄下:
[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.*
格式化ASM 裸裝置:
[root@rac1 utl]# ll /dev/asm*
brw-rw---- 1 oracle dba 8, 17 Jun 27 09:38 /dev/asm-disk1
brw-rw---- 1 oracle dba 8, 33 Jun 27 09:38/dev/asm-disk2
brw-rw---- 1 oracle dba 8, 49 Jun 27 09:38/dev/asm-disk3
brw-rw---- 1 oracle dba 8, 65 Jun 27 09:38/dev/asm-disk4
dd if=/dev/zero of=/dev/asm-disk1 bs=1Mcount=256
dd if=/dev/zero of=/dev/asm-disk2 bs=1Mcount=256
dd if=/dev/zero of=/dev/asm-disk3 bs=1Mcount=256
dd if=/dev/zero of=/dev/asm-disk4 bs=1Mcount=256
移除/tmp/CVU* 目錄:
[root@rac1 ~]# rm -rf /tmp/CVU*
刪除/var/opt目錄下的Oracle資訊和ORACLE_BASE目錄:
# rm -rf /data/oracle
# rm -rf /var/opt/oracle
刪除/usr/local/bin目錄下的設定:
# rm -rf /usr/local/bin/dbhome
# rm -rf /usr/local/bin/oraenv
# rm -rf /usr/local/bin/coraenv
移除Grid 安裝目錄,並重建:
[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 清除root.sh 記錄
使用rootcrs.pl 命令來清楚記錄,命令如下:
[root@rac1 oracle]# /u01/app/grid/product/11.2.0/crs_1/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.0373402s,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]#
注:解除安裝這塊,經過測試,還是使用oracle的指令碼解除安裝比較好
三.重新安裝並處理問題
在執行/u01/app/11.2.0/grid/root.sh指令碼的時候開2個root的shell視窗,一個用來執行指令碼,一個用來監控/var/tmp/.oracle/npohasd檔案,看到就用root立即執行命令:
/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 by
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
--------注意-------------
看到root.sh 執行到這裡的時候,我們就可以在另一個視窗不斷的刷我們的dd命令了,如果有更好的方法也可以,我這裡是這麼操作的:
[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
--只要dd命令成功執行,我們的root.sh 就可以順利完成了。
--------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.cssdmonitor' on 'rac1'
CRS-2676: Start of 'ora.cssdmonitor' on'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssd' 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.cssd' 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 disk372c42f3b2bc4f66bf8b52d2526104e3.
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 372c42f3b2bc4f66bf8b52d2526104e3(/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.cssdmonitor' on 'rac1'
CRS-2677: Stop of 'ora.cssdmonitor' on'rac1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on'rac1'
CRS-2677: Stop of 'ora.cssd' 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.cssdmonitor' on 'rac1'
CRS-2676: Start of 'ora.cssdmonitor' on'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssd' 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.cssd' 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 2012/06/27 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]#
這裡root.sh成功執行,方法可行。
注意:
在所有節點執行root.sh 都需要使用dd命令
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7490392/viewspace-1848481/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 安裝CentOS7出現dracut:/#……time解決辦法CentOS
- 安裝VMware出現“Error 1406”的解決辦法Error
- mysql安裝出現 conflicts with mysql*的解決辦法MySql
- 安裝MySql出現Error Nr.1045的解決辦法MySqlError
- hp-unix 安裝JDK出現異常,以及解決辦法JDK
- 關於IIS安裝後出現500錯誤的解決辦法
- QT6安裝Android SDK出現"Android SDK Command-line Tools run"出錯解決辦法QTAndroid
- python3.9安裝wordcloud出錯解決辦法PythonCloud
- Fedora 8下永中Office安裝出錯的解決辦法
- 使用pip install安裝.whl檔案出現is not a supported wheel on this platform解決辦法Platform
- puppeteer 安裝失敗的解決辦法
- yum安裝軟體時,出現"No package XXX available"的解決辦法PackageAI
- 【python】pip安裝庫時出現Read timed out.解決辦法Python
- composer 安裝擴充套件出現 "PHP Fatal error: Allowed memory ..."的解決辦法套件PHPError
- 安裝校園網路登入系統後出現問題解決辦法
- 安裝ionic 報錯 安裝canvas報錯 解決辦法Canvas
- bugzilla更新出現perl模組無法安裝問題解決辦法
- git出現Permission denied的解決辦法Git
- scp出現錯誤的解決辦法
- stm出現Flash Timeout解決辦法
- Live mesh 在xp無法安裝的解決辦法
- vs 擴充套件無法安裝的解決辦法套件
- Ubuntu20.04安裝MySQL8.0時出現依賴錯誤解決辦法UbuntuMySql
- npm 使用安裝超時的解決辦法NPM
- 不能安裝react-redux的解決辦法ReactRedux
- npm 安裝 chromedriver 失敗的解決辦法NPMChrome
- 安裝sysbench過程報錯,解決辦法
- Xamarin提示安裝包錯誤解決辦法
- redhat6安裝flashplayerRedhat
- Linux 出現 su: Authentication failure 解決辦法LinuxAI
- 伺服器iis出現假死解決辦法伺服器
- Mysql出現連線錯誤解決辦法MySql
- nvidia安裝程式無法繼續的解決辦法
- linux安裝pytorch出現torch.cuda.is_available() False的解決辦法彙總LinuxPyTorchAIFalse
- man出錯解決辦法
- python 安裝pandas失敗的解決辦法Python
- 安裝ORACLE db /tmp空間不足解決辦法Oracle
- Redhat區域網安裝的解決辦法(轉)Redhat