RUI个人博客 首页>>Oracle RAC>>红旗linux下搭建rac 11g的 CRS-2674 Start of ora.registry.acfs on 4a failed

红旗linux下搭建rac 11g的 CRS-2674 Start of ora.registry.acfs on 4a failed


环境:

[root@RAC1 ~]# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 5.6 (Tikanga)

[root@RAC1 ~]# uname -a

Linux RAC1 2.6.18-238.2.AXS3 #1 SMP Tue May 17 10:04:54 CST 2011 x86_64 x86_64 x86_64 GNU/Linux

 

数据库版本:  11.2.0.4  x86_64

 

千万别点ok  这个地球人都知道

节点1 执行正常:

[root@RAC1 ~]# /grid/oraInventory/orainstRoot.sh

Changing permissions of /grid/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions for world.

 

Changing groupname of /grid/oraInventory to oinstall.

The execution of the script is complete.

节点2执行正常:

[root@RAC2 ~]# /grid/oraInventory/

ContentsXML/    logs/           orainstRoot.sh 

[root@RAC2 ~]# /grid/oraInventory/orainstRoot.sh

Changing permissions of /grid/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions for world.

 

Changing groupname of /grid/oraInventory to oinstall.

The execution of the script is complete.

如果此时继续执行第二个脚本就会报错:

[root@RAC1 ~]# /grid/oraInventory/orainstRoot.sh

Changing permissions of /grid/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions for world.

 

Changing groupname of /grid/oraInventory to oinstall.

The execution of the script is complete.

[root@RAC1 ~]# /grid/grid_home/root

root.sh         rootupgrade.sh 

[root@RAC1 ~]# /grid/grid_home/root.sh

Performing root user operation for Oracle 11g

 

The following environment variables are set as:

    ORACLE_OWNER= grid

    ORACLE_HOME=  /grid/grid_home

 

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

The contents of "dbhome" have not changed. No need to overwrite.

The contents of "oraenv" have not changed. No need to overwrite.

The contents of "coraenv" have not changed. No need to overwrite.

 

 

Creating /etc/oratab file...

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 script.

Now product-specific root actions will be performed.

Using configuration parameter file: /grid/grid_home/crs/install/crsconfig_params

Creating trace directory

User ignored Prerequisites during installation

Installing Trace File Analyzer

OLR initialization - 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 Clusterware entries to inittab

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

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-2672: Attempting to start 'ora.gipcd' on 'rac1'

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

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

 

ASM created and started successfully.

 

Disk Group OCR_VOTING created successfully.

 

clscfg: -install mode specified

Successfully accumulated necessary OCR keys.

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

Operation successful.

CRS-4256: Updating the profile

Successful addition of voting disk 761be9ca5e804f9abf50bbdd226c44ad.

Successfully replaced voting disk group with +OCR_VOTING.

CRS-4256: Updating the profile

CRS-4266: Voting file(s) successfully replaced

##  STATE    File Universal Id                File Name Disk group

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

 1. ONLINE   761be9ca5e804f9abf50bbdd226c44ad (/dev/OCR_VOTEDISK1) [OCR_VOTING]

Located 1 voting disk(s).

CRS-2672: Attempting to start 'ora.asm' on 'rac1'

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

CRS-2672: Attempting to start 'ora.OCR_VOTING.dg' on 'rac1'

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

FirstNode configuration failed at /grid/grid_home/crs/install/crsconfig_lib.pm line 9379.

/grid/grid_home/perl/bin/perl -I/grid/grid_home/perl/lib -I/grid/grid_home/crs/install /grid/grid_home/crs/install/rootcrs.pl execution failed

 

 

此时就会出现报错:

failed at /grid/grid_home/crs/install/crsconfig_lib.pm line 9379.

/grid/grid_home/perl/bin/perl -I/grid/grid_home/perl/lib -I/grid/grid_home/crs/install /grid/grid_home/crs/install/rootcrs.pl execution failed

 

 

这是由与红旗LINUX的问题  是由于Oracle 11gr2默认缺少对AXS3.0的支持导致的

 

需要修改一个配置文件osds_acfsroot.pm

 

提示:如果在执行root.sh(一旦开始执行root.sh脚本,千万不要ctrl+c取消,否则会出现不可预知的问题)文件之前忘记修改了acfs对应的文件:即:osds_scfsroot.pm时,需要先把crs配置文件删除并重新执行root.sh

 

由于节点1已经执行了root.sh,所以需要回退该操作:

 

====================回退执行root.sh脚本========================

1、在第一个节点执行/grid/grid_home/root.sh时,报错:
FirstNode configuration failed at /grid/grid_home/crs/install/crsconfig_lib.pm line ****
/grid/grid_home/perl/bin/perl -I/grid/grid_home/perl/lib -I/grid/grid_home/crs/install /grid/grid_home/crs/install/rootcrs.pl execution failed;


root.sh
回退:


PS



回退root.sh




Case 1: "root.sh" never run on this cluster, then as grid user, execute $GRID_HOME/deinstall/deinstall
Case 2: "root.sh" already run, then follow the step below - please keep in mind that you will need wait till each step finishes successfully before move to next one:
        Step 1: As root, run "$GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force" on all node, except the last one. 
        Step 2: As root, run "$GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force -lastnode" on last node. This command will zero out OCR and VD disk also. 
        Step 3: As grid user, run "$GRID_HOME/deinstall/deinstall" on any node.

 

实际环境中的回退过程和结果:

[root@RAC1 ~]# cd /grid/grid_home/crs/install/rootcrs.pl -verbose -deconfig -force

-bash: cd: /grid/grid_home/crs/install/rootcrs.pl: Not a directory

[root@RAC1 ~]# /grid/grid_home/crs/install/rootcrs.pl -verbose -deconfig -force

Using configuration parameter file: /grid/grid_home/crs/install/crsconfig_params

Network exists: 1/192.168.11.0/255.255.255.0/eth0, type static

VIP exists: /rac1-vip/192.168.11.14/192.168.11.0/255.255.255.0/eth0, hosting node rac1

GSD exists

ONS exists: Local port 6100, remote port 6200, EM port 2016

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac1'

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

CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'rac1'

CRS-2673: Attempting to stop 'ora.oc4j' on 'rac1'

CRS-2673: Attempting to stop 'ora.OCR_VOTING.dg' on 'rac1'

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

CRS-2673: Attempting to stop 'ora.asm' on 'rac1'

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

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

CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'rac1' has completed

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

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

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

CRS-2673: Attempting to stop 'ora.evmd' on 'rac1'

CRS-2673: Attempting to stop 'ora.asm' on 'rac1'

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

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

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

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

CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'rac1'

CRS-2677: Stop of 'ora.cluster_interconnect.haip' 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.crf' on 'rac1'

CRS-2677: Stop of 'ora.crf' 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.gpnpd' on 'rac1'

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

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac1' has completed

CRS-4133: Oracle High Availability Services has been stopped.

ACFS-9384: Invalid OS kernel variation 'AXS3'.

ACFS-9135: acfsroot installation aborted.

Unable to uninstall ADVM/ACFS

[root@RAC1 ~]# su - grid

 

$ORACLE_SID: +ASM1

$ORACLE_HOME: /grid/grid_home

 

grid@RAC1[+ASM1]/home/grid$/grid/grid_home/deinstall/deinstall

Checking for required files and bootstrapping ...

Please wait ...

Location of logs /tmp/deinstall2015-11-26_10-23-05AM/logs/

 

############ ORACLE DEINSTALL & DECONFIG TOOL START ############

 

 

######################### CHECK OPERATION START #########################

## [START] Install check configuration ##

 

 

Checking for existence of the Oracle home location /grid/grid_home

Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Cluster

Oracle Base selected for deinstall is: /grid/grid_base

Checking for existence of central inventory location /grid/oraInventory

Checking for existence of the Oracle Grid Infrastructure home /grid/grid_home

The following nodes are part of this cluster: rac1,rac2

Checking for sufficient temp space availability on node(s) : 'rac1,rac2'

 

## [END] Install check configuration ##

 

Traces log file: /tmp/deinstall2015-11-26_10-23-05AM/logs//crsdc.log

Enter an address or the name of the virtual IP used on node "rac1"[rac1-vip]

 >  回车

 

The following information can be collected by running "/sbin/ifconfig -a" on node "rac1"

Enter the IP netmask of Virtual IP "192.168.11.14" on node "rac1"[255.255.255.0]

 >   回车

 

Enter the network interface name on which the virtual IP address "192.168.11.14" is active

 >  回车

 

Enter an address or the name of the virtual IP used on node "rac2"[rac2-vip]

 >  回车

 

The following information can be collected by running "/sbin/ifconfig -a" on node "rac2"  回车

Enter the IP netmask of Virtual IP "192.168.11.15" on node "rac2"[255.255.255.0]

 >  回车

 

Enter the network interface name on which the virtual IP address "192.168.11.15" is active

 >  回车

 

Enter an address or the name of the virtual IP[]

 >  回车

 

 

Network Configuration check config START

 

Network de-configuration trace file location: /tmp/deinstall2015-11-26_10-23-05AM/logs/netdc_check2015-11-26_10-25-34-AM.log

 

Specify all RAC listeners (do not include SCAN listener) that are to be de-configured [LISTENER_SCAN1]:

 

Network Configuration check config END

 

Asm Check Configuration START

 

ASM de-configuration trace file location: /tmp/deinstall2015-11-26_10-23-05AM/logs/asmcadc_check2015-11-26_10-25-40-AM.log

 

ASM configuration was not detected in this Oracle home. Was ASM configured in this Oracle home (y|n) [n]:  回车

ASM was not detected in the Oracle Home

 

######################### CHECK OPERATION END #########################

 

 

####################### CHECK OPERATION SUMMARY #######################

Oracle Grid Infrastructure Home is: /grid/grid_home

The cluster node(s) on which the Oracle home deinstallation will be performed are:rac1,rac2

Oracle Home selected for deinstall is: /grid/grid_home

Inventory Location where the Oracle home registered is: /grid/oraInventory

Following RAC listener(s) will be de-configured: LISTENER_SCAN1

ASM was not detected in the Oracle Home

Do you want to continue (y - yes, n - no)? [n]:  回车

Exited from program.

 

############# ORACLE DEINSTALL & DECONFIG TOOL END #############


修改文件

[root@RAC1 ~]# cp -a /grid/grid_home/install/usm/Oracle/EL5/x86_64/2.6.18-8/2.6.18-8.el5-x86_64 /grid/grid_home/install/usm/Oracle/EL5/x86_64/2.6.18-8/2.6.18-8.AXS3-x86_64

 

搜索 minor

/minor      4n

 

    # here and so we just bail. We don't want to fail the entire oracle install

    # and so return USM_NOT_SUPPORTED so that OUI can complete sans USM.

    if (!(($minor eq "32-100") || ($minor eq "32-71") ||

          ($variation eq 'el5') ||($variation eq 'AXS3') || ($variation eq 'el5PAE') ||

          ($variation eq 'el5xen') || ($variation eq 'el6') ||

          ($minor eq "32-200") || ($minor eq "32-300") ||

          ($minor eq "32-400") ||

          ($minor eq "39-100") || ($minor eq "39-200") ||

          ($minor eq "39-300") || ($minor eq "39-400")

         )

       )

    {

            my $print = $variation; #Do we print the minor or the variation?

                              # For non-rhel kernels, the variation is useless.

      if ($variation =~ /uek/ )

      {

        $print = $minor;

      }

 

      lib_error_print(9384, "Invalid OS kernel variation '%s'.", $print);

      lib_error_print(9135, "%s installation aborted.", $COMMAND);

      exit USM_NOT_SUPPORTED;

    }

 

 

同样在节点2执行命令  修改

[root@RAC2 ~]# cp -a /grid/grid_home/install/usm/Oracle/EL5/x86_64/2.6.18-8/2.6.18-8.el5-x86_64 /grid/grid_home/install/usm/Oracle/EL5/x86_64/2.6.18-8/2.6.18-8.AXS3-x86_64

[root@RAC2 ~]# cd /grid/grid_home/lib/

Display all 213 possibilities? (y or n)

 [root@RAC2 ~]# vi /grid/grid_home/lib/osds_acfsroot.pm

    # here and so we just bail. We don't want to fail the entire oracle install

    # and so return USM_NOT_SUPPORTED so that OUI can complete sans USM.

    if (!(($minor eq "32-100") || ($minor eq "32-71") ||

          ($variation eq 'el5') ||($variation eq 'AXS3') || ($variation eq 'el5PAE') ||

          ($variation eq 'el5xen') || ($variation eq 'el6') ||

          ($minor eq "32-200") || ($minor eq "32-300") ||

          ($minor eq "32-400") ||

          ($minor eq "39-100") || ($minor eq "39-200") ||

          ($minor eq "39-300") || ($minor eq "39-400")

         )

       )

    {

            my $print = $variation; #Do we print the minor or the variation?

                              # For non-rhel kernels, the variation is useless.

      if ($variation =~ /uek/ )

      {

        $print = $minor;

      }

 

      lib_error_print(9384, "Invalid OS kernel variation '%s'.", $print);

      lib_error_print(9135, "%s installation aborted.", $COMMAND);

      exit USM_NOT_SUPPORTED;

    }

在节点1  还是报错!!!

[root@RAC1 ~]# /grid/grid_home/root.sh

Performing root user operation for Oracle 11g

 

The following environment variables are set as:

    ORACLE_OWNER= grid

    ORACLE_HOME=  /grid/grid_home

 

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

The contents of "dbhome" have not changed. No need to overwrite.

The contents of "oraenv" have not changed. No need to overwrite.

The contents of "coraenv" have not changed. No need to overwrite.

 

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 script.

Now product-specific root actions will be performed.

Using configuration parameter file: /grid/grid_home/crs/install/crsconfig_params

User ignored Prerequisites during installation

Installing Trace File Analyzer

Adding Clusterware entries to inittab

PRCS-1037 : Single Client Access Name VIPs already exist

PRCS-1028 : Single Client Access Name listeners already exist

OC4J could not be created as it already exists

PRCR-1086 : resource ora.oc4j is already registered

PRCR-1086 : resource ora.cvu is already registered

FirstNode configuration failed at /grid/grid_home/crs/install/crsconfig_lib.pm line 9379.

/grid/grid_home/perl/bin/perl -I/grid/grid_home/perl/lib -I/grid/grid_home/crs/install /grid/grid_home/crs/install/rootcrs.pl execution failed

在节点2成功了!!!!

[root@RAC2 ~]# /grid/grid_home/root.sh

Performing root user operation for Oracle 11g

 

The following environment variables are set as:

    ORACLE_OWNER= grid

    ORACLE_HOME=  /grid/grid_home

 

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

The contents of "dbhome" have not changed. No need to overwrite.

The contents of "oraenv" have not changed. No need to overwrite.

The contents of "coraenv" have not changed. No need to overwrite.

 

 

Creating /etc/oratab file...

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 script.

Now product-specific root actions will be performed.

Using configuration parameter file: /grid/grid_home/crs/install/crsconfig_params

Creating trace directory

User ignored Prerequisites during installation

Installing Trace File Analyzer

OLR initialization - successful

Adding Clusterware entries to inittab

CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node rac1, number 1, and is terminating

An active cluster was found during exclusive startup, restarting to join the cluster

Configure Oracle Grid Infrastructure for a Cluster ... succeeded

又返回节点1跑:成功了!!!

[root@RAC1 ~]# /grid/grid_home/root.sh

Performing root user operation for Oracle 11g


The following environment variables are set as:

   ORACLE_OWNER= grid

   ORACLE_HOME=  /grid/grid_home


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

The contents of "dbhome" have not changed. No need to overwrite.

The contents of "oraenv" have not changed. No need to overwrite.

The contents of "coraenv" have not changed. No need to overwrite.


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 script.

Now product-specific root actions will be performed.

Using configuration parameter file: /grid/grid_home/crs/install/crsconfig_params

User ignored Prerequisites during installation

Installing Trace File Analyzer

PRKO-2190 : VIP exists for node rac1, VIP name rac1-vip

Configure Oracle Grid Infrastructure for a Cluster ... succeeded



昵  称:
邮  箱:
评论内容:
验 证 码:
可用[code][/code]插入代码
点击刷新验证码