什么是HOSTS

发布网友 发布时间:2022-04-22 10:37

我来回答

2个回答

懂视网 时间:2022-05-06 10:00

安装AIX RAC过程中,在OUI的Network Interface Usage报INS-41112,从而使得安装无法继续 错误记录摘要 Cause?-?Installer has detected that network interface en6 does not maintain connectivity on all cluster nodes. Action?-?Ensure that the chosen in

安装AIX RAC过程中,在OUI的Network Interface Usage报INS-41112,从而使得安装无法继续
ins-41112
2


错误记录摘要

Cause?-?Installer has detected that network interface en6 does not maintain connectivity on all cluster nodes. 
Action?-?Ensure that the chosen interface has been configured across all cluster nodes. Additional Information:
Summary of the failed nodes xifenfei01 ?
-?PRVF-4190 : Verification of the hosts config file failed

hosts解析配置

10.70..68 xifenfei01
10.70..69 xifenfei01-vip
10.70..100 xifenfei01-priv
10.70..71 xifenfei02
10.70..72 xifenfei02-vip
10.70..101 xifenfei02-priv
10.70..79 xifenfei-scan

网卡配置

xifenfei01:/u01/soft/grid> ifconfig -a
en7: flags=1e084863,c0
 inet 10.70..100 netmask 0xffffffe0 broadcast 10.70..127
  tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0
en6: flags=1e084863,c0
 inet 10.70..68 netmask 0xffffffe0 broadcast 10.70..95
  tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0
lo0: flags=e08084b,c0
 inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
 inet6 ::1%1/0
  tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
xifenfei02/#ifconfig -a
en6: flags=1e084863,c0
 inet 10.70..71 netmask 0xffffffe0 broadcast 10.70..95
  tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0
en7: flags=1e084863,c0
 inet 10.70..101 netmask 0xffffffe0 broadcast 10.70..127
  tcp_sendspace 131072 tcp_recvspace 65536 rfc1323 0
lo0: flags=e08084b,c0
 inet 127.0.0.1 netmask 0xff000000 broadcast 127.255.255.255
 inet6 ::1%1/0
  tcp_sendspace 131072 tcp_recvspace 131072 rfc1323 1
xifenfei01/asmdisks#netstat -in 
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll 
en7 1500 link#2 0.11.25.bd.b8.7a 107 0 132 2 0 
en7 1500 10.70..96 10.70..100 107 0 132 2 0 
en6 1500 link#3 0.11.25.bd.a8.93 50015 0 36963 2 0 
en6 1500 10.70.. 10.70..68 50015 0 36963 2 0 
lo0 166 link#1 15 0 1588 0 0 
lo0 166 127 127.0.0.1 15 0 1588 0 0 
lo0 166 ::1%1 15 0 1588 0 0
xifenfei02/asmdisks#netstat -in 
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll 
en6 1500 link#2 0.11.25.bd.a8.a9 5401 0 3660 2 0 
en6 1500 10.70.. 10.70..71 5401 0 3660 2 0 
en7 1500 link#3 0.11.25.bd.51.d2 129 0 123 2 0 
en7 1500 10.70..96 10.70..101 129 0 123 2 0 
lo0 166 link#1 1249 0 1249 0 0 
lo0 166 127 127.0.0.1 1249 0 1249 0 0 
lo0 166 ::1%1 1249 0 1249 0 0

这里可以看到网卡和IP配置是匹配,但是两台主机网卡显示顺序不一样.查看EtherChannel配置,也是正常的
4
3


网络ping测试

xifenfei01:/u01/soft/grid> ping xifenfei01-priv
PING xifenfei01-priv: (10.70..100): 56 data bytes
 bytes from 10.70..100: icmp_seq=0 ttl=255 time=0 ms
 bytes from 10.70..100: icmp_seq=1 ttl=255 time=0 ms
xifenfei02/#ping xifenfei01-priv
PING xifenfei01-priv: (10.70..100): 56 data bytes
 bytes from 10.70..100: icmp_seq=0 ttl=255 time=0 ms
 bytes from 10.70..100: icmp_seq=1 ttl=255 time=0 ms

使用runcluvfy.sh检测网络配置

./runcluvfy.sh comp nodecon -i en7 -n xifenfei01-priv,xifenfei02-priv -verbose
xifenfei01:/u01/soft/grid> ./runcluvfy.sh comp nodecon -i en7 -n xifenfei01-priv,xifenfei02-priv -verbose
Verifying node connectivity 
Checking node connectivity...
Checking hosts config file...
 Node Name Status   Comment   
 ------------ ------------------------ ------------------------
 xifenfei02-priv passed   successful  
 xifenfei01-priv failed   Invalid Entry  
ERROR: 
PRVF-4190 : Verification of the hosts config file failed
Interface information for node "xifenfei02-priv"
 Name IP Address Subnet  Gateway  Def. Gateway HW Address MTU 
 ------ --------------- --------------- --------------- --------------- ----------------- ------
 en6 10.70..71 10.70.. 10.70..71 10.70..65 00:11:25:BD:A8:A9 1500 
 en7 10.70..101 10.70..96 10.70..101 10.70..65 00:11:25:BD:51:D2 1500 
Interface information for node "xifenfei01-priv"
 Name IP Address Subnet  Gateway  Def. Gateway HW Address MTU 
 ------ --------------- --------------- --------------- --------------- ----------------- ------
 en7 10.70..100 10.70..96 10.70..100 10.70..65 00:11:25:BD:B8:7A 1500 
 en6 10.70..68 10.70.. 10.70..68 10.70..65 00:11:25:BD:A8:93 1500 
Check: Node connectivity for interface "en7"
 Source    Destination   Connected? 
 ------------------------------ ------------------------------ ----------------
 xifenfei02-priv[10.70..101] xifenfei01-priv[10.70..100] yes  
Result: Node connectivity passed for interface "en7"
Check: TCP connectivity of subnet "10.70..96"
 Source    Destination   Connected? 
 ------------------------------ ------------------------------ ----------------
 xifenfei01:10.70..68  xifenfei02-priv:10.70..101 passed  
 xifenfei01:10.70..68  xifenfei01-priv:10.70..100 passed  
Result: TCP connectivity check passed for subnet "10.70..96"
Checking subnet mask consistency...
Subnet mask consistency check passed for subnet "10.70..".
Subnet mask consistency check passed for subnet "10.70..96".
Subnet mask consistency check passed.
Result: Node connectivity check failed
Verification of node connectivity was unsuccessful. 
Checks did not pass for the following node(s):
 xifenfei01-priv

这里显示xifenfei01-priv主机检测失败,报错为PRVF-4190,检查xifenfei01主机的hosts文件发现一处错误记录

xifenfei01/#vi /etc/hosts
"/etc/hosts" 113 lines, 3556 characters 
# @(#)47 1.1 src/bos/usr/sbin/netstart/hosts, cmdnet, bos530 7/24/91 10:
00:46
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# bos530 src/bos/usr/sbin/netstart/hosts 1.1
#
# Licensed Materials - Property of IBM
#
# (C) COPYRIGHT International Business Machines Corp. 1985,19
# All Rights Reserved
#
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

这里发现”00:46″是一个新行,而且是无效记录,除掉该行记录,继续runcluvfy.sh测试

xifenfei01:/u01/soft/grid> ./runcluvfy.sh comp nodecon -i en7 -n xifenfei01-priv,xifenfei02-priv -verbose
Verifying node connectivity 
Checking node connectivity...
Checking hosts config file...
 Node Name    Status   
 ------------------------------------ ------------------------
 xifenfei02-priv    passed   
 xifenfei01-priv    passed   
Verification of the hosts config file successful
Interface information for node "xifenfei02-priv"
 Name IP Address Subnet  Gateway  Def. Gateway HW Address MTU 
 ------ --------------- --------------- --------------- --------------- ----------------- ------
 en6 10.70..71 10.70.. 10.70..71 10.70..65 00:11:25:BD:A8:A9 1500 
 en7 10.70..101 10.70..96 10.70..101 10.70..65 00:11:25:BD:51:D2 1500 
Interface information for node "xifenfei01-priv"
 Name IP Address Subnet  Gateway  Def. Gateway HW Address MTU 
 ------ --------------- --------------- --------------- --------------- ----------------- ------
 en7 10.70..100 10.70..96 10.70..100 10.70..65 00:11:25:BD:B8:7A 1500 
 en6 10.70..68 10.70.. 10.70..68 10.70..65 00:11:25:BD:A8:93 1500 
Check: Node connectivity for interface "en7"
 Source    Destination   Connected? 
 ------------------------------ ------------------------------ ----------------
 xifenfei02-priv[10.70..101] xifenfei01-priv[10.70..100] yes  
Result: Node connectivity passed for interface "en7"
Check: TCP connectivity of subnet "10.70..96"
 Source    Destination   Connected? 
 ------------------------------ ------------------------------ ----------------
 xifenfei01:10.70..68  xifenfei02-priv:10.70..101 passed  
 xifenfei01:10.70..68  xifenfei01-priv:10.70..100 passed  
Result: TCP connectivity check passed for subnet "10.70..96"
Checking subnet mask consistency...
Subnet mask consistency check passed for subnet "10.70..".
Subnet mask consistency check passed for subnet "10.70..96".
Subnet mask consistency check passed.
Result: Node connectivity check passed
Verification of node connectivity was successful. 

除掉无效记录后,runcluvfy检查通过.OUI继续安装一切正常.
果然是由于/etc/hosts中出现无效记录,从而使得RAC安装检查无法通过,再次提醒各位安装RAC需要小心hosts文件
参考文档:PRVF-4190 Verification of the Hosts Config File Failed (Doc ID 1056025.1)
[INS-41112] Specified network interface doesnt maintain connectivity across cluster nodes. (Doc ID 1427202.1)

  • 安装 ORACLE 12C 单节点RAC
  • AIX常用命令之查看cpu/memory/swap/network/disk信息
  • 10g rac安装注意事项
  • hosts中缺少localhost.localdomain导致监听启动时间超长
  • 单网卡绑定多IP导致TNS-12542等错误
  • IP=FIRST作用说明
  • 使用PXE刷XD
  • 因域名解析导致数据库连接延迟分析
  • 热心网友 时间:2022-05-06 07:08

    Hosts是一个没有扩展名的系统文件,可以用记事本等工具打开,其作用就是将一些常用的网址域名与其对应的IP地址建立一个关联“数据库”,当用户在浏览器中输入一个需要登录的网址时,系统会首先自动从Hosts文件中寻找对应的IP地址,一旦找到,系统会立即打开对应网页,如果没有找到,则系统再会将网址提交DNS域名解析服务器进行IP地址的解析。

    (望楼主采纳哦)

    声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com