執行root.sh 提示Deconfigure the existing cluster configuration before starting

luckyfriends發表於2015-02-03

 

[root@rac001 ~]# sh    /home/griddir/11.2.0/root.sh
Running Oracle 11g root.sh script...

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /home/griddir/11.2.0

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.
2011-11-28 08:26:58: Parsing the host name
2011-11-28 08:26:58: Checking for super user privileges
2011-11-28 08:26:58: User has super user privileges
Using configuration parameter file: /home/griddir/11.2.0/crs/install/crsconfig_params
Improper Oracle Clusterware configuration found on this host
Deconfigure the existing cluster configuration before starting
to configure a new Clusterware
run '/home/griddir/11.2.0/crs/install/rootcrs.pl -deconfig'
to configure existing failed configuration and then rerun root.sh

 

 

 

按照提示,執行報錯:


[root@rac001 ~]# /home/griddir/11.2.0/crs/install/rootcrs.pl   -deconfig 
2011-11-28 08:31:16: Parsing the host name
2011-11-28 08:31:16: Checking for super user privileges
2011-11-28 08:31:16: User has super user privileges
Using configuration parameter file: /home/griddir/11.2.0/crs/install/crsconfig_params
Failure to execute: No such file or directory for command /home/griddir/11.2.0/bin/crsctl check cluster -n rac001
Failure to execute: No such file or directory for command /home/griddir/11.2.0/bin/crsctl check cluster -n rac001
Oracle Clusterware stack is not active on this node
Restart the clusterware stack (use /home/griddir/11.2.0/bin/crsctl start crs) and retry
Failed to verify resources

 

 


找到一個方法,  在後面加入 -force 可以順利完成.  

[root@rac001 selinux]# /home/griddir/11.2.0/crs/install/rootcrs.pl -deconfig -force
2011-11-28 08:44:22: Parsing the host name
2011-11-28 08:44:22: Checking for super user privileges
2011-11-28 08:44:22: User has super user privileges
Using configuration parameter file: /home/griddir/11.2.0/crs/install/crsconfig_params
Failure to execute: No such file or directory for command /home/griddir/11.2.0/bin/crsctl check cluster -n rac001
Failure to execute: No such file or directory for command /home/griddir/11.2.0/bin/crsctl check cluster -n rac001
Usage: srvctl []
    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 and object and its options use:
  srvctl -h or
  srvctl -h
PRKO-2012 : nodeapps object is not supported in Oracle Restart
Can't exec "/home/griddir/11.2.0/bin/clsecho": No such file or directory at /home/griddir/11.2.0/lib/acfslib.pm line 937.
Failure to execute: No such file or directory for command /home/griddir/11.2.0/bin/crsctl stat res ora.registry.acfs
Failure to execute: No such file or directory for command /home/griddir/11.2.0/bin/crsctl check cluster -n rac001
You must kill crs processes or reboot the system to properly
cleanup the processes started by Oracle clusterware
2560+0 records in
2560+0 records out
10485760 bytes (10 MB) copied, 0.151548 seconds, 69.2 MB/s
Successfully deconfigured Oracle clusterware stack on this node
[root@rac001 selinux]#

 

 

 

再次分別在兩個節點上執行 root.sh  : 


[root@rac001 selinux]# sh   /home/griddir/11.2.0/root.sh
Running Oracle 11g root.sh script...

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /home/griddir/11.2.0

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.
2011-11-28 08:49:11: Parsing the host name
2011-11-28 08:49:11: Checking for super user privileges
2011-11-28 08:49:11: User has super user privileges
Using configuration parameter file: /home/griddir/11.2.0/crs/install/crsconfig_params
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
  pa wallet
  peer wallet keys
  pa wallet keys
  peer cert request
  pa cert request
  peer cert
  pa cert
  peer root cert TP
  profile reader root cert TP
  pa root cert TP
  peer pa cert TP
  pa peer cert TP
  profile reader pa cert TP
  profile reader peer cert TP
  peer user cert
  pa user cert
Adding daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
CRS-2672: Attempting to start 'ora.gipcd' on 'rac001'
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac001'
CRS-2676: Start of 'ora.mdnsd' on 'rac001' succeeded
CRS-2676: Start of 'ora.gipcd' on 'rac001' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac001'
CRS-2676: Start of 'ora.gpnpd' on 'rac001' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac001'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac001' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac001'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac001'
CRS-2676: Start of 'ora.diskmon' on 'rac001' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac001' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'rac001'
CRS-2676: Start of 'ora.ctssd' on 'rac001' succeeded

ASM created and started successfully.

DiskGroup ocrdata created successfully.

clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-2672: Attempting to start 'ora.crsd' on 'rac001'
CRS-2676: Start of 'ora.crsd' on 'rac001' succeeded
CRS-4256: Updating the profile
Successful addition of voting disk 05bc07ccec2c4f88bf8c01df9a675a1f.
Successfully replaced voting disk group with +ocrdata.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   05bc07ccec2c4f88bf8c01df9a675a1f (ORCL:OCR_VOTE01) [OCRDATA]
Located 1 voting disk(s).
CRS-2673: Attempting to stop 'ora.crsd' on 'rac001'
CRS-2677: Stop of 'ora.crsd' on 'rac001' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'rac001'
CRS-2677: Stop of 'ora.asm' on 'rac001' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac001'
CRS-2677: Stop of 'ora.ctssd' on 'rac001' succeeded
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'rac001'
CRS-2677: Stop of 'ora.cssdmonitor' on 'rac001' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac001'
CRS-2677: Stop of 'ora.cssd' on 'rac001' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac001'
CRS-2677: Stop of 'ora.gpnpd' on 'rac001' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'rac001'
CRS-2677: Stop of 'ora.gipcd' on 'rac001' succeeded
CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac001'
CRS-2677: Stop of 'ora.mdnsd' on 'rac001' succeeded
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac001'
CRS-2676: Start of 'ora.mdnsd' on 'rac001' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'rac001'
CRS-2676: Start of 'ora.gipcd' on 'rac001' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac001'
CRS-2676: Start of 'ora.gpnpd' on 'rac001' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac001'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac001' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac001'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac001'
CRS-2676: Start of 'ora.diskmon' on 'rac001' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac001' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'rac001'
CRS-2676: Start of 'ora.ctssd' on 'rac001' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'rac001'
CRS-2676: Start of 'ora.asm' on 'rac001' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'rac001'
CRS-2676: Start of 'ora.crsd' on 'rac001' succeeded
CRS-2672: Attempting to start 'ora.evmd' on 'rac001'
CRS-2676: Start of 'ora.evmd' on 'rac001' succeeded
Timed out waiting for the CRS stack to start.

這裡有個timed out的問題,不知道是否有問題 。 

 

 

繼續在節點2上執行root.sh  

[root@rac002 ~]# sh  /home/griddir/11.2.0/root.sh
Running Oracle 11g root.sh script...

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /home/griddir/11.2.0

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.
2011-11-28 09:36:43: Parsing the host name
2011-11-28 09:36:43: Checking for super user privileges
2011-11-28 09:36:43: User has super user privileges
Using configuration parameter file: /home/griddir/11.2.0/crs/install/crsconfig_params
Creating trace directory
Improper Oracle Clusterware configuration found on this host
Deconfigure the existing cluster configuration before starting
to configure a new Clusterware
run '/home/griddir/11.2.0/crs/install/rootcrs.pl -deconfig'
to configure existing failed configuration and then rerun root.sh

 


同樣在節點2上清理crs資訊:

[root@rac002 ~]# /home/griddir/11.2.0/crs/install/rootcrs.pl -deconfig  -verbose -force
2011-11-28 09:42:32: Parsing the host name
2011-11-28 09:42:32: Checking for super user privileges
2011-11-28 09:42:32: User has super user privileges
Using configuration parameter file: /home/griddir/11.2.0/crs/install/crsconfig_params
Failure to execute: Inappropriate ioctl for device for command /home/griddir/11.2.0/bin/crsctl check cluster -n rac002
Failure to execute: Inappropriate ioctl for device for command /home/griddir/11.2.0/bin/crsctl check cluster -n rac002
Can't exec "/home/griddir/11.2.0/bin/clsecho": No such file or directory at /home/griddir/11.2.0/lib/acfslib.pm line 937.
Failure to execute: Inappropriate ioctl for device for command /home/griddir/11.2.0/bin/crsctl stat res ora.registry.acfs
Failure to execute: Inappropriate ioctl for device for command /home/griddir/11.2.0/bin/crsctl check cluster -n rac002
You must kill crs processes or reboot the system to properly
cleanup the processes started by Oracle clusterware
2560+0 records in
2560+0 records out
10485760 bytes (10 MB) copied, 3.94554 seconds, 2.7 MB/s
Successfully deconfigured Oracle clusterware stack on this node
[root@rac002 ~]#

 

 


在節點2 上繼續執行 root.sh  : 

[root@rac002 ~]# sh  /home/griddir/11.2.0/root.sh 
Running Oracle 11g root.sh script...

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /home/griddir/11.2.0

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.
2011-11-28 09:44:50: Parsing the host name
2011-11-28 09:44:50: Checking for super user privileges
2011-11-28 09:44:50: User has super user privileges
Using configuration parameter file: /home/griddir/11.2.0/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-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node rac001, number 1, and is

terminating
An active cluster was found during exclusive startup, restarting to join the cluster
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac002'
CRS-2676: Start of 'ora.mdnsd' on 'rac002' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'rac002'
CRS-2676: Start of 'ora.gipcd' on 'rac002' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac002'
CRS-2676: Start of 'ora.gpnpd' on 'rac002' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac002'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac002' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac002'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac002'
CRS-2676: Start of 'ora.diskmon' on 'rac002' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac002' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'rac002'
CRS-2676: Start of 'ora.ctssd' on 'rac002' succeeded
CRS-2672: Attempting to start 'ora.drivers.acfs' on 'rac002'
CRS-2676: Start of 'ora.drivers.acfs' on 'rac002' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'rac002'
CRS-2676: Start of 'ora.asm' on 'rac002' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'rac002'
CRS-2676: Start of 'ora.crsd' on 'rac002' succeeded
CRS-2672: Attempting to start 'ora.evmd' on 'rac002'
CRS-2676: Start of 'ora.evmd' on 'rac002' succeeded 
rac002     2011/11/28 10:05:35     /home/griddir/11.2.0/cdata/rac002/backup_20111128_100535.olr
Preparing packages for installation...
cvuqdisk-1.0.7-1
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
Updating inventory properties for clusterware
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.   Actual 585 MB    Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /home/griddir/oraInventory
'UpdateNodeList' was successful.
[root@rac002 ~]#

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/14710393/viewspace-1425576/,如需轉載,請註明出處,否則將追究法律責任。

相關文章