GRID软件已安装成功,但是到了最后一步shroot.sh时报错了。[root@rac1~]#u01app11.2.0gridcrsinstallroothas.pl-decon
GRID软件已安装成功,但是到了最后一步sh root.sh时报错了。[root@rac1 ~]# /u01/app/11.2.0/grid/crs/install/roothas.pl -deconfig -force -verbose
2016-07-06 06:44:10: Checking for super user privileges
2016-07-06 06:44:10: User has super user privileges
2016-07-06 06:44:10: Parsing the host name
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
CRS-4047: No Oracle Clusterware components configured.
CRS-4000: Command Stop failed, or completed with errors.
CRS-4047: No Oracle Clusterware components configured.
CRS-4000: Command Delete failed, or completed with errors.
CRS-4047: No Oracle Clusterware components configured.
CRS-4000: Command Stop failed, or completed with errors.
You must kill ohasd processes or reboot the system to properly
cleanup the processes started by Oracle clusterware
ACFS-9200: Supported
acfsroot: ACFS-9313: No ADVM/ACFS installation detected.
Either /etc/oracle/olr.loc does not exist or is not readable
Make sure the file exists and it has read and execute access
/bin/dd: opening `': No such file or directory
Successfully deconfigured Oracle Restart stack
====================================================
root@rac1 ~]# sh /u01/app/11.2.0/grid/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/app/11.2.0/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n)
[n]: y
Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
2016-07-06 06:45:58: Parsing the host name
2016-07-06 06:45:58: Checking for super user privileges
2016-07-06 06:45:58: User has super user privileges
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.
Adding daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
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-2500: Cannot stop resource 'ora.crsd' as it is not running
CRS-4000: Command Stop failed, or completed with errors.
Command return code of 1 (256) from command: /u01/app/11.2.0/grid/bin/crsctl stop resource ora.crsd -init
Stop of resource "ora.crsd -init" failed
Failed to stop CRSD
CRS-2500: Cannot stop resource 'ora.asm' as it is not running
CRS-4000: Command Stop failed, or completed with errors.
Command return code of 1 (256) from command: /u01/app/11.2.0/grid/bin/crsctl stop resource ora.asm -init
Stop of resource "ora.asm -init" failed
Failed to stop ASM
CRS-2500: Cannot stop resource 'ora.ctssd' as it is not running
CRS-4000: Command Stop failed, or completed with errors.
Command return code of 1 (256) from command: /u01/app/11.2.0/grid/bin/crsctl stop resource ora.ctssd -init
Stop of resource "ora.ctssd -init" failed
Failed to stop OCTSSD
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
Initial cluster configuration failed. See /u01/app/11.2.0/grid/cfgtoollogs/crsconfig/rootcrs_rac1.log for details
=========================日志
2016-07-06 06:46:01: Registering ohasd
2016-07-06 06:46:01: init file = /u01/app/11.2.0/grid/crs/init/init.ohasd
2016-07-06 06:46:01: Copying file /u01/app/11.2.0/grid/crs/init/init.ohasd to /etc/init.d directory
2016-07-06 06:46:01: Setting init.ohasd permission in /etc/init.d directory
2016-07-06 06:46:01: init file = /u01/app/11.2.0/grid/crs/init/ohasd
2016-07-06 06:46:01: Copying file /u01/app/11.2.0/grid/crs/init/ohasd to /etc/init.d directory
2016-07-06 06:46:01: Setting ohasd permission in /etc/init.d directory
2016-07-06 06:46:01: Removing "/etc/rc.d/rc3.d/S96ohasd"
2016-07-06 06:46:01: Removing file /etc/rc.d/rc3.d/S96ohasd
2016-07-06 06:46:01: Failure with return code 1 from command rm /etc/rc.d/rc3.d/S96ohasd
2016-07-06 06:46:01: Failed to remove file:
2016-07-06 06:46:01: Creating a link "/etc/rc.d/rc3.d/S96ohasd" pointing to /etc/init.d/ohasd
2016-07-06 06:46:01: Removing "/etc/rc.d/rc5.d/S96ohasd"
2016-07-06 06:46:01: Removing file /etc/rc.d/rc5.d/S96ohasd
2016-07-06 06:46:01: Failure with return code 1 from command rm /etc/rc.d/rc5.d/S96ohasd
2016-07-06 06:46:01: Failed to remove file:
2016-07-06 06:46:01: Creating a link "/etc/rc.d/rc5.d/S96ohasd" pointing to /etc/init.d/ohasd
2016-07-06 06:46:01: Removing "/etc/rc.d/rc0.d/K19ohasd"
2016-07-06 06:46:01: Removing file /etc/rc.d/rc0.d/K19ohasd
2016-07-06 06:46:01: Failure with return code 1 from command rm /etc/rc.d/rc0.d/K19ohasd
2016-07-06 06:46:01: Failed to remove file:
2016-07-06 06:46:01: Creating a link "/etc/rc.d/rc0.d/K19ohasd" pointing to /etc/init.d/ohasd
2016-07-06 06:46:01: Removing "/etc/rc.d/rc1.d/K19ohasd"
2016-07-06 06:46:01: Removing file /etc/rc.d/rc1.d/K19ohasd
2016-07-06 06:46:01: Failure with return code 1 from command rm /etc/rc.d/rc1.d/K19ohasd
2016-07-06 06:46:01: Failed to remove file:
2016-07-06 06:46:01: Creating a link "/etc/rc.d/rc1.d/K19ohasd" pointing to /etc/init.d/ohasd
2016-07-06 06:46:01: Removing "/etc/rc.d/rc2.d/K19ohasd"
2016-07-06 06:46:01: Removing file /etc/rc.d/rc2.d/K19ohasd
2016-07-06 06:46:01: Failure with return code 1 from command rm /etc/rc.d/rc2.d/K19ohasd
2016-07-06 06:46:01: Failed to remove file:
2016-07-06 06:46:01: Creating a link "/etc/rc.d/rc2.d/K19ohasd" pointing to /etc/init.d/ohasd
2016-07-06 06:46:01: Removing "/etc/rc.d/rc4.d/K19ohasd"
2016-07-06 06:46:01: Removing file /etc/rc.d/rc4.d/K19ohasd
2016-07-06 06:46:01: Failure with return code 1 from command rm /etc/rc.d/rc4.d/K19ohasd
2016-07-06 06:46:01: Failed to remove file:
2016-07-06 06:46:01: Creating a link "/etc/rc.d/rc4.d/K19ohasd" pointing to /etc/init.d/ohasd
2016-07-06 06:46:01: Removing "/etc/rc.d/rc6.d/K19ohasd"
2016-07-06 06:46:01: Removing file /etc/rc.d/rc6.d/K19ohasd
2016-07-06 06:46:01: Failure with return code 1 from command rm /etc/rc.d/rc6.d/K19ohasd
2016-07-06 06:46:01: Failed to remove file:
2016-07-06 06:46:01: Creating a link "/etc/rc.d/rc6.d/K19ohasd" pointing to /etc/init.d/ohasd
2016-07-06 06:46:01: The file ohasd has been successfully linked to the RC directories
2016-07-06 06:46:01: Starting ohasd
2016-07-06 06:46:01: itab entries=
2016-07-06 06:46:06: Created backup /etc/inittab.no_crs
2016-07-06 06:46:06: Appending to /etc/inittab.tmp:
2016-07-06 06:46:06: h1:35:respawn:/etc/init.d/init.ohasd run >/dev/null 2>&1
2016-07-06 06:46:06: Done updating /etc/inittab.tmp
2016-07-06 06:46:06: Saved /etc/inittab.crs
2016-07-06 06:46:06: Installed new /etc/inittab
2016-07-06 06:46:11: ohasd is starting
2016-07-06 06:46:11: Checking ohasd
2016-07-06 06:46:12: ohasd started successfully
2016-07-06 06:46:12: Creating CRS resources and dependencies
2016-07-06 06:46:12: Configuring HASD
。。。。。
2016-07-06 06:47:17: Stop of resource "ora.crsd -init" failed
2016-07-06 06:47:17: Failed to stop CRSD
2016-07-06 06:47:17: Command return code of 1 (256) from command: /u01/app/11.2.0/grid/bin/crsctl stop resource ora.asm -init
2016-07-06 06:47:17: Stop of resource "ora.asm -init" failed
2016-07-06 06:47:17: Failed to stop ASM
2016-07-06 06:47:17: Command return code of 1 (256) from command: /u01/app/11.2.0/grid/bin/crsctl stop resource ora.ctssd -init
2016-07-06 06:47:17: Stop of resource "ora.ctssd -init" failed
2016-07-06 06:47:17: Failed to stop OCTSSD
2016-07-06 06:47:30: Initial cluster configuration failed. See /u01/app/11.2.0/grid/cfgtoollogs/crsconfig/rootcrs_rac1.log for details
2 个解决方案
执行root.sh的同时再开个终端执行/bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1