【故障】linux下dns简单配置 (解决oracle 11gr2 prvf-5636)
2013年8月9日,星期五
安装oracle rac 11g r2 前的检测,怎么都不能pass,而且情况还是非常蹊跷,node1
的dns检测可以通过,node2的dns检测不能通过。而在node1和node2解析scan-ip都是正常的
node2
[root@node2
/]
# more
/etc/resolv.conf
search oracle.com
nameserver
10.
46.
113.
155
[root@node2 [root@node2 ~]# time nslookup scan-cluster
server: 10.46.113.155
address: 10.46.113.155#53
name: scan-cluster.oracle.com
address: 10.46.113.150
name: scan-cluster.oracle.com
address: 10.46.113.149
real 0m0.022s
user 0m0.001s
sys 0m0.007s
node1
[root@node1 etc]# more
/etc/resolv.conf
search oracle.com
nameserver 10.46.113.155
[root@node1 etc]# time nslookup scan-cluster
server: 10.46.113.155
address: 10.46.113.155#53
name: scan-cluster.oracle.com
address: 10.46.113.149
name: scan-cluster.oracle.com
address: 10.46.113.150
real 0m0.018s
user 0m0.001s
sys 0m0.009s
[root@node1 etc]# su - grid
node1-> cd grid/
node1-> ./runcluvfy.sh stage -pre crsinst -n node1,node2 -fixup -verbose
performing pre-checks for cluster
services setup
checking node reachability...
check: node reachability from node "node1"
destination
node reachable?
------------------------------------ ------------------------
node1 yes
node2 yes
result: node reachability check passed from node "node1"
checking user
equivalence...
check: user equivalence for user "grid"
node
name status
------------------------------------ ------------------------
node2 passed
node1 passed
result: user equivalence check passed for user "grid"
checking node
connectivity...
checking hosts config file...
node
name status
------------------------------------ ------------------------
node2 passed
node1 passed
verification
of the hosts config file successful
interface information for node "node2"
name ip
address subnet gateway def. gateway hw
address mtu
------ --------------- --------------- --------------- --------------- ----------------- ------
eth0 10.46.113.153 10.46.113.128 0.0.0.0 10.46.113.129 00:50:56:b0:71:aa 1500
eth1 192.168.113.102 192.168.113.0 0.0.0.0 10.46.113.129 00:50:56:b0:51:64 1500
interface information for node "node1"
name ip
address subnet gateway def. gateway hw
address mtu
------ --------------- --------------- --------------- --------------- ----------------- ------
eth0 10.46.113.151 10.46.113.128 0.0.0.0 10.46.113.129 00:50:56:b0:28:32 1500
eth1 192.168.113.101 192.168.113.0 0.0.0.0 10.46.113.129 00:50:56:b0:1b:31 1500
check: node
connectivity of subnet "10.46.113.128"
source destination connected?
------------------------------ ------------------------------ ----------------
node2[10.46.113.153] node1[10.46.113.151] yes
result: node connectivity passed for subnet "10.46.113.128" with node(s)
node2,node1
check: tcp connectivity of
subnet "10.46.113.128"
source destination connected?
------------------------------ ------------------------------ ----------------
node1:10.46.113.151 node2:10.46.113.153 passed
result: tcp connectivity check passed for subnet "10.46.113.128"
check: node connectivity of subnet "192.168.113.0"
source destination connected?
------------------------------ ------------------------------ ----------------
node2[192.168.113.102] node1[192.168.113.101] yes
result: node connectivity passed for subnet "192.168.113.0" with node(s)
node2,node1
check: tcp connectivity of
subnet "192.168.113.0"
source destination connected?
------------------------------ ------------------------------ ----------------
node1:192.168.113.101 node2:192.168.113.102 passed
result: tcp connectivity check passed for subnet "192.168.113.0"
interfaces found on subnet "10.46.113.128" that are likely candidates for vip are:
node2
eth0:10.46.113.153
node1 eth0:10.46.113.151
interfaces found
on subnet "192.168.113.0" that are likely candidates for a private interconnect are:
node2 eth1:192.168.113.102
node1 eth1:192.168.113.101
checking subnet mask consistency...
subnet mask
consistency check passed for subnet "10.46.113.128".
subnet mask consistency check passed for subnet "192.168.113.0".
subnet mask consistency check
passed.
result: node connectivity check
passed
checking multicast communication...
checking subnet "10.46.113.128" for multicast communication with multicast group "230.0.1.0"...
check of subnet "10.46.113.128" for multicast communication with multicast group "230.0.1.0" passed.
checking subnet "192.168.113.0" for multicast communication with multicast group "230.0.1.0"...
check of subnet "192.168.113.0" for multicast communication with multicast group "230.0.1.0" passed.
check of multicast
communication passed.
checking asmlib configuration.
node
name status
------------------------------------ ------------------------
node2 passed
node1 passed
result: check for asmlib
configuration passed.
check: total
memory
node
name available required status
------------ ------------------------ ------------------------ ----------
node2 3.8649gb (4052624.0kb) 1.5gb (1572864.0kb) passed
node1 3.8649gb (4052624.0kb) 1.5gb (1572864.0kb) passed
result: total memory check passed
check: available memory
node
name available required status
------------ ------------------------ ------------------------ ----------
node2 3.5984gb (3773232.0kb) 50mb (51200.0kb) passed
node1 3.4951gb (3664900.0kb) 50mb (51200.0kb) passed
result: available memory check passed
check: swap space
node
name available required status
------------ ------------------------ ------------------------ ----------
node2 8gb (8388600.0kb) 3.8649gb (4052624.0kb) passed
node1 8gb (8388600.0kb) 3.8649gb (4052624.0kb) passed
result: swap space check passed
check: free disk space for "node2:/tmp"
path node
name mount point available required status
---------------- ------------ ------------ ------------ ------------ ------------
/tmp node2 / 16.1377gb 1gb passed
result: free disk space check passed for "node2:/tmp"
check: free
disk space for "node1:/tmp"
path node name mount
point available required status
---------------- ------------ ------------ ------------ ------------ ------------
/tmp node1 / 9.0478gb 1gb passed
result: free disk space check passed for "node1:/tmp"
check: user
existence for "grid"
node
name status comment
------------ ------------------------ ------------------------
node2 passed exists(1100)
node1 passed exists(1100)
checking for multiple users with uid value 1100
result: check for multiple users with uid value 1100 passed
result: user
existence check passed for "grid"
check: group
existence for "oinstall"
node
name status comment
------------ ------------------------ ------------------------
node2 passed exists
node1 passed exists
result: group existence check passed for "oinstall"
check: group
existence for "dba"
node
name status comment
------------ ------------------------ ------------------------
node2 passed exists
node1 passed exists
result: group existence check passed for "dba"
check: membership
of user "grid" in group "oinstall" [as primary]
node
name user exists group exists user in group primary status
---------------- ------------ ------------ ------------ ------------ ------------
node2 yes yes yes yes passed
node1 yes yes yes yes passed
result: membership check for user "grid" in group "oinstall" [as primary]
passed
check: membership of user "grid" in group "dba"
node name user exists group
exists user in group status
---------------- ------------ ------------ ------------ ----------------
node2 yes yes yes passed
node1 yes yes yes passed
result: membership check for user "grid" in group "dba" passed
check: run level
node name run
level required status
------------ ------------------------ ------------------------ ----------
node2 5 3,5 passed
node1 5 3,5 passed
result: run level check passed
check: hard limits for "maximum open file descriptors"
node
name type available required status
---------------- ------------ ------------ ------------ ----------------
node2 hard 65536 65536 passed
node1 hard 65536 65536 passed
result: hard limits check passed for "maximum open file
descriptors"
check: soft limits for "maximum open file
descriptors"
node
name type available required status
---------------- ------------ ------------ ------------ ----------------
node2 soft 1024 1024 passed
node1 soft 1024 1024 passed
result: soft limits check passed for "maximum open file
descriptors"
check: hard limits for "maximum user
processes"
node
name type available required status
---------------- ------------ ------------ ------------ ----------------
node2 hard 16384 16384 passed
node1 hard 16384 16384 passed
result: hard limits check passed for "maximum user
processes"
check: soft limits for "maximum user
processes"
node
name type available required status
---------------- ------------ ------------ ------------ ----------------
node2 soft 2047 2047 passed
node1 soft 2047 2047 passed
result: soft limits check passed for "maximum user
processes"
check: system
architecture
node
name available required status
------------ ------------------------ ------------------------ ----------
node2 x86_64 x86_64 passed
node1 x86_64 x86_64 passed
result: system architecture check passed
check: kernel version
node
name available required status
------------ ------------------------ ------------------------ ----------
node2 2.6.32-200.13.1.el5uek 2.6.18 passed
node1 2.6.32-200.13.1.el5uek 2.6.18 passed
result: kernel version check passed
check: kernel parameter for "semmsl"
node
name current configured required status comment
---------------- ------------ ------------ ------------ ------------ ------------
node2 250 250 250 passed
node1 250 250 250 passed
result: kernel parameter check passed for "semmsl"
check: kernel
parameter for "semmns"
node
name current configured required status comment
---------------- ------------ ------------ ------------ ------------ ------------
node2 32000 32000 32000 passed
node1 32000 32000 32000 passed
result: kernel parameter check passed for "semmns"
check: kernel
parameter for "semopm"
node
name current configured required status comment
---------------- ------------ ------------ ------------ ------------ ------------
node2 100 100 100 passed
node1 100 100 100 passed
result: kernel parameter check passed for "semopm"
check: kernel
parameter for "semmni"
node
name current configured required status comment
---------------- ------------ ------------ ------------ ------------ ------------
node2 128 128 128 passed
node1 128 128 128 passed
result: kernel parameter check passed for "semmni"
check: kernel
parameter for "shmmax"
node
name current configured required status comment
---------------- ------------ ------------ ------------ ------------ ------------
node2 4398046511104 4398046511104 2074943488 passed
node1 4398046511104 4398046511104 2074943488 passed
result: kernel parameter check passed for "shmmax"
check: kernel
parameter for "shmmni"
node
name current configured required status comment
---------------- ------------ ------------ ------------ ------------ ------------
node2 4096 4096 4096 passed
node1 4096 4096 4096 passed
result: kernel parameter check passed for "shmmni"
check: kernel
parameter for "shmall"
node
name current configured required status comment
---------------- ------------ ------------ ------------ ------------ ------------
node2 2097152 2097152 2097152 passed
node1 2097152 2097152 2097152 passed
result: kernel parameter check passed for "shmall"
check: kernel
parameter for "file-max"
node
name current configured required status comment
---------------- ------------ ------------ ------------ ------------ ------------
node2 6815744 6815744 6815744 passed
node1 6815744 6815744 6815744 passed
result: kernel parameter check passed for "file-max"
check: kernel
parameter for "ip_local_port_range"
node
name current configured required status comment
---------------- ------------ ------------ ------------ ------------ ------------
node2 between 9000.0 & 65500.0 between 9000.0 & 65500.0 between 9000.0 & 65500.0 passed
node1 between 9000.0 & 65500.0 between 9000.0 & 65500.0 between 9000.0 & 65500.0 passed
result: kernel parameter check passed for "ip_local_port_range"
check: kernel parameter for "rmem_default"
node
name current configured required status comment
---------------- ------------ ------------ ------------ ------------ ------------
node2 262144 262144 262144 passed
node1 262144 262144 262144 passed
result: kernel parameter check passed for "rmem_default"
check: kernel parameter for "rmem_max"
node
name current configured required status comment
---------------- ------------ ------------ ------------ ------------ ------------
node2 4194304 4194304 4194304 passed
node1 4194304 4194304 4194304 passed
result: kernel parameter check passed for "rmem_max"
check: kernel
parameter for "wmem_default"
node
name current configured required status comment
---------------- ------------ ------------ ------------ ------------ ------------
node2 262144 262144 262144 passed
node1 262144 262144 262144 passed
result: kernel parameter check passed for "wmem_default"
check: kernel parameter for "wmem_max"
node
name current configured required status comment
---------------- ------------ ------------ ------------ ------------ ------------
node2 1048586 1048586 1048576 passed
node1 1048586 1048586 1048576 passed
result: kernel parameter check passed for "wmem_max"
check: kernel
parameter for "aio-max-nr"
node
name current configured required status comment
---------------- ------------ ------------ ------------ ------------ ------------
node2 1048576 1048576 1048576 passed
node1 1048576 1048576 1048576 passed
result: kernel parameter check passed for "aio-max-nr"
check: package existence for "make"
node
name available required status
------------ ------------------------ ------------------------ ----------
node2 make-3.81-3.el5 make-3.81 passed
node1 make-3.81-3.el5 make-3.81 passed
result: package existence check passed for "make"
check: package
existence for "binutils"
node
name available required status
------------ ------------------------ ------------------------ ----------
node2 binutils-2.17.50.0.6-14.el5 binutils-2.17.50.0.6 passed
node1 binutils-2.17.50.0.6-14.el5 binutils-2.17.50.0.6 passed
result: package existence check passed for "binutils"
check: package existence for "gcc(x86_64)"
node
name available required status
------------ ------------------------ ------------------------ ----------
node2 gcc(x86_64)-4.1.2-51.el5 gcc(x86_64)-4.1.2 passed
node1 gcc(x86_64)-4.1.2-51.el5 gcc(x86_64)-4.1.2 passed
result: package existence check passed for "gcc(x86_64)"
check: package existence for "libaio(x86_64)"
node
name available required status
------------ ------------------------ ------------------------ ----------
node2 libaio(x86_64)-0.3.106-5 libaio(x86_64)-0.3.106 passed
node1 libaio(x86_64)-0.3.106-5 libaio(x86_64)-0.3.106 passed
result: package existence check passed for "libaio(x86_64)"
check: package existence for "glibc(x86_64)"
node
name available required status
------------ ------------------------ ------------------------ ----------
node2 glibc(x86_64)-2.5-65 glibc(x86_64)-2.5-24 passed
node1 glibc(x86_64)-2.5-65 glibc(x86_64)-2.5-24 passed
result: package existence check passed for "glibc(x86_64)"
check: package existence for "compat-libstdc -33(x86_64)"
node
name available required status
------------ ------------------------ ------------------------ ----------
node2 compat-libstdc-33(x86_64)-3.2.3-61 compat-libstdc-33(x86_64)-3.2.3 passed
node1 compat-libstdc-33(x86_64)-3.2.3-61 compat-libstdc-33(x86_64)-3.2.3 passed
result: package existence check passed for "compat-libstdc -33(x86_64)"
check: package existence for "elfutils-libelf(x86_64)"
node
name available required status
------------ ------------------------ ------------------------ ----------
node2 elfutils-libelf(x86_64)-0.137-3.el5 elfutils-libelf(x86_64)-0.125 passed
node1 elfutils-libelf(x86_64)-0.137-3.el5 elfutils-libelf(x86_64)-0.125 passed
result: package existence check passed for "elfutils-libelf(x86_64)"
check: package existence for "elfutils-libelf-devel"
node
name available required status
------------ ------------------------ ------------------------ ----------
node2 elfutils-libelf-devel-0.137-3.el5 elfutils-libelf-devel-0.125 passed
node1 elfutils-libelf-devel-0.137-3.el5 elfutils-libelf-devel-0.125 passed
result: package existence check passed for "elfutils-libelf-devel"
check: package existence for "glibc-common"
node
name available required status
------------ ------------------------ ------------------------ ----------
node2 glibc-common-2.5-65 glibc-common-2.5 passed
node1 glibc-common-2.5-65 glibc-common-2.5 passed
result: package existence check passed for "glibc-common"
check: package existence for "glibc-devel(x86_64)"
node
name available required status
------------ ------------------------ ------------------------ ----------
node2 glibc-devel(x86_64)-2.5-65 glibc-devel(x86_64)-2.5 passed
node1 glibc-devel(x86_64)-2.5-65 glibc-devel(x86_64)-2.5 passed
result: package existence check passed for "glibc-devel(x86_64)"
check: package existence for "glibc-headers"
node
name available required status
------------ ------------------------ ------------------------ ----------
node2 glibc-headers-2.5-65 glibc-headers-2.5 passed
node1 glibc-headers-2.5-65 glibc-headers-2.5 passed
result: package existence check passed for "glibc-headers"
check: package existence for "gcc-c (x86_64)"
node
name available required status
------------ ------------------------ ------------------------ ----------
node2 gcc-c(x86_64)-4.1.2-51.el5 gcc-c(x86_64)-4.1.2 passed
node1 gcc-c(x86_64)-4.1.2-51.el5 gcc-c(x86_64)-4.1.2 passed
result: package existence check passed for "gcc-c (x86_64)"
check: package existence for "libaio-devel(x86_64)"
node
name available required status
------------ ------------------------ ------------------------ ----------
node2 libaio-devel(x86_64)-0.3.106-5 libaio-devel(x86_64)-0.3.106 passed
node1 libaio-devel(x86_64)-0.3.106-5 libaio-devel(x86_64)-0.3.106 passed
result: package existence check passed for "libaio-devel(x86_64)"
check: package existence for "libgcc(x86_64)"
node
name available required status
------------ ------------------------ ------------------------ ----------
node2 libgcc(x86_64)-4.1.2-51.el5 libgcc(x86_64)-4.1.2 passed
node1 libgcc(x86_64)-4.1.2-51.el5 libgcc(x86_64)-4.1.2 passed
result: package existence check passed for "libgcc(x86_64)"
check: package existence for "libstdc (x86_64)"
node
name available required status
------------ ------------------------ ------------------------ ----------
node2 libstdc(x86_64)-4.1.2-51.el5 libstdc(x86_64)-4.1.2 passed
node1 libstdc(x86_64)-4.1.2-51.el5 libstdc(x86_64)-4.1.2 passed
result: package existence check passed for "libstdc (x86_64)"
check: package existence for "libstdc -devel(x86_64)"
node
name available required status
------------ ------------------------ ------------------------ ----------
node2 libstdc-devel(x86_64)-4.1.2-51.el5 libstdc-devel(x86_64)-4.1.2 passed
node1 libstdc-devel(x86_64)-4.1.2-51.el5 libstdc-devel(x86_64)-4.1.2 passed
result: package existence check passed for "libstdc -devel(x86_64)"
check: package existence for "sysstat"
node
name available required status
------------ ------------------------ ------------------------ ----------
node2 sysstat-7.0.2-11.el5 sysstat-7.0.2 passed
node1 sysstat-7.0.2-11.el5 sysstat-7.0.2 passed
result: package existence check passed for "sysstat"
check: package
existence for "ksh"
node
name available required status
------------ ------------------------ ------------------------ ----------
node2 ksh-20100202-1.el5_6.6 ksh-20060214 passed
node1 ksh-20100202-1.el5_6.6 ksh-20060214 passed
result: package existence check passed for "ksh"
checking for multiple users with uid value 0
result: check for multiple users with uid value 0 passed
check: current
group id
result: current group id check
passed
starting check for consistency
of primary group of root user
node
name status
------------------------------------ ------------------------
node2 passed
node1 passed
check for consistency of root user's primary group passed
starting clock synchronization
checks using network time protocol(ntp)...
ntp configuration file check
started...
network time protocol(ntp) configuration file not found on any of
the nodes. oracle cluster time synchronization service(ctss) can be used instead
of ntp for time synchronization on the cluster nodes
no ntp daemons or
services were found to be running
result: clock synchronization check
using network time protocol(ntp) passed
checking core file name pattern
consistency...
core file name pattern consistency check
passed.
checking to make sure user "grid" is not in "root"
group
node
name status comment
------------ ------------------------ ------------------------
node2 passed does
not exist
node1 passed does not
exist
result: user "grid" is not part of "root" group. check
passed
check default user file creation mask
node
name available required comment
------------ ------------------------ ------------------------ ----------
node2 0022 0022 passed
node1 0022 0022 passed
result:
default user file creation mask check passed
checking consistency of file
"/etc/resolv.conf" across nodes
checking the file "/etc/resolv.conf" to
make sure only one of domain and search entries is defined
file
"/etc/resolv.conf" does not have both domain and search entries
defined
checking if domain entry in file "/etc/resolv.conf" is consistent
across the nodes...
domain entry in file "/etc/resolv.conf" is consistent
across nodes
checking if search entry in file "/etc/resolv.conf" is
consistent across the nodes...
search entry in file "/etc/resolv.conf" is
consistent across nodes
checking file "/etc/resolv.conf" to make sure that
only one search entry is defined
all nodes have one search entry defined in
file "/etc/resolv.conf"
checking all nodes to make sure that search entry is
"oracle.com" as found on node "node2"
all nodes of the cluster have same
value for 'search'
checking dns response time for
an unreachable node
node
name status
------------------------------------ ------------------------
node2 failed
node1 passed
prvf-5636
: the dns response time for an unreachable node exceeded "15000" ms on following
nodes: node2
file "/etc/resolv.conf" is not consistent across
nodes
check: time zone consistency
result: time zone consistency
check passed
pre-check for cluster services setup was
unsuccessful.
checks did not pass for the following
node(s):
node2
我的dns配置如下,修改下面红色部分即可成功
[root@dns etc]# pwd
/var/named/chroot/etc
[root@dns
etc]# vim named.rfc1912.zones
// named.rfc1912.zones:
//
// provided by red hat caching-nameserver package
//
// isc bind named zone configuration for zones recommended by
// rfc 1912 section 4.1 : localhost tlds and address zones
//
// see /usr/share/doc/bind*/sample/ for example named configuration files.
//
#zone "." in {
# type
hint;
# file "named.ca";
#};
zone "." in
{ #//在查询一个不存在的主机名时,迅速返回servfail,从而避免prvf-5636.
type
hint;
file "/dev/null";
};
zone "localdomain" in {
type master;
file "localdomain.zone";
allow-update { none; };
};
zone "localhost" in {
type master;
file "localhost.zone";
allow-update { none; };
};
#
正向解析
zone "oracle.com" in {
type
master;
file "oracle.com.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" in {
type
master;
file "named.local";
allow-update { none; };
};
zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" in {
type master;
file "named.ip6.local";
allow-update { none; };
};
zone "255.in-addr.arpa" in {
type
master;
file "named.broadcast";
allow-update { none; };
};
zone "0.in-addr.arpa" in {
type
master;
file "named.zero";
allow-update { none; };
};
zone "113.46.10.in-addr.arpa" in {
type
master;
file "113.46.10.in-addr.arpa";
allow-update { none; };
};
named.conf配置
[root@dns etc]# more named.conf
//
// named.caching-nameserver.conf
//
// provided by red hat caching-nameserver package to configure the
// isc bind named(8) dns server as a caching only nameserver
// (as a localhost dns resolver
only).
//
// see /usr/share/doc/bind*/sample/ for example named
configuration files.
//
// do not edit this file - use
system-config-bind or an editor
// to create named.conf - edits
to this file will be lost on
// caching-nameserver package
upgrade.
//
options
{
listen-on port 53 { any;
};
listen-on-v6
port 53 { ::1;
};
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
// those options should be used
carefully because they disable port
// randomization
// query-source port 53;
// query-source-v6 port 53;
allow-query { any;
};
allow-query-cache { any;
};
};
logging {
channel default_debug {
file "data/named.run";
severity
dynamic;
};
};
view localhost_resolver {
match-clients { any;
};
match-destinations { any; };
recursion yes;
include "/etc/named.rfc1912.zones";
};
正反向解析文件
[root@dns named]# pwd
/var/named/chroot/var/named
[root@dns named]# more
113.46.10.in-addr.arpa
$ttl 86400
@ in soa localhost.
root.localhost. (
1997022700 ;
serial
28800 ;
refresh
14400 ;
retry
3600000 ;
expire
86400 ) ; minimum
in ns localhost.
1 in ptr localhost.
149 in ptr scan-cluster.oracle.com
150 in ptr scan-cluster.oracle.com
151 in ptr node1.oracle.com
153 in ptr node2.oracle.com
[root@dns
named]# more oracle.com.zone
$ttl 86400
@ in soa localhost root
(
42 ; serial (d.
adams)
3h ;
refresh
15m ;
retry
1w ;
expiry
1d ) ; minimum
in
ns localhost
localhost in a 127.0.0.1
scan-cluster in a 10.46.113.149
scan-cluster in a 10.46.113.150
node1 in
a 10.46.113.151
node2 in
a 10.46.113.153
参考:
阅读(6765) | 评论(0) | 转发(0) |