1 2 Previous Next 22 Replies Latest reply: Feb 5, 2014 10:53 PM by Shivendra Narain Nirala RSS

    11gr2 Rac Install: Stuck at the DNS SCAN portion.

    Xev Bellringer
      • Hi Guys, it's Xev.

       

      Ok, I have followed his install guide to the dot. http://www.oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-oel5-using-virtualbox.php#install_grid_infrastructure

       

       

      During the Grid Infrastructure install portion, it's stops me and tells me that "No Locally adapter is defined" when I am right here, it won't let me past this point right below...

       

      http://www.oracle-base.com/articles/11g/images/ol5-112-rac/47-grid-ssh-connectivity.jpg

       

      Now, this install document, tells you to put the 3 SCAN Ip addresses in the /ect/hosts file and does not tell you that you need to install DNS on a server and configure it, or does he? The way he says it to

      me just doesn't make sense.

       

      My question is to only people that have actually installed 11gr2 RAC using VirtualBox and using oracle linux 5.8.

       

      He says in the install document this right here, but some how i think he is just flat out wrong.

       

      I quote from the install document,,,

       

      If you are not using DNS, the "/etc/hosts" file must contain the following information.

      127.0.0.1 localhost.localdomain localhost

      # Public

      192.168.0.101 ol5-112-rac1.localdomain ol5-112-rac1

      192.168.0.102 ol5-112-rac2.localdomain ol5-112-rac2

      # Private

      192.168.1.101 ol5-112-rac1-priv.localdomain ol5-112-rac1-priv

      192.168.1.102 ol5-112-rac2-priv.localdomain ol5-112-rac2-priv

      # Virtual

      192.168.0.103 ol5-112-rac1-vip.localdomain ol5-112-rac1-vip

      192.168.0.104 ol5-112-rac2-vip.localdomain ol5-112-rac2-vip

      # SCAN

      192.168.0.105 ol5-112-scan.localdomain ol5-112-scan

      192.168.0.106 ol5-112-scan.localdomain ol5-112-scan

      192.168.0.107 ol5-112-scan.localdomain ol5-112-scan

       

      Note. The SCAN address should not really be defined in the hosts file. Instead is should be defined on the DNS to round-robin between 3 addresses on the same subnet as the public IPs. For this installation, we will compromise and use the hosts file. This is not possible if you are using 11.2.0.2 onward.

      If you are using DNS, then only the first line needs to be present in the "/etc/hosts" file. The other entries are defined in the DNS, as described here. Having said that, I typically include all but the SCAN addresses..

       

      END QUOTE.

       

      So, Guys, what does he actually mean with this? MY Grid install fails when it's trying to resolved the scan. DO I need to install DNS like he gives in the link above, OR can the install work with the SCAN in the /ect/hosts file? I Personally think this is just wrong, and you have to have DNS working 3 ip round-robin for the SCAN to work.

       

      Please only reply to this thread if you have actually successfully installled 11rg2 Rac (11.0.1) on Oracle Linux 5.8 using VirtualBox, or actually know where i am going wrong by your own experience, not just goggle searching.....but you got it to work....

       

      I am begging on my knees for help with this, since I have been at this for weeks now.

       

      If you help me through this, I'll be your friend

       

      Xev.

       

        • 1. Re: 11gr2 Rac Install: Stuck at the DNS SCAN portion.
          Xev Bellringer

          SO 32 people have seen this with no answer? GEEZ guys.

           

          How many of the 32 viewers have installed 11gr2 RAC I wonder?

           

          Somebody please help!

          • 2. Re: 11gr2 Rac Install: Stuck at the DNS SCAN portion.
            Shivendra Narain Nirala

            Hi Bellringer

             

            Oracle strongly recommend not to use scan ip in /etc/hosts file , this address should comes from DNS setting , indicating the scan ip in host file is just work around which triggers to fails many configuration at the end of grid infrastructure installation .

             

            So ,my suggestion is to use DNS and mentioned three scan ip over there and figure out they are reachable by nslookup  command and remove the SCAN ip from /etc/hosts file .

             

            Regards

             

            Shivendra Narain Nirala

            • 3. Re: 11gr2 Rac Install: Stuck at the DNS SCAN portion.
              Xev Bellringer

              Shivendra Hun, thank you so much for replying. I was getting worried when i didn't see anything from anybody.


              The thing is, I don't know how to set up DNS and when i tried to set up DNS, i got confused, since i am not a networking person.


              I will get the install back to that point and when i am at that point can you please help me through it?


              Do i need to use "GNS" instead of "DNS"....


              Is there a problem setting up DNS at your home router? How do configure the scan in relation to the other public and private and vip ip[ addresses?


              I just need a touch of help.


              The first thing i will do is remove the SCAN ip addresses from the /ect/hosts file like you said.


              But i have so many questions about DNS. I doesn't look to complicated but i tried it once and it didn't work, but this time i will use the nslookup command.


              I have decided to humble myself and make a public apology to Hoek. He didn't deserve all that.



              • 4. Re: 11gr2 Rac Install: Stuck at the DNS SCAN portion.
                Shivendra Narain Nirala

                Hi Bellringer

                 

                Always welcome .

                 

                You can use GNS but for this , you have to configure DHCP on your network (all the nodes ) .

                 

                Remember SCAN  can be used as standalone OR as the part of GNS , so if you want to use GNS , SCAN will come under it other wise use only SCAN which is resolvable by DNS.

                 

                At this moment , choice is yours .

                 

                As far as configuration of DHCP or DNS is concerned , you can take help of system admin , otherwise if you just want to install RAC on two node, here is the configuration of DNS Server , which will help to install RAC on two node without any issue (it is tested and verified by me ,and you face any problem , ping me) :-

                 

                shivenracdba: configure DNS for Installtion of Oracle Grid Infrastructure RAC cluster

                 

                Regards

                 

                Shivendra Narain Nirala

                • 5. Re: 11gr2 Rac Install: Stuck at the DNS SCAN portion.
                  Xev Bellringer

                  Hi Shivendra,

                  You are so wonderful! I will try this and report back the results!

                  I am very excited and happy that there is hope.

                  • 6. Re: 11gr2 Rac Install: Stuck at the DNS SCAN portion.
                    Shivendra Narain Nirala

                    Thanks .. wish you best of luck .. have a wonderful career.

                    • 7. Re: 11gr2 Rac Install: Stuck at the DNS SCAN portion.
                      Xev Bellringer
                      Shivendra,

                       

                      On my Oracle Linux 5.8 EUK i don't have the path mentioned on the "configure DNS for Installtion of Oracle Grid Infrastructure RAC cluster" documents.

                      The path for "named" is different. Is it ok?

                       

                      I just installed the DNS Server called "yum install bind-libs bind bind-utils" and "yum install system-config-bind" will this DNS Server work?

                       

                      When I search for named after the install I find it here.

                       

                      [root@ol5-112-rac1 /]# find -name 'named' -print

                      ./usr/sbin/named

                      ./usr/share/system-config-bind/profiles/default/named

                      ./usr/share/logwatch/scripts/services/named

                      ./usr/share/doc/bind-9.3.6/sample/var/named

                      ./etc/rc.d/init.d/named

                      ./etc/sysconfig/named

                      ./etc/logrotate.d/named

                      ./var/named

                      ./var/run/named

                       

                      Which one do I use? And is this DNS Server ok for RAC?

                      • 8. Re: 11gr2 Rac Install: Stuck at the DNS SCAN portion.
                        Shivendra Narain Nirala

                        Hi Bellringer

                         

                        Please use /var/named directory , create necessary directory which is mentioned in the link and config DNS and take backup of all previous named files before configuration .

                         

                        From your output , DNS has been installed , only configuration has been left and this is OK for RAC .

                         

                        Regards

                         

                        Shivendra Narain Nirala

                        • 9. Re: 11gr2 Rac Install: Stuck at the DNS SCAN portion.
                          Xev Bellringer

                          Hi Shivendra, I will do as you say. I am so glad that this DNS Server will work. I cannot wait to get RAC running

                          • 10. Re: 11gr2 Rac Install: Stuck at the DNS SCAN portion.
                            Xev Bellringer

                            Hi Shivendra,


                            I followed the instructions on shivenracdba: configure DNS for Installtion of Oracle Grid Infrastructure RAC cluster

                            named starts right up with no errors, but when i try to do the nslookups for both nodes and the scan cluster it fails with these errors...


                            This is what happens on rac, the primary node.


                            [oracle@rac1 grid]$ nslookup rac

                            ;; Got SERVFAIL reply from 192.168.72.129, trying next server

                            ;; Got SERVFAIL reply from 192.168.72.129, trying next server

                            Server:         192.168.72.128

                            Address:        192.168.72.128#53

                             

                             

                            ** server can't find rac: SERVFAIL

                             

                             

                            [oracle@rac1 grid]$ nslookup rac2

                            ;; Got SERVFAIL reply from 192.168.72.129, trying next server

                            ;; Got SERVFAIL reply from 192.168.72.129, trying next server

                            Server:         192.168.72.128

                            Address:        192.168.72.128#53

                             

                             

                            ** server can't find rac2: SERVFAIL

                             

                            [oracle@rac1 grid]$ nslookup rac-cluster-scan

                            ;; Got SERVFAIL reply from 192.168.72.129, trying next server

                            ;; Got SERVFAIL reply from 192.168.72.129, trying next server

                            Server:         192.168.72.128

                            Address:        192.168.72.128#53

                             

                             

                            ** server can't find rac-cluster-scan: SERVFAIL

                             

                            This is what happens on rac2, the secondary node.

                             

                            [oracle@rac2 ~]$ nslookup rac

                            ;; Got SERVFAIL reply from 192.168.72.129, trying next server

                            ;; Got SERVFAIL reply from 192.168.72.129, trying next server

                            Server:         192.168.72.128

                            Address:        192.168.72.128#53

                             

                             

                            ** server can't find rac: SERVFAIL

                             

                            [oracle@rac2 ~]$ nslookup rac2

                            ;; Got SERVFAIL reply from 192.168.72.129, trying next server

                            ;; Got SERVFAIL reply from 192.168.72.129, trying next server

                            Server:         192.168.72.128

                            Address:        192.168.72.128#53

                             

                             

                            ** server can't find rac2: SERVFAIL

                             

                            [oracle@rac2 ~]$ nslookup rac-cluster-scan

                            ;; Got SERVFAIL reply from 192.168.72.129, trying next server

                            ;; Got SERVFAIL reply from 192.168.72.129, trying next server

                            Server:         192.168.72.128

                            Address:        192.168.72.128#53

                             

                             

                            ** server can't find rac-cluster-scan: SERVFAIL

                             

                            Now, this is what I for all the files that I have configured......I hope they are right?

                             

                            Do i need to run the named DNS server on both nodes? It's running on both nodes now...and the service starts..

                             

                            Here are all my files that pertain to the DNS configuration for RAC.

                             

                            These are the files that are on "rac" the primary node....

                             

                            [root@rac1 named]# cat forward.zone

                            $TTL 86400

                            @          IN     SOA    rac.  rac. (

                                                     42 ; serial (d. adams)

                                                     3H ; refresh

                                                    15M ; retry

                                                     1W ; expiry

                                                     1D ) ; minimum

                            @          IN   NS     rac.

                            rac       IN   A      192.168.72.128

                            localhost                     IN A    127.0.0.1

                            rac2                          IN A    192.168.72.129

                            rac-vip                       IN A    192.168.72.102

                            rac2-vip                      IN A    192.168.72.104

                            rac-cluster-scan              IN A    192.168.72.106

                            rac-cluster-scan              IN A    192.168.72.107

                            rac-cluster-scan              IN A    192.168.72.108

                             

                            -----------------------------------------------------------------------------------------------------------------

                             

                            [root@rac1 named]# cat reverse.zone

                            $TTL 86400

                            @        IN     SOA    rac.  rac. (

                                                     42 ; serial (d. adams)

                                                     3H ; refresh

                                                    15M ; retry

                                                     1W ; expiry

                                                     1D ) ; minimum

                            @         IN   NS   rac.

                            128.72.168.192      IN   PTR  rac.

                            1.0.0.127           IN   PTR  localhost.

                            129.72.168.192      IN   PTR  rac2.

                            102.72.168.192      IN   PTR  rac-vip.

                            104.72.168.192      IN   PTR  rac2-vip.

                            106.72.168.192      IN   PTR  rac-cluster-scan.

                            107.72.168.192      IN   PTR  rac-cluster-scan.

                            108.72.168.192      IN   PTR  rac-cluster-scan.

                             

                            ----------------------------------------------------------------------------------------------------------------------------

                             

                            [root@rac1 named]# cat named.rfc1912.zones

                            zone "rac" IN {

                                             type master;

                                             file "forward.zone";

                                            

                            };

                            zone "72.168.192.in-addr.arpa" IN {

                                             type master;

                                             file "reverse.zone";

                                             };

                             

                            -------------------------------------------------------------------------------------------------------------------------------------

                             

                            [root@rac1 named]# cd /var/named/chroot/etc

                            [root@rac1 etc]# ls

                            named.conf

                            [root@rac1 etc]# cat named.conf

                            options {

                            listen-on port 53 { 192.168.72.128; };

                            # listen-on-v6 port 53 { ::1; };

                                    directory "/var/named";

                                    recursion yes;

                                    };

                            logging {

                                    channel default_debug {

                                    file "data/named.run";

                                    severity dynamic;

                                    };

                            };

                              include "named.rfc1912.zones";

                             

                            ------------------------------------------------------------------------------------------------------------------------------------------

                             

                            [root@rac1 etc]# cat /etc/resolv.conf

                            # Generated by NetworkManager

                             

                             

                             

                             

                            # No nameservers found; try putting DNS servers into your

                            # ifcfg files in /etc/sysconfig/network-scripts like so:

                            #

                            # DNS1=xxx.xxx.xxx.xxx

                            # DNS2=xxx.xxx.xxx.xxx

                            # DOMAIN=lab.foo.com bar.foo.com

                             

                             

                            search rac2

                            search rac

                            nameserver 192.168.72.129

                            nameserver 192.168.72.128

                             

                            -----------------------------------------------------------------------------------------------------------------------------------

                             

                            and this is the content of my /ect/hosts file on rac, the primary node.

                             

                            [root@rac1 etc]# cd /etc

                            [root@rac1 etc]# cat hosts

                            # Do not remove the following line, or various programs

                            # that require network functionality will fail.

                            127.0.0.1               rac1.localdomain rac1 localhost.localdomain localhost

                            ::1             localhost6.localdomain6 localhost6

                            #eth1 - PUBLIC

                            192.168.72.128 rac

                            192.168.72.129 rac2

                            #VIP

                            192.168.72.102 rac-vip

                            192.168.72.104 rac2-vip

                            #eth2 - PRIVATE

                            192.168.140.128 rac-pvt

                            192.168.140.129 rac2-pvt

                             

                             


                            These are the files that are on "rac2" the secondary node....


                            --------------------------------------------------------------------------------------------------------------------------------------------


                            [root@rac2 named]# cat forward.zone

                            $TTL 86400

                            @          IN     SOA    rac.  rac. (

                                                     42 ; serial (d. adams)

                                                     3H ; refresh

                                                    15M ; retry

                                                     1W ; expiry

                                                     1D ) ; minimum

                            @          IN   NS     rac.

                            rac       IN   A      192.168.72.128

                            localhost                     IN A    127.0.0.1

                            rac2                          IN A    192.168.72.129

                            rac-vip                       IN A    192.168.72.102

                            rac2-vip                      IN A    192.168.72.104

                            rac-cluster-scan              IN A    192.168.72.106

                            rac-cluster-scan              IN A    192.168.72.107

                            rac-cluster-scan              IN A    192.168.72.108

                             

                            ------------------------------------------------------------------------------------------------------------------------------------------------

                             

                            [root@rac2 named]# cat reverse.zone

                            $TTL 86400

                            @        IN     SOA    rac.  rac. (

                                                     42 ; serial (d. adams)

                                                     3H ; refresh

                                                    15M ; retry

                                                     1W ; expiry

                                                     1D ) ; minimum

                            @         IN   NS   rac.

                            128.72.168.192      IN   PTR  rac.

                            1.0.0.127           IN   PTR  localhost.

                            129.72.168.192      IN   PTR  rac2.

                            102.72.168.192      IN   PTR  rac-vip.

                            104.72.168.192      IN   PTR  rac2-vip.

                            106.72.168.192      IN   PTR  rac-cluster-scan.

                            107.72.168.192      IN   PTR  rac-cluster-scan.

                            108.72.168.192      IN   PTR  rac-cluster-scan.

                             

                            ----------------------------------------------------------------------------------------------------------------------------------------------

                             

                            [root@rac2 named]# cat named.rfc1912.zones

                            zone "rac" IN {

                                             type master;

                                             file "forward.zone";

                                             

                            };

                            zone "72.168.192.in-addr.arpa" IN {

                                             type master;

                                             file "reverse.zone";

                                             };

                             

                            --------------------------------------------------------------------------------------------------------------------------------------------

                             

                            [root@rac2 etc]# cat named.conf

                            options {

                            listen-on port 53 { 192.168.72.129; };

                            # listen-on-v6 port 53 { ::1; };

                                    directory "/var/named";

                                    recursion yes;

                                    };

                            logging {

                                    channel default_debug {

                                    file "data/named.run";

                                    severity dynamic;

                                    };

                            };

                              include "named.rfc1912.zones";

                             

                            --------------------------------------------------------------------------------------------------------------------------------------

                             

                            [root@rac2 etc]# cd /etc

                            [root@rac2 etc]# cat resolv.conf

                            # Generated by NetworkManager

                             

                             

                             

                             

                            # No nameservers found; try putting DNS servers into your

                            # ifcfg files in /etc/sysconfig/network-scripts like so:

                            #

                            # DNS1=xxx.xxx.xxx.xxx

                            # DNS2=xxx.xxx.xxx.xxx

                            # DOMAIN=lab.foo.com bar.foo.com

                             

                             

                            search rac2

                            search rac

                            nameserver 192.168.72.129

                            nameserver 192.168.72.128

                             

                            -------------------------------------------------------------------------------------------------------------------------------------

                            [root@rac2 ~]# cd /etc

                            [root@rac2 etc]# cat hosts

                            # Do not remove the following line, or various programs

                            # that require network functionality will fail.

                            127.0.0.1               rac2.localdomain rac2 localhost.localdomain localhost

                            ::1             localhost6.localdomain6 localhost6

                            #eth1 - PUBLIC

                            192.168.72.128 rac

                            192.168.72.129 rac2

                            #VIP

                            192.168.72.102 rac-vip

                            192.168.72.104 rac2-vip

                            #eth2 - PRIVATE

                            192.168.140.128 rac-pvt

                            192.168.140.129 rac2-pvt

                             

                            -----------------------------------------------------------------------------------------------------------------------------------

                             

                            That is everything on both nodes...

                             

                            Shivendra, what am I to do??


                            • 11. Re: 11gr2 Rac Install: Stuck at the DNS SCAN portion.
                              Vandana B -Oracle

                              Hi,

                               

                              We strongly recommend to have scan configured on DNS, however, for testing purpose you can also have scan details mentioned in /etc/hosts.

                               

                              Due to limitations of OS not being able to interpret multiple IP's for a single scan name, you need to mention only 1 scan IP for the scan name being defined for your environment.

                               

                              Regards,

                              Vandana - Oracle

                              • 12. Re: 11gr2 Rac Install: Stuck at the DNS SCAN portion.
                                Shivendra Narain Nirala

                                Hi Bellringer

                                 

                                Congrats .. You are very close to configuring the DNS . I have mentioned Note :- Make all these changes to all node , by interchanging the node name .

                                 

                                So , on the rac2 node , please configure as according to rac2 not as rac . Here is the example :-

                                 

                                cat forward.zone

                                $TTL 86400

                                @          IN     SOA    rac2.  rac2. (

                                                         42 ; serial (d. adams)

                                                         3H ; refresh

                                                        15M ; retry

                                                         1W ; expiry

                                                         1D ) ; minimum

                                @          IN   NS     rac.

                                rac2       IN   A      192.168.72.129

                                localhost                     IN A    127.0.0.1

                                rac                          IN A    192.168.72.128

                                rac-vip                       IN A    192.168.72.102

                                rac2-vip                      IN A    192.168.72.104

                                rac-cluster-scan              IN A    192.168.72.106

                                rac-cluster-scan              IN A    192.168.72.107

                                rac-cluster-scan              IN A    192.168.72.108

                                 

                                Configure all the files , according to rac 2 and set the commented first node rac in /etc/resolv.conf after that restart named service on all node and if you face the same issue after configuring this then comment the second node rac2 on rac in the configuration of /etc/resolv.conf .  Example :-

                                on node rac2 :-

                                 

                                search rac2

                                #search rac

                                nameserver 192.168.72.129

                                nameserver 192.168.72.128


                                Please make these changes and share the log if you face problem again .


                                Regards


                                Shivendra Narain Nirala

                                • 13. Re: 11gr2 Rac Install: Stuck at the DNS SCAN portion.
                                  Xev Bellringer

                                  HI Shivendra,

                                   

                                  I hope you are Happy and well..

                                   

                                   

                                  I made all the changes to the files on both nodes. nslookup did not work, but i decided to go ahead and try to do the grid install to see what would happen. I made a backup of the .vdi files, since I am doing this

                                  on virtualizaton using Oracle VirtualBox.

                                   

                                  The install gets to the point where you put in the scan name, but it says the name is  too long? It says it has a limit of 15 characters or less? It will not let me use this name

                                  for the SCAN name? rac-cluster-scan...

                                  I am going to shorten the length on the name and report back to you.

                                  • 14. Re: 11gr2 Rac Install: Stuck at the DNS SCAN portion.
                                    Shivendra Narain Nirala

                                    Hi Bell

                                     

                                    Thanks and wish you the same .. please see if any permission and ownership problem over files related to DNS . Most of the errors comes out when Named user privileges are missing .

                                     

                                    Regards

                                     

                                    Shivendra Narain Nirala

                                    1 2 Previous Next