In this Document
| Purpose |
| Scope |
| Details |
| DNS Setup Example |
| To verify delegation |
| DHCP Server Setup Example |
| Validate DHCP Server from cluvfy |
| Validating DHCP Server on OS level |
| Solaris |
| AIX |
| Linux |
| References |
The Grid Naming Service (GNS) is a new feature in the 11.2 Grid Infrastructure (GI). Its design is to simplify the management of the network configuration of the Real Application Cluster (RAC). When GNS is used, it eliminates the manual allocation of the Node and Single Client Access Name (SCAN) Virtual Internet Protocol (VIP) addresses. It also eliminates the need to configure VIP names and SCAN names in a Domain Name Server (DNS) as GNS provides the name resolution for the cluster. What this means is the GNS is configured as a delegated authority in DNS for the Cluster Nodes.
1. Allocate one static IP address on public network for the GNS VIP.
2. Setup GNS as a delegate for the cluster's sub-domain on the DNS server.
3. Validate that there is a DHCP server that is addressable by the cluster nodes.
When installing GI, there are 2 options:
1. Configure GNS and let it handle name resolution in the cluster subdomain.
2. Choose not to configure GNS and configure each Node and SCAN name with IP addresses defined in DNS
This note does not address option (2) as it is intended to cover how to setup the DNS servers and DHCP servers to work with GNS.
Please refer to following for more info:
Oracle? Grid Infrastructure
Installation Guide
Checking the Network Requirements
This article is an example of how to configure DNS to delegate a sub-domain to GNS. It also covers how DHCP is to be configured to allocate IP address for SCAN and Node VIP addresses.
Example below should be limited to an isolated test Lab. It should be set up by the Network Administrator, as it covers the configuration of the DNS server and DHCP server. This note does not cover the configuration of any of the cluster nodes.
This document is intended for Network Administrator, Oracle Clusterware/RAC Database Administrators and Oracle support engineers.
The example below is based on bind-9.3.4-10 on Linux though the setting should be generic for bind.
In this example, the GNS VIP is gns.us.eot.com with IP 120.0.0.200. The GNS subdomain is us.eot.com.
Main config /etc/named.conf:
options {
directory "/etc/named";
zone-statistics yes;
allow-transfer {"none";};
};
controls {
inet 127.0.0.1 allow { localhost; } keys { rndc; };
};
key rndc {
algorithm hmac-md5;
secret "tpyCbBuiElAdZMfkirg3RcrCtyql0kW42vT24LxXysM=";
};
zone "." {
type hint;
file "root";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "127.0.0";
notify no;
};
zone "eot.com" {
type master;
file "eot.com";
notify no;
};
zone "0.0.120.in-addr.arpa" {
type master;
file "120.0.0";
notify no;
};
The main config is for a single forward domain eot.com and reverse domain for subnet 120.0.0.0
eot.com zone config file under /etc/named as defined in named.conf file above:
$TTL 3D @ IN SOA eot.com. root.eot.com. ( 199609206 ; serial, todays date + todays serial # 8H ; refresh, seconds 2H ; retry, seconds 4W ; expire, seconds 1D ) ; minimum, seconds NS eot.com. MX 10 eot.com. ; Primary Mail Exchanger TXT "EOT Domain"
localhost A 127.0.0.1
eot.com. A 120.0.0.254 dns CNAME eot.com.
$ORIGIN us.eot.com. @ IN NS gns.us.eot.com. gns.us.eot.com. IN A 120.0.0.200
Above setting will delegate resolution of sub-domain us.eot.com to GNS VIP 120.0.0.200.
To verify delegation is working as expected, execute the following nslookup and both should resolve to same set of IP addresses once GI is up and running:
nslookup
nslookup
For example:
nslookup scan.us.eot.com 120.0.0.254
nslookup scan.us.eot.com 120.0.0.200
The example below is based on dhcp-3.0.5 on Linux:
/etc/dhcp/dhcp.conf
range 120.0.0.201 120.0.0.220;
default-lease-time 86400;
option routers 120.0.0.1;
option ip-forwarding off;
option broadcast-address 120.0.0.255;
option subnet-mask 255.255.255.0;
option time-offset -28800;
option ntp-servers 120.0.0.254;
option domain-name "us.eot.com";
option domain-name-servers 120.0.0.254;
}
The DHCP will provide dynamic IPs for client in the range of 120.0.0.201-120.0.0.220 with subnet mask of 255.255.255.0, the default lease time is 86400 seconds, timezone -28800 which is PST (GMT-8), with default gateway of 120.0.0.1 and default ntp and DNS server of 120.0.0.254
To verify whether client can get IP from DHCP server, as root:
Note: "cluvfy comp dhcp" is supported in 11.2.0.2 and above, to get latest CVU, go to http://otn.oracle.com
* If above command is not executed as root, the following error will be reported:
* If the following error is reported, refer to note 1316815.1
* If it fails to get IP from DHCP server, engage System Administrator or Network Administrator to verify DHCP server setup
Agent may not get an IP address if DHCP runs on one of the cluster node, this is fixed in bug 14638061 which is included in 12.1.0.2
Testing DHCP could potentially change local network config and cause connection lost, engage System Administrator if you have any doubt. All commands need to be executed as root.
Assuming e1000g0 is on public network, the following can be executed to test whether OS is able to get IP from DHCP server
# smitty dhcpcd
For details, please consult System Administrator
Assuming eth0 is on public network and eth0:9 is unused (ifconfig output should not have eth0:9, try a different one if eth0:9 is used), create /etc/sysconfig/network-scripts/ifcfg-eth0:9 with the following:
To start eth0:9:
To stop eth0:9:
Once the testing is done, remove /etc/sysconfig/network-scripts/ifcfg-eth0:9
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/13750068/viewspace-1200415/ ,如需转载,请注明出处,否则将追究法律责任。