在Oracle安装 grid 时,最后一步是在所有节点依次执行root.sh 。 若你在执行root.sh时,在第一个节点没有执行完
就去执行第二个节点,此时第二个节点会报错。无法执行成功,因为在执行root.sh时,要对votedisk磁盘组进行处理更新,若第一个节点没有
处理完第二个节点就无法进行处理
会报如下错误:
ERNAL -configureLocalASM
2014-09-14 18:25:58: Running as user grid: /u01/app/11.2.0/grid/bin/asmca -silent -diskGroupName GRIDDG -diskList /dev/raw/raw1,/dev/raw/raw2,/dev/raw/raw3 -redundancy
EXTERNAL -configureLocalASM
2014-09-14 18:25:58: Invoking "/u01/app/11.2.0/grid/bin/asmca -silent -diskGroupName GRIDDG -diskList /dev/raw/raw1,/dev/raw/raw2,/dev/raw/raw3 -redundancy EXTERNAL -
configureLocalASM" as user "grid"
2014-09-14 18:26:26: Configuration of ASM failed, see logs for details
2014-09-14 18:26:26: Did not succssfully configure and start ASM
2014-09-14 18:26:26: Exiting exclusive mode
2014-09-14 18:26:26: Command return code of 1 (256) from command: /u01/app/11.2.0/grid/bin/crsctl stop resource ora.crsd -init
2014-09-14 18:26:26: Stop of resource "ora.crsd -init" failed
2014-09-14 18:26:26: Failed to stop CRSD
2014-09-14 18:26:26: Command return code of 1 (256) from command: /u01/app/11.2.0/grid/bin/crsctl stop resource ora.asm -init
2014-09-14 18:26:26: Stop of resource "ora.asm -init" failed
2014-09-14 18:26:26: Failed to stop ASM
2014-09-14 18:26:53: Initial cluster configuration failed. See /u01/app/11.2.0/grid/cfgtoollogs/crsconfig/rootcrs_node2.log for details
此时他要停止ASM 而在一节点上正在使用ASM进行配置,无法停止,最后报错
在一节点执行完root.sh后,再重新在二节点上执行root.sh将会无法执行:
[root@node2 11.2.0]# /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.
2014-09-14 18:30:53: Parsing the host name
2014-09-14 18:30:53: Checking for super user privileges
2014-09-14 18:30:53: User has super user privileges
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
CRS is already configured on this node for crshome=0
Cannot configure two CRS instances on the same cluster.
Please deconfigure before proceeding with the configuration of new home
它提示CRS已经存在。也就是第一次执行root.sh没有执行成功,但是crs已经注册好了。此时要删除crs 重新注册:
[root@node2 grid]# /u01/app/11.2.0/grid/crs/install/rootcrs.pl -verbose -deconfig -force
2014-09-14 18:39:28: Parsing the host name
2014-09-14 18:39:28: Checking for super user privileges
2014-09-14 18:39:28: User has super user privileges
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
PRCR-1035 : Failed to look up CRS resource ora.cluster_vip.type for 1
PRCR-1068 : Failed to query resources
Cannot communicate with crsd
PRCR-1070 : Failed to check if resource ora.gsd is registered
Cannot communicate with crsd
PRCR-1070 : Failed to check if resource ora.ons is registered
Cannot communicate with crsd
PRCR-1070 : Failed to check if resource ora.eons is registered
Cannot communicate with crsd
ADVM/ACFS is not supported on oraclelinux-release-5-8.0.2
ACFS-9201: Not Supported
CRS-4133: Oracle High Availability Services has been stopped.
Successfully deconfigured Oracle clusterware stack on this node
删除成功,重新注册
[root@node2 grid]# /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 ...
这次注册成功