Bo's Oracle Station

查看: 2972|回复: 4

rac安装报错-----scan ip 已经被使用

[复制链接]

13

主题

31

帖子

119

积分

注册会员

Rank: 2

积分
119
发表于 2017-8-11 10:55:04 | 显示全部楼层 |阅读模式
环境:
Linux stationrac1 4.1.12-37.4.1.el6uek.x86_64
oracle :11.2.0.4

rac安装,grid部分 在第二个节点上执行root.sh报错,
[root@stationrac2 rpm]# /u01/app/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g

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]:
   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: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
Installing Trace File Analyzer
OLR initialization - successful
Adding Clusterware entries to upstart
CRS-2672: Attempting to start 'ora.mdnsd' on 'stationrac2'
CRS-2676: Start of 'ora.mdnsd' on 'stationrac2' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'stationrac2'
CRS-2676: Start of 'ora.gpnpd' on 'stationrac2' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'stationrac2'
CRS-2672: Attempting to start 'ora.gipcd' on 'stationrac2'
CRS-2676: Start of 'ora.cssdmonitor' on 'stationrac2' succeeded
CRS-2676: Start of 'ora.gipcd' on 'stationrac2' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'stationrac2'
CRS-2672: Attempting to start 'ora.diskmon' on 'stationrac2'
CRS-2676: Start of 'ora.diskmon' on 'stationrac2' succeeded
CRS-2676: Start of 'ora.cssd' on 'stationrac2' succeeded

ASM created and started successfully.

Disk Group OCRVOT created successfully.

clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Successful addition of voting disk 9d020bbe73d74f0cbf5922b8c2229f3f.
Successfully replaced voting disk group with +OCRVOT.
CRS-4266: Voting file(s) successfully replaced
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
1. ONLINE   9d020bbe73d74f0cbf5922b8c2229f3f (/dev/raw/raw3) [OCRVOT]
Located 1 voting disk(s).
CRS-2672: Attempting to start 'ora.asm' on 'stationrac2'
CRS-2676: Start of 'ora.asm' on 'stationrac2' succeeded
CRS-2672: Attempting to start 'ora.OCRVOT.dg' on 'stationrac2'
CRS-2676: Start of 'ora.OCRVOT.dg' on 'stationrac2' succeeded
PRCR-1079 : Failed to start resource ora.scan1.vip
CRS-5017: The resource action "ora.scan1.vip start" encountered the following error:
CRS-5005: IP Address: 192.168.0.40 is already in use in the network
. For details refer to "(:CLSN00107" in "/u01/app/11.2.0/grid/log/stationrac2/agent/crsd/orarootagent_root/orarootagent_root.log".

CRS-2674: Start of 'ora.scan1.vip' on 'stationrac2' failed
CRS-2632: There are no more servers to try to place resource 'ora.scan1.vip' on that would satisfy its placement policy

start scan ... failed
FirstNode configuration failed at /u01/app/11.2.0/grid/crs/install/crsconfig_lib.pm line 9379.
/u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/rootcrs.pl execution failed
回复

使用道具 举报

13

主题

31

帖子

119

积分

注册会员

Rank: 2

积分
119
 楼主| 发表于 2017-8-11 10:57:14 | 显示全部楼层
网络和主机配置
[root@stationrac2 rpm]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.0.22       stationrac1
192.168.0.23       stationrac2
192.168.0.32       stationrac1-vip
192.168.0.33       stationrac2-vip
192.168.0.40       stationrac-scan
192.168.100.10    stationrac1-pri1
192.168.100.11    stationrac2-pri1
[root@stationrac2 rpm]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:0C:29:99:33:66  
          inet addr:192.168.0.23  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe99:3366/64 Scopeink
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2930318 errors:0 dropped:39 overruns:0 frame:0
          TX packets:101832 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4361733358 (4.0 GiB)  TX bytes:8767265 (8.3 MiB)

eth0:1    Link encap:Ethernet  HWaddr 00:0C:29:99:33:66  
          inet addr:192.168.0.33  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth1      Link encap:Ethernet  HWaddr 00:0C:29:99:33:70  
          inet addr:192.168.100.11  Bcast:192.168.100.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe99:3370/64 Scopeink
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2581 errors:0 dropped:39 overruns:0 frame:0
          TX packets:695 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:316426 (309.0 KiB)  TX bytes:124587 (121.6 KiB)

eth1:1    Link encap:Ethernet  HWaddr 00:0C:29:99:33:70  
          inet addr:169.254.232.135  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

lo        Link encapocal Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:14458 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14458 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:9219994 (8.7 MiB)  TX bytes:9219994 (8.7 MiB)

[root@stationrac2 rpm]#
回复 支持 反对

使用道具 举报

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2017-8-11 11:17:57 | 显示全部楼层
chenghuaming 发表于 2017-8-11 10:57
网络和主机配置
[root@stationrac2 rpm]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain  ...
CRS-5005: IP Address: 192.168.0.40 is already in use in the network


scan是在/etc/hosts中,只能配一个。这点没有错。应该就是scan不能事先已经启动的问题,vip是可以事先启动的。
错误本身已经说明。
回复 支持 反对

使用道具 举报

13

主题

31

帖子

119

积分

注册会员

Rank: 2

积分
119
 楼主| 发表于 2017-8-11 14:35:28 | 显示全部楼层
老师,这种问题有什么解决办法?
回复 支持 反对

使用道具 举报

13

主题

31

帖子

119

积分

注册会员

Rank: 2

积分
119
 楼主| 发表于 2017-8-11 23:42:02 | 显示全部楼层

把scan ip ifdown 之后 grid的安装没报错,到安装数据库软件时只能看到一个节点(节点只能看到自己),请老师看下grid安装结果是不是正常
[grid@stationrac1 bin]$ crs_stat -t
Name           Type           Target    State     Host        
------------------------------------------------------------
ora....ER.lsnr ora....er.type ONLINE    ONLINE    stationrac1
ora....N1.lsnr ora....er.type ONLINE    OFFLINE               
ora....OTDG.dg ora....up.type ONLINE    ONLINE    stationrac1
ora.asm        ora.asm.type   ONLINE    ONLINE    stationrac1
ora.cvu        ora.cvu.type   ONLINE    ONLINE    stationrac1
ora.gsd        ora.gsd.type   OFFLINE   OFFLINE               
ora....network ora....rk.type ONLINE    ONLINE    stationrac1
ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    stationrac1
ora.ons        ora.ons.type   ONLINE    ONLINE    stationrac1
ora.scan1.vip  ora....ip.type ONLINE    OFFLINE               
ora....SM1.asm application    ONLINE    ONLINE    stationrac1
ora....C1.lsnr application    ONLINE    ONLINE    stationrac1
ora....ac1.gsd application    OFFLINE   OFFLINE               
ora....ac1.ons application    ONLINE    ONLINE    stationrac1
ora....ac1.vip ora....t1.type ONLINE    ONLINE    stationrac1

[grid@stationrac2 ~]$ crs_stat -t
Name           Type           Target    State     Host        
------------------------------------------------------------
ora....N1.lsnr ora....er.type ONLINE    ONLINE    stationrac2
ora....OTDG.dg ora....up.type ONLINE    ONLINE    stationrac2
ora.asm        ora.asm.type   ONLINE    ONLINE    stationrac2
ora.cvu        ora.cvu.type   ONLINE    ONLINE    stationrac2
ora.gsd        ora.gsd.type   OFFLINE   OFFLINE               
ora....network ora....rk.type ONLINE    ONLINE    stationrac2
ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    stationrac2
ora.ons        ora.ons.type   ONLINE    ONLINE    stationrac2
ora.scan1.vip  ora....ip.type ONLINE    ONLINE    stationrac2
ora....SM1.asm application    ONLINE    ONLINE    stationrac2
ora....ac2.gsd application    OFFLINE   OFFLINE               
ora....ac2.ons application    ONLINE    ONLINE    stationrac2
ora....ac2.vip ora....t1.type ONLINE    ONLINE    stationra

数据库软件安装

数据库软件安装
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-3-29 13:30 , Processed in 0.043755 second(s), 36 queries .

快速回复 返回顶部 返回列表