11gR2 INS-40724错误

在AIX 6.1上安装11gR2 RAC,无DNS,配置scan ip过程中出现错误:见截图
屏幕快照 2011 12 07 上午7 36 24

/etc/hosts配置如下:

192.168.4.54 xxx_aaaaaa_3_boot1
 192.168.5.54 xxx_aaaaaa_3_boot2
 138.199.10.15 xxx_aaaaaa_3_pers xxx_aaaaaa_3
 138.199.10.16 xxx_aaaaaa_3_svc xxx_aaaaaa3_vip
 192.168.6.55 xxx_crmsnn3_priv
192.168.4.55 xxx_aaaaaa_4_boot1 AIX要求的boot IP
 192.168.5.55 xxx_aaaaaa_4_boot2 AIX要求的boot IP
 138.199.10.17 xxx_aaaaaa_4_pers xxx_aaaaaa_4 主机的物理ip
 138.199.10.18 xxx_aaaaaa_4_svc xxx_aaaaaa4_vip 主机的浮动ip
 192.168.6.54 xxx_aaaaaa4_priv RAC的心跳IP
 138.199.10.19 bbbbb-scan

 

 

ifconfig:
 # ifconfig -a
 en0: inet 192.168.6.54 netmask 0xffffff00 broadcast 192.168.6.255
en2: inet 192.168.4.54 netmask 0xffffff00 broadcast 192.168.4.255
 inet 138.199.10.15 netmask 0xffffff00 broadcast 138.199.10.255
en6: inet 192.168.5.54 netmask 0xffffff00 broadcast 192.168.5.255
 inet 138.199.10.16 netmask 0xffffff00 broadcast 138.199.10.255
lo0: inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255

 

11gR2 RAC安装时,如要配置SCAN IP,可通过DNS/GNS或是直接配置/etc/hosts的方式,客户无DNS,只能通过配置/etc/hosts的方式解决,Oracle文档中可以看到对这种方式的描述:
However, in order to overcome the installation requirement without setting up a DNS-based SCAN resolution, you can use a hosts-file based workaround. In this case, you would use a typical hosts-file entry to resolve the SCAN to only 1 IP address and one IP address only. It is not possible to simulate the round-robin resolution that the DNS server does using a local host file. The host file look-up the OS performs will only return the first IP address that matches the name. Neither will you be able to do so in one entry (one line in the hosts-file). Thus, you will create only 1 SCAN for the cluster. (Note that you will have to change the hosts-file on all nodes in the cluster for this purpose.)注意,scan ip的配置需要写在每个节点上。

(文档:http://www.oracle.com/technetwork/database/clustering/overview/scan-129069.pdf

客户的问题如何解决呢?
首先在google上搜索,资源较少,但是搜到了这一篇:
https://forums.oracle.com/forums/thread.jspa?threadID=1093100
其中的回答是:
Define a public interface with a subnet matching the SCAN VIP or choose a SCAN VIP with a subnet matching the public interface.
这一块已经配置过了。google上没有什么太多的资源,进而继续在MOS上寻找,查找对应错误号,发现下面这一篇:
Solutions for Typical 11gR2 Grid Infrastructure/RAC Database runInstaller Issues [ID 1056713.1]
P: [INS-40724] No locally defined network interface matches the SCAN VIP subnet.
S: Public IP and SCAN VIP should be in same subnet, and public IP should be primary IP on a NIC.
前一句与之前论坛上的一致,但是后一句也同样重要,Public IP应为NIC上的主IP。

再次查看配置信息,发现如下问题:
1.en2上,Primary IP应配置为138.199.10.15
2.en6上的vip应该在配置完后才会出现,之所以现在出现,是由于手动配置的原因,需要删除
3.两节点/etc/hosts文件中的scan ip配置需要重新对比下,需要保证一致。

总结:
在遇到问题的时候,首先搜过google,没有合适的答案的时候,去搜索MOS,基本上这两步之后答案就可以找到。在查找的过程中,一定要认真仔细,不放过任何半句话。

普人特福的博客cnzz&51la for wordpress,cnzz for wordpress,51la for wordpress