Oracle11gR2_RAC_SCAN搭配DNS实例On REHL5.3(1)

1,DNS Server Configuration

[root@ksa035 oracle]# cat /var/named/chroot/etc/named.caching-nameserver.conf

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 { localhost; };
};
logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};
view any_resolver {
        match-clients      { any; };
        match-destinations { any; };
        recursion yes;
        include "/etc/named.rfc1912.zones";
};

[root@ksa035 oracle]# cat /etc/named.rfc1912.zones

zone "cktire.com" IN {
        type master;
        file "cktire.com";
        allow-update { none; };
};

zone "161.150.10.in-addr.arpa" IN {
        type master;
        file "10.150.161.rev";
        allow-update { none; };
        allow-transfer {
10.150.161.35;
10.150.161.33;
10.150.161.34;
};
};

[root@ksa035 oracle]# cat /var/named/chroot/var/named/cktire.com
$TTL    86400
@               IN SOA  ksa035.cktire.com. root.cktire.com. (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
                IN NS           ksa035.cktire.com.
localhost       IN A            127.0.0.1
ksa035          IN A            10.150.161.35
ksa034          IN A            10.150.161.34
ksa033          IN A            10.150.161.33
ksa033-vip      IN A            10.150.161.63
ksa034-vip      IN A            10.150.161.64
ksa-scan        IN A            10.150.161.81
ksa-scan        IN A            10.150.161.82
ksa-scan        IN A            10.150.161.83
 

[root@ksa035 oracle]# cat /var/named/chroot/var/named/10.150.161.rev
$TTL    86400
@       IN      SOA     ksa035.cktire.com. root.ksa035.cktire.com.  (
                                      1997022700 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
161.150.10.in-addr.arpa.       IN      NS      ksa035.cktire.com.
35       IN      PTR     ksa035.cktire.com.
34       IN      PTR     ksa034.cktire.com.
33       IN      PTR     ksa033.cktire.com.
63       IN      PTR     ksa033-vip.cktire.com.
64       IN      PTR     ksa034-vip.cktire.com.
81       IN      PTR     ksa-scan.cktire.com.
82       IN      PTR     ksa-scan.cktire.com.
83       IN      PTR     ksa-scan.cktire.com.
[root@ksa035 oracle]# service named restart;
Stopping named: .                                          [  OK  ]
Starting named:                                            [  OK  ]

Client 解析验证ksa-scan,配置解析文件,验证如下

[[oracle@ksa034 ~]$ cat /etc/resolv.conf
domain cktire.com
search cktire.com
nameserver 10.150.161.35
[oracle@ksa034 ~]$ nslookup
> ksa-scan
Server:         10.150.161.35
Address:        10.150.161.35#53

Name:   ksa-scan.cktire.com
Address: 10.150.161.82
Name:   ksa-scan.cktire.com
Address: 10.150.161.83
Name:   ksa-scan.cktire.com
Address: 10.150.161.81

2,SCAN 增加及配置 scan1,scan2,scan3

[oracle@ksa034 ~]$ crsctl status resource -t;
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENER.lsnr
               ONLINE  ONLINE       ksa033
               ONLINE  ONLINE       ksa034
ora.asm
               ONLINE  ONLINE       ksa033                   Started
               ONLINE  ONLINE       ksa034                   Started
ora.eons
               ONLINE  ONLINE       ksa033
               ONLINE  ONLINE       ksa034
ora.gsd
               OFFLINE OFFLINE      ksa033
               OFFLINE OFFLINE      ksa034
ora.net1.network
               ONLINE  ONLINE       ksa033
               ONLINE  ONLINE       ksa034
ora.ons
               ONLINE  ONLINE       ksa033
               ONLINE  ONLINE       ksa034

--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       ksa034
ora.ksa.db
      1        ONLINE  ONLINE       ksa033                   Open
      2        ONLINE  ONLINE       ksa034                   Open
ora.ksa033.vip
      1        ONLINE  ONLINE       ksa033
ora.ksa034.vip
      1        ONLINE  ONLINE       ksa034
ora.oc4j
      1        OFFLINE OFFLINE
ora.scan1.vip
      1        ONLINE  ONLINE       ksa034
[oracle@ksa034 ~]$ srvctl status scan;
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node ksa034
[oracle@ksa034 ~]$ srvctl config scan;
SCAN name: ksa-scan.cktire.com, Network: 1/10.150.160.0/255.255.248.0/eth0
SCAN VIP name: scan1, IP: /ksa-scan.cktire.com/10.150.161.81

增加节点scan2,scan3

续~

 

~

你可能感兴趣的:(实例,dns,RAC,oracle11g,scan)