{"id":1983,"date":"2013-03-10T05:50:11","date_gmt":"2013-03-10T05:50:11","guid":{"rendered":"http:\/\/www.oratraining.com\/blog\/?p=1983"},"modified":"2013-07-08T06:41:10","modified_gmt":"2013-07-08T06:41:10","slug":"add-additional-virtual-ethernet-card-and-perform-prerequisites-in-linux","status":"publish","type":"post","link":"https:\/\/www.oratraining.com\/blog\/2013\/03\/add-additional-virtual-ethernet-card-and-perform-prerequisites-in-linux\/","title":{"rendered":"Installing 11g RAC on Linux VM: Add additional virtual Ethernet card and perform prerequisites in Linux"},"content":{"rendered":"<p style=\"text-align: justify;\">Now since we have installed basic Linux VM as per our previous guide, we need to add additional Ethernet card for Oracle clusterware private interconnect IP.<\/p>\n<p style=\"text-align: justify;\">Make sure that the OS is shutdown cleanly and VM shows Powered off status.<\/p>\n<p style=\"text-align: justify;\">In VMWare, select the VM, right click and select Settings. Same option is available in Oracle VirtualBox as well.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031813_0548_Addaddition1.png\" \/><\/p>\n<p style=\"text-align: justify;\">\u00a0You will see above screen. Make sure that the memory is set to 2.5 GB (2560 MB). Click on &#8220;<strong>Add<\/strong>&#8221; to add new hardware<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031813_0548_Addaddition2.png\" \/><\/p>\n<p style=\"text-align: justify;\">\u00a0Select &#8220;<strong>Network Adapter<\/strong>&#8221; from the list and click <strong>Next<\/strong><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031813_0548_Addaddition3.png\" \/><\/p>\n<p style=\"text-align: justify;\">Select &#8220;<strong>Host-only<\/strong>&#8221; network and click <strong>Finish<\/strong><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031813_0548_Addaddition4.png\" \/><\/p>\n<p style=\"text-align: justify;\">The settings page should now look as above. Click <strong>Ok<\/strong> to close the window.<\/p>\n<p style=\"text-align: justify;\">Startup the Linux operating system in VM and login with root account.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031813_0548_Addaddition5.png\" \/><\/p>\n<p style=\"text-align: justify;\">Click on <strong>System-&gt; Administration-&gt; Network<\/strong> to open network configuration screen<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031813_0548_Addaddition6.png\" \/><\/p>\n<p style=\"text-align: justify;\">\u00a0You will see one interface eth0 here. Now we will add another interface in Linux for the new virtual network card. Click on <strong>New<\/strong><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031813_0548_Addaddition7.png\" \/><\/p>\n<p style=\"text-align: justify;\">Specify another IP address in different range. Our previous eth0 IP is 192.168.112.101 so we have selected different subnet 192.168.111.101 for eth1<\/p>\n<p style=\"text-align: justify;\">Do not specify any default gateway address here since these servers are generally connected to each other physically so in VM as well we will do the same.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031813_0548_Addaddition8.png\" \/><\/p>\n<p style=\"text-align: justify;\">Click <strong>Apply<\/strong><\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031813_0548_Addaddition9.png\" \/><\/p>\n<p style=\"text-align: justify;\">You will see that still new interface shows as <strong>Inactive<\/strong>. Select the interface and click &#8220;<strong>Activate<\/strong>&#8220;<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031813_0548_Addaddition10.png\" \/><\/p>\n<p style=\"text-align: justify;\">Now both will show up as &#8220;Active&#8221;. Make sure to save configuration by clicking on &#8220;File-&gt; Save&#8221;.<\/p>\n<p style=\"text-align: justify;\">Once you have saved the configuration, you can restart network service to see if the new configuration is still active.<\/p>\n<p style=\"text-align: justify;\">[root@dbhost1 ~] service network restart<\/p>\n<p style=\"text-align: justify;\">Comment out entries from <strong>\/etc\/resolv.conf<\/strong> to disable DNS search if you are not using DNS to resolve host names. This will greatly improve performance of VM in general especially NFS<\/p>\n<p style=\"text-align: justify;\">If you are just modifying existing Linux VM and changing host name only then make sure that the new hostname is already present in following file. For fresh installation this will be already present.<\/p>\n<p style=\"text-align: justify;\">[root@dbhost1 ~]# <strong>more \/etc\/sysconfig\/network<\/strong><\/p>\n<p style=\"text-align: justify;\">NETWORKING=yes<\/p>\n<p style=\"text-align: justify;\">NETWORKING_IPV6=yes<\/p>\n<p style=\"text-align: justify;\">HOSTNAME=dbhost1.paramlabs.com<\/p>\n<p style=\"text-align: justify;\">Change hostname as follows (if changing hostname of existing prepared Linux VM, otherwise not required)<\/p>\n<p style=\"text-align: justify;\">[root@dbhost1~]# <strong>hostname dbhost1.paramlabs.com<\/strong><\/p>\n<p style=\"text-align: justify;\">Create following entries in \/etc\/hosts file<\/p>\n<p style=\"text-align: justify;\">[root@ dbhost1~]#<strong> more \/etc\/hosts<\/strong><\/p>\n<p style=\"text-align: justify;\"># Do not remove the following line, or various programs<\/p>\n<p style=\"text-align: justify;\"># that require network functionality will fail.<\/p>\n<p style=\"text-align: justify;\">127.0.0.1 localhost.localdomain localhost<\/p>\n<p style=\"text-align: justify;\">#::1 localhost6.localdomain6 localhost6<\/p>\n<p style=\"text-align: justify;\">192.168.112.101 dbhost1.paramlabs.com <strong>dbhost1<\/strong><\/p>\n<p style=\"text-align: justify;\">192.168.112.102 dbhost2.paramlabs.com <strong>dbhost2<\/strong><\/p>\n<p style=\"text-align: justify;\">192.168.112.103 dbhost1-vip.paramlabs.com <strong>dbhost1-vip<\/strong><\/p>\n<p style=\"text-align: justify;\">192.168.112.104 dbhost2-vip.paramlabs.com <strong>dbhost2-vip<\/strong><\/p>\n<p style=\"text-align: justify;\">192.168.111.101 dbhost1-priv.paramlabs.com <strong>dbhost1-priv<\/strong><\/p>\n<p style=\"text-align: justify;\">192.168.111.102 dbhost2-priv.paramlabs.com <strong>dbhost2-priv<\/strong><\/p>\n<p style=\"text-align: justify;\">192.168.112.105 dbhost-scan.paramlabs.com <strong>dbhost-scan<\/strong><\/p>\n<p style=\"text-align: justify;\">192.168.112.101 nfshost.paramlabs.com <strong>nfshost<\/strong><\/p>\n<p style=\"text-align: justify;\">Let me explain why we have made these entries.<\/p>\n<p style=\"text-align: justify;\"><strong>dbhost1 and dbhost2<\/strong> are primary IP addresses for both Virtual nodes. Though we are yet to create node2, let us create these entries so that when we clone\/copy this VM, we will already have these entries present in second node.<\/p>\n<p style=\"text-align: justify;\"><strong>dbhost1-vip and dbhost2-vip<\/strong> are going to be used as VIP for 11gR2 RAC. These IPs will be assigned to interface aliases on respective host where vip1 and vip2 will be active. This will be handled transparently by Oracle RAC<\/p>\n<p style=\"text-align: justify;\"><strong>dbhost1-priv and dbhost2-priv<\/strong> are private interfaces for node1 and node2. These will work as interconnect IP addresses for these nodes. In physical servers, these interfaces are connected through a cross-cable or stand-alone switch (recommended). While in VM, this will be taken care of automatically.<\/p>\n<p style=\"text-align: justify;\">Make sure that you are able to ping primary IP of node1.<\/p>\n<p style=\"text-align: justify;\">[root@ dbhost1~]# <strong>ping dbhost1 -c1<\/strong><\/p>\n<p style=\"text-align: justify;\">PING dbhost1.paramlabs.com (192.168.112.101) 56(84) bytes of data.<\/p>\n<p style=\"text-align: justify;\">64 bytes from dbhost1.paramlabs.com (192.168.112.101): icmp_seq=1 ttl=64 time=0.024 ms<\/p>\n<p style=\"text-align: justify;\">&#8212; dbhost1.paramlabs.com ping statistics &#8212;<\/p>\n<p style=\"text-align: justify;\">1 packets transmitted, 1 received, 0% packet loss, time 0ms<\/p>\n<p style=\"text-align: justify;\">rtt min\/avg\/max\/mdev = 0.024\/0.024\/0.024\/0.000 ms<\/p>\n<p style=\"text-align: justify;\">If you are not using time synchronization using NTP then make sure that the service is stopped.<\/p>\n<p style=\"text-align: justify;\">[root@ dbhost1~]# <strong>service ntpd status<\/strong><\/p>\n<p style=\"text-align: justify;\">ntpd is stopped<\/p>\n<p>Run following on both nodes to rename ntp.conf file<\/p>\n<p>[root@ dbhost1~]#\u00a0<strong>mv \/etc\/ntp.conf \/etc\/ntp.conf.orig<\/strong><\/p>\n<p>[root@ dbhost2~]#\u00a0<strong>mv \/etc\/ntp.conf \/etc\/ntp.conf.orig<\/strong><\/p>\n<p style=\"text-align: justify;\">Let us now create required users.<\/p>\n<p style=\"text-align: justify;\">First create owner user for Oracle clusterware\/grid. Since we already have user named oracle (as part of our linux installation steps), we will make sure that the groups are set correctly.<\/p>\n<p style=\"text-align: justify;\">[root@ dbhost1~]# <strong>usermod -g dba -G oinstall oracle<\/strong><\/p>\n<p style=\"text-align: justify;\">[root@ dbhost1~]# <strong>passwd oracle<\/strong><\/p>\n<p style=\"text-align: justify;\">Changing password for user oracle.<\/p>\n<p style=\"text-align: justify;\">New UNIX password:<\/p>\n<p style=\"text-align: justify;\">Retype new UNIX password:<\/p>\n<p style=\"text-align: justify;\">passwd: all authentication tokens updated successfully.<\/p>\n<p style=\"text-align: justify;\">Now let us create user for database owner. Let&#8217;s name it <strong>oradb<\/strong><\/p>\n<p style=\"text-align: justify;\">[root@dbhost1 ~]# <strong>useradd -g dba -G oinstall oradb<\/strong><\/p>\n<p style=\"text-align: justify;\">[root@dbhost1 ~]# <strong>passwd oradb<\/strong><\/p>\n<p style=\"text-align: justify;\">Changing password for user oradb.<\/p>\n<p style=\"text-align: justify;\">New UNIX password:<\/p>\n<p style=\"text-align: justify;\">Retype new UNIX password:<\/p>\n<p style=\"text-align: justify;\">passwd: all authentication tokens updated successfully.<\/p>\n<p style=\"text-align: justify;\">Since the prerequisites are already installed as part of our Linux installation we will skip that for now. The clusterware installation might ask for some more pre-requisites but it will provide a fix script to automatically change the values so we can go ahead here.<\/p>\n<p style=\"text-align: justify;\">Let us create the required directories so that when we clone this VM, the second node also will already have these ready.<\/p>\n<p style=\"text-align: justify;\">[root@ dbhost1~]# <strong>mkdir -p \/app\/oracle<\/strong><\/p>\n<p style=\"text-align: justify;\">[root@ dbhost1~]# <strong>mkdir -p \/app\/11.2.0\/grid<\/strong><\/p>\n<p style=\"text-align: justify;\">[root@dbhost1 ~]# <strong>chown oracle:dba \/app<\/strong><\/p>\n<p style=\"text-align: justify;\">[root@ dbhost1~]# <strong>chmod -R g+w \/app\/<\/strong><\/p>\n<p style=\"text-align: justify;\">Now let us create the mount points. Here we will mount the shared file system on both nodes. For now just create these files. The shared file system will be created in later step.<\/p>\n<p style=\"text-align: justify;\">[root@dbhost1 ~]# <strong>mkdir \/u01<\/strong><\/p>\n<p style=\"text-align: justify;\">[root@dbhost1 ~]# <strong>mkdir \/u02<\/strong><\/p>\n<p style=\"text-align: justify;\">[root@dbhost1 ~]# <strong>mkdir \/u03<br \/>\n<\/strong><\/p>\n<p style=\"text-align: justify;\">[root@dbhost1 ~]# <strong>chown oracle:dba \/u01<br \/>\n<\/strong><\/p>\n<p style=\"text-align: justify;\">[root@dbhost1 ~]# <strong>chown oracle:dba \/u02<\/strong><\/p>\n<p style=\"text-align: justify;\">[root@dbhost1 ~]# <strong>chown oracle:dba \/u03<\/strong><\/p>\n<p style=\"text-align: justify;\">[root@dbhost1 ~]# <strong>chmod g+w \/u01<\/strong><\/p>\n<p style=\"text-align: justify;\">[root@dbhost1 ~]# <strong>chmod g+w \/u02<\/strong><\/p>\n<p style=\"text-align: justify;\">[root@dbhost1 ~]# <strong>chmod g+w \/u03<br \/>\n<\/strong><\/p>\n<p style=\"text-align: justify;\">This concludes the prerequisite steps to prepare basic Linux VM for RAC. In next steps we will clone this VM and then create node 2 for RAC.<\/p>\n<p style=\"text-align: justify;\"><strong>Next:<\/strong>\u00a0<a title=\"Copy\/clone this virtual machine to create second node and modify host details\" href=\"http:\/\/www.oratraining.com\/blog\/2013\/03\/copyclone-this-virtual-machine-to-create-second-node-and-modify-host-details\/\"><strong>Copy\/clone this virtual machine to create second node and modify host details<\/strong><\/a><\/p>\n<h3><\/h3>\n<p><strong><a title=\"Installing 11g Release 2 Real Application Clusters (11gR2 RAC) on Linux x86-64 Virtual Machine (VM) \u2013 Step by step installation guide\" href=\"http:\/\/www.oratraining.com\/blog\/2013\/03\/installing-11g-release-2-real-application-clusters-11gr2-rac-on-linux-x86-64-virtual-machine-vm-step-by-step-installation-guide\/\">Installing 11g Release 2 Real Application Clusters (11gR2 RAC) on Linux x86-64 Virtual Machine (VM) \u2013 Steps<\/a><\/strong><\/p>\n<p>1.<strong> <a title=\"Creating Oracle VirtualBox Virtual Machine with Oracle Linux 5\" href=\"http:\/\/www.oratraining.com\/blog\/2012\/02\/creating-oracle-virtualbox-virtual-machine-with-oracle-linux\/\">Create Virtual Machine and install 64 bit Linux<\/a>\u00a0(generic step from previous post, not specific to this guide)<\/strong><\/p>\n<p>2.\u00a0<a title=\"Add additional virtual Ethernet card and perform prerequisites in Linux\" href=\"http:\/\/www.oratraining.com\/blog\/2013\/03\/add-additional-virtual-ethernet-card-and-perform-prerequisites-in-linux\/\"><strong>Add additional virtual Ethernet card and perform prerequisites in Linux<\/strong><\/a><\/p>\n<p>3.\u00a0<a title=\"Copy\/clone this virtual machine to create second node and modify host details\" href=\"http:\/\/www.oratraining.com\/blog\/2013\/03\/copyclone-this-virtual-machine-to-create-second-node-and-modify-host-details\/\"><strong>Copy\/clone this virtual machine to create second node and modify host details<\/strong><\/a><\/p>\n<p>4.\u00a0<a title=\"Setup shared file system and other pre-requisites\" href=\"http:\/\/www.oratraining.com\/blog\/2013\/03\/setup-shared-file-system-and-other-pre-requisites\/\"><strong>Setup shared file system and other pre-requisites<\/strong><\/a><\/p>\n<p>5.\u00a0<a title=\"Installing 11g RAC on Linux VM: Install Oracle Clusterware\" href=\"http:\/\/www.oratraining.com\/blog\/2013\/03\/installing-11g-rac-on-linux-vm-install-oracle-clusterware\/\"><strong>Install Oracle Clusterware<\/strong><\/a><\/p>\n<p>6.\u00a0<b><a title=\"Installing 11g RAC on Linux VM: Install Oracle Database software and create RAC database\" href=\"http:\/\/www.oratraining.com\/blog\/2013\/03\/installing-11g-rac-on-linux-vm-install-oracle-database-software-and-create-rac-database-2\/\">Install Oracle Database software and create RAC database<\/a><\/b><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now since we have installed basic Linux VM as per our previous guide, we need to add additional Ethernet card for Oracle clusterware private interconnect IP. Make sure that the OS is shutdown cleanly and VM shows Powered off status. In VMWare, select the VM, right click and select Settings. Same option is available in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1983","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/posts\/1983","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/comments?post=1983"}],"version-history":[{"count":0,"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/posts\/1983\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/media?parent=1983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/categories?post=1983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/tags?post=1983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}