localhost错误导致Rac root.sh执行失败,racroot.sh
环境: AIX 7.1 Oracle Rac 11.2.0.3 root@kk01:/oraapp/grid/gridhome>./root.sh Performing root user operation for Oracle 11gThe following environment variables are set as: ORACLE_OWNER= grid ORACLE_HOME= /oraapp/grid/gridhome
Enter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to /usr/local/bin ... Copying oraenv to /usr/local/bin ... Copying coraenv to /usr/local/bin ...
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: /oraapp/grid/gridhome/crs/install/crsconfig_params Creating trace directory User ignored Prerequisites during installation User grid has the required capabilities to run CSSD in realtime mode 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 'kk01' CRS-2676: Start of 'ora.mdnsd' on 'kk01' succeeded CRS-2672: Attempting to start 'ora.gpnpd' on 'kk01' CRS-2676: Start of 'ora.gpnpd' on 'kk01' succeeded CRS-2672: Attempting to start 'ora.cssdmonitor' on 'kk01' CRS-2672: Attempting to start 'ora.gipcd' on 'kk01' CRS-2676: Start of 'ora.gipcd' on 'kk01' succeeded CRS-2676: Start of 'ora.cssdmonitor' on 'kk01' succeeded CRS-2672: Attempting to start 'ora.cssd' on 'kk01' CRS-2672: Attempting to start 'ora.diskmon' on 'kk01' CRS-2676: Start of 'ora.diskmon' on 'kk01' succeeded CRS-2676: Start of 'ora.cssd' on 'kk01' succeeded
ASM created and started successfully.
Disk Group OCRDG created successfully.
clscfg: -install mode specified Successfully accumulated necessary OCR keys. Creating OCR keys for user 'root', privgrp 'system'.. Operation successful. CRS-4256: Updating the profile Successful addition of voting disk 8baf1210f0ac4fe1bf0e45c1abd2bd14. Successful addition of voting disk affc1a24965f4fd3bfe079a12d81e70f. Successful addition of voting disk 0ecd160564c14fb0bfe78dc99ccb9271. Successfully replaced voting disk group with +OCRDG. CRS-4256: Updating the profile CRS-4266: Voting file(s) successfully replaced ## STATE File Universal Id File Name Disk group -- ----- ----------------- --------- --------- 1. ONLINE 8baf1210f0ac4fe1bf0e45c1abd2bd14 (/dev/rhdisk4) [OCRDG] 2. ONLINE affc1a24965f4fd3bfe079a12d81e70f (/dev/rhdisk5) [OCRDG] 3. ONLINE 0ecd160564c14fb0bfe78dc99ccb9271 (/dev/rhdisk6) [OCRDG] Located 3 voting disk(s). CRS-2672: Attempting to start 'ora.asm' on 'kk01' CRS-2676: Start of 'ora.asm' on 'kk01' succeeded CRS-2672: Attempting to start 'ora.OCRDG.dg' on 'kk01' CRS-2676: Start of 'ora.OCRDG.dg' on 'kk01' succeeded /oraapp/grid/gridhome/bin/srvctl start nodeapps -n kk01 ... failed FirstNode configuration failed at /oraapp/grid/gridhome/crs/install/crsconfig_lib.pm line 9196. /oraapp/grid/gridhome/perl/bin/perl -I/oraapp/grid/gridhome/perl/lib -I/oraapp/grid/gridhome/crs/install /oraapp/grid/gridhome/crs/install/rootcrs.pl execution failed
127.0.0.1 loopback localhost # loopback (lo0) name/address ::1 loopback localhost # IPv6 loopback (lo0) name/address xxxxxxxxxxx localhost 发现/etc/hosts 文件中有一个IP地址的别名是localhost,两边都有,将此行删除,并重新运行root.sh
root@KK01:/oraapp/grid/gridhome>./root.sh Performing root user operation for Oracle 11g
The following environment variables are set as: ORACLE_OWNER= grid ORACLE_HOME= /oraapp/grid/gridhome
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: /oraapp/grid/gridhome/crs/install/crsconfig_params User ignored Prerequisites during installation PRKO-2190 : VIP exists for node kk01, VIP name kk01-vip 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 CRS-2672: Attempting to start 'ora.registry.acfs' on 'kk01' CRS-2676: Start of 'ora.registry.acfs' on 'kk01' succeeded Configure Oracle Grid Infrastructure for a Cluster ... succeeded root@kk01:/oraapp/grid/gridhome>
root@kk02:/oraapp/grid/gridhome>./root.sh Performing root user operation for Oracle 11g
The following environment variables are set as: ORACLE_OWNER= grid ORACLE_HOME= /oraapp/grid/gridhome
Enter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to /usr/local/bin ... Copying oraenv to /usr/local/bin ... Copying coraenv to /usr/local/bin ...
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: /oraapp/grid/gridhome/crs/install/crsconfig_params Creating trace directory User ignored Prerequisites during installation User grid has the required capabilities to run CSSD in realtime mode 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 kk01, 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 root@kk02:/oraapp/grid/gridhome>su - grid grid@kk02:/home/grid>crs_stat -t Name Type Target State Host ------------------------------------------------------------ ora....N1.lsnr ora....er.type ONLINE ONLINE kk01 ora.OCRDG.dg ora....up.type ONLINE ONLINE kk01 ora.asm ora.asm.type ONLINE ONLINE kk01 ora.cvu ora.cvu.type ONLINE ONLINE kk01 ora.gsd ora.gsd.type OFFLINE OFFLINE ora....SM1.asm application ONLINE ONLINE kk01 ora....r01.gsd application OFFLINE OFFLINE ora....r01.ons application ONLINE ONLINE kk01 ora....r01.vip ora....t1.type ONLINE ONLINE kk01 ora....SM2.asm application ONLINE ONLINE kk02 ora....r02.gsd application OFFLINE OFFLINE ora....r02.ons application ONLINE ONLINE kk02 ora....r02.vip ora....t1.type ONLINE ONLINE kk02 ora....network ora....rk.type ONLINE ONLINE kk01 ora.oc4j ora.oc4j.type ONLINE ONLINE kk01 ora.ons ora.ons.type ONLINE ONLINE kk01 ora....ry.acfs ora....fs.type ONLINE ONLINE kk01 ora.scan1.vip ora....ip.type ONLINE ONLINE kk01 grid@kk02:/home/grid>
集群的cluster 没有安装成功!
ora.crsd 组件没有启动起来!
安装的时候你注意一下你的分区
仲裁分区 数据分区 备份分区 重装后 一定要 重新格式化!
否者安装失败 grid 组件 会出现更重各样的问题.
很明显你的集群安装失败了
打命令
tail -500 /u01/app/11.2.0/grid/cfgtoollogs/crsconfig/rootcrs_rac1.log
把信息贴出来
troubleshooting root.sh problem------*for 10g and 11.11.查证公网,私网的节点名是可以互相ping通的2.---查证OCR/Voting 文件对oracle 、root用户都是可以读写的,盘的权限 Dd if=/dev/raw/raw1 of=/dev/null --验证可读Pre Install: OCR - root:oinstall - 640 Voting - oracle:oinstall - 660Post Install: OCR - root:oinstall - 640 Voting - oracle:oinstall - 644In RHAS 4.0, permissions should be added to /etc/rc.d/rc.local. See Note 293819.1 for more information.3.在执行root.sh前确保ocr、voting盘是干净的--(第一次安装时)Example:清理磁盘头 dd if=/dev/zero of=/dev/traindata_dg/ocrV1064_100m.dbf bs=8192count=12800 dd if=/dev/zero of=/dev/traindata_dg/V1064_vote_01_20m.dbf bs=8192count=2560 4.Verify that the Oracle user has permissions on /var/tmp(specifically/var/tmp/.oracle)5.Is pam being used??.Verify that the correct vendor clusterware version is being used(if vendor clusterware is being used). If on Sun, make sure you areusing the latest UDLM.If on Sun, make sure the udlm has the keyword "reentrant". Example: > more /var/sadm/pkg/ORCLudlm/pkginfo | grep VERSION VERSION=Dev Release 10/29/03, 64bit 3.3.4.7 reentrant7. Veirfy that crs, css, or evm is not already running ( ps -ef |grep d.bin ) ------debug root.sh------1.crsctl stop crs (root用户)2. Backup the entire Oracle Clusterware home.3.Execute <CRS_HOME>/install/rootdelete.sh on all nodes4. Execute <CRS_HOME>/install/rootdeinstall.sh on the inst......余下全文>>