Install Cluster With GNS
Install Cluster With GNS
Install Cluster With GNS
--
[root@dnssrv Desktop]# service iptables stop
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
[root@dnssrv Desktop]# chkconfig iptables off
--vi /etc/dhcp/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
}
--
[root@dnssrv ~]# vi /etc/rc.d/init.d/dhcpd
-- modify
user=root
group=root
-- start
[root@dnssrv ~]# service dhcpd start
Starting dhcpd: [ OK ]
-- Cau hinh DNS
[root@dnssrv ~]# vi /etc/named.conf
options
{
/* make named use port 53 for the source of all queries, to allow
* firewalls to block all ports except 53:
*/
query-source port 53;
query-source-v6 port 53;
allow-transfer {"none";};
zone-statistics yes;
};
logging
{
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "oracle.com" IN {
type master;
file "oracle.com.zone";
allow-transfer { 192.168.197.240; };
};
zone "197.168.192.in-addr.arpa" IN {
type master;
file "oracle.com.reverse";
};
--
[root@dnssrv Desktop]# cd /var/named/
[root@dnssrv named]# vi oracle.com.zone
--
$TTL 86400
$ORIGIN oracle.com.
@ 1D IN SOA dnssrv.oracle.com. hostmaster.oracle.com. (
2002022401 ; serial
3H ; refresh
15 ; retry
1w ; expire
3h ; minimum
)
; main domain name servers
IN NS dnssrv.oracle.com.
dnssrv IN A 192.168.197.100
; A record for mail server above
;mail IN A 192.168.1.82
rac1 IN A 192.168.197.131
rac2 IN A 192.168.197.132
; sub-domain definitions
$ORIGIN rac.oracle.com.
@ IN NS gns.rac.oracle.com.
; sub-domain address records for name server only - glue record
gns IN A 192.168.197.240 ; 'glue' record
+++++++
$ttl 38400
oracle.com. IN SOA dnssrv.oracle.com. admin.oracle.com. (
1316874398
10800
3600
604800
38400 )
A 192.168.197.100
NS dnssrv ; name server for localdomain
dnssrv A 192.168.197.100
rac1 A 192.168.197.131
rac2 A 192.168.197.132
rac3 A 192.168.197.133
oralab-gns A 192.168.197.240 ; A record for the GNS
;
;sub-domain(oralab.oracle.com) definitions
$ORIGIN oralab.oracle.com.
@ IN NS oralab-gns.oracle.com. ; name server
+++++++
--
[root@dnssrv ~]# vi /var/named/oracle.com.reverse
$TTL 86400 ; 24 hours could have been written as 24h or 1d
@ 1D IN SOA oracle.com. hostmaster.oracle.com. (
2002022401 ; serial
3H ; refresh
15 ; retry
1w ; expire
3h ; minimum
)
IN NS dnssrv.oracle.com.
100 IN PTR dnssrv.oracle.com.
131 IN PTR rac1.oracle.com.
132 IN PTR rac2.oracle.com.
+++++++++++++++++++++++++++
$ttl 38400
197.168.192.in-addr.arpa. IN SOA dnssrv. admin.localdomain. (
1316875143
10800
3600
604800
38400
)
NS dnssrv.oracle.com.
100 PTR dnssrv.oracle.com.
131 PTR rac1.oracle.com
132 PTR rac2.oracle.com
133 PTR rac3.oracle.com
240 PTR oralab-gns.oracle.com. ; reverse mapping for GNS
+++++++++++++++++++++++++++
-- Start service ( co the theo doi tail -f /var/log/messages)
[root@dnssrv ~]# service named start
Starting named: [ OK ]
[root@dnssrv ~]# vi /etc/resolv.conf
# Generated by NetworkManager
search oracle.com
nameserver 192.168.197.100
-- Test DNS server
[root@dnssrv ~]# nslookup rac2
Server: 192.168.197.100
Address: 192.168.197.100#53
Name: rac2.oracle.com
Address: 192.168.197.132
--
[root@rac1 ~]# dig oralab-gns.oracle.com
;; QUESTION SECTION:
;oralab-gns.oracle.com. IN A
;; ANSWER SECTION:
oralab-gns.oracle.com. 38400 IN A 192.168.197.240
;; AUTHORITY SECTION:
oracle.com. 38400 IN NS dnssrv.oracle.com.
;; ADDITIONAL SECTION:
dnssrv.oracle.com. 38400 IN A 192.168.197.100
;; QUESTION SECTION:
;240.197.168.192.in-addr.arpa. IN PTR
;; ANSWER SECTION:
240.197.168.192.in-addr.arpa. 38400 IN PTR oralab-gns.oracle.com.
;; AUTHORITY SECTION:
197.168.192.in-addr.arpa. 38400 IN NS dnssrv.oracle.com.
;; ADDITIONAL SECTION:
dnssrv.oracle.com. 38400 IN A 192.168.197.100
--
VBoxManage clonehd D:\RAC_LAB_SGCTT\Share_disk\OCR_DISK.vdi D:\RAC_LAB_SGCTT_GNS\
Share_disk\OCR_DISK.vdi
--
[root@rac1 ~]# ifconfig -a | grep eth
eth3 Link encap:Ethernet HWaddr 08:00:27:33:B9:0A
eth4 Link encap:Ethernet HWaddr 08:00:27:70:0C:64
eth5 Link encap:Ethernet HWaddr 08:00:27:D0:E0:0C
--
rm -f /etc/udev/rules.d/70-persistent-net.rules
-- Cau hinh asm
[root@rac1 ~]# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x4843928d.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.