{"id":1990,"date":"2013-03-10T05:58:30","date_gmt":"2013-03-10T05:58:30","guid":{"rendered":"http:\/\/www.oratraining.com\/blog\/?p=1990"},"modified":"2013-03-19T09:36:44","modified_gmt":"2013-03-19T09:36:44","slug":"copyclone-this-virtual-machine-to-create-second-node-and-modify-host-details","status":"publish","type":"post","link":"https:\/\/www.oratraining.com\/blog\/2013\/03\/copyclone-this-virtual-machine-to-create-second-node-and-modify-host-details\/","title":{"rendered":"Installing 11g RAC on Linux VM: Copy\/clone this virtual machine to create second node and modify host details"},"content":{"rendered":"<p><strong>Previous:\u00a0<\/strong><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>In order to copy\/clone the VM for node 1 to another VM, first you need to cleanly shutdown the first host i.e. dbhost1<\/p>\n<p>Once it is cleanly shutdown, you can either user VMWare&#8217;s clone option or simply copy the whole VM directory including .vmdk and .vmx files to another directory and name it node2.<\/p>\n<p>Since this is identical copy if the first node, we don&#8217;t want to create IP conflict while starting the VM so this time start only VM for node2 using VMWare or VirtualBox.<\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031813_0557_Copycloneth1.png\" \/><\/p>\n<p>When it prompts following, select &#8220;<strong>I moved it<\/strong>&#8220;. This will preserve all settings including IP address from node 1 VM. Otherwise it will copy the interfaces to ethx.bak and create new interfaces in Linux which we want to avoid.<\/p>\n<p>&nbsp;<\/p>\n<p>Now node2 OS is booted, login with root user.<\/p>\n<p>In order to change the IP address and hostname, follow these steps.<\/p>\n<p style=\"text-align: justify;\">Make sure the \/etc\/hosts entries are correct.<\/p>\n<p style=\"text-align: justify;\">[root@ dbhost2~]# <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 dbhost1<\/p>\n<p style=\"text-align: justify;\">192.168.112.102 dbhost2.paramlabs.com dbhost2<\/p>\n<p style=\"text-align: justify;\">192.168.112.103 dbhost1-vip.paramlabs.com dbhost1-vip<\/p>\n<p style=\"text-align: justify;\">192.168.112.104 dbhost2-vip.paramlabs.com dbhost2-vip<\/p>\n<p style=\"text-align: justify;\">192.168.111.101 dbhost1-priv.paramlabs.com dbhost1-priv<\/p>\n<p style=\"text-align: justify;\">192.168.111.102 dbhost2-priv.paramlabs.com dbhost2-priv<\/p>\n<p style=\"text-align: justify;\">192.168.112.105 dbhost-scan.paramlabs.com dbhost-scan<\/p>\n<p style=\"text-align: justify;\">192.168.112.101 nfshost.paramlabs.com nfshost<\/p>\n<p style=\"text-align: justify;\">Now open the network setup screen as follows.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031813_0557_Copycloneth2.png\" \/><\/p>\n<p style=\"text-align: justify;\">It will show 2 existing interfaces with IPs of node 1.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/03\/031813_0557_Copycloneth3.png\" \/><\/p>\n<p style=\"text-align: justify;\">We need to change IPs for <strong>eth0<\/strong> to match <strong>dbhost2 <\/strong>IP. While for <strong>eth1<\/strong> it should match <strong>dbhost2-priv <\/strong>IP. Select the interface and click Edit to make the changes.<\/p>\n<p style=\"text-align: justify;\">Once you change the IP addresses, make sure to save the configuration using <strong>File -&gt; Save<\/strong>.<\/p>\n<p style=\"text-align: justify;\">Once this is done, restart the network service using following command.<\/p>\n<p style=\"text-align: justify;\">[root@ dbhost2~]# <strong>service network restart<\/strong><\/p>\n<p>Change the hostname to <strong>dbhost2<\/strong><\/p>\n<p style=\"text-align: justify;\">[root@r12host ~]# <strong>hostname dbhost2.paramlabs.com<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>Now let us change the system file which will assign the hostname next time system is booted.<\/p>\n<p style=\"text-align: justify;\">[root@r12host ~]# <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=<strong>dbhost2.paramlabs.com<\/strong><\/p>\n<p>Let us make sure that the host is pinging successfully.<\/p>\n<p style=\"text-align: justify;\">[root@ dbhost2~]# <strong>ping dbhost2.paramlabs.com -c1<br \/>\n<\/strong><\/p>\n<p style=\"text-align: justify;\">PING dbhost2.paramlabs.com (192.168.112.102) 56(84) bytes of data.<\/p>\n<p style=\"text-align: justify;\">64 bytes from dbhost2.paramlabs.com (192.168.112.102): icmp_seq=1 ttl=64 time=0.191 ms<\/p>\n<p style=\"text-align: justify;\">&#8212; dbhost2.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.191\/0.191\/0.191\/0.000 ms<\/p>\n<p>&nbsp;<\/p>\n<p>Now you can restart Node 2 to make sure the new IPs and new hostname are preserved.\u00a0Also we can start Node 1 now since there will be no conflict now.<\/p>\n<p>This concludes the steps for creating second node for the RAC.<\/p>\n<p><strong>Next:<\/strong>\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>&nbsp;<\/p>\n<p>&nbsp;<\/p>\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>\u00a0<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<p><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\/\"><strong>\u00a0<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Previous:\u00a0Add additional virtual Ethernet card and perform prerequisites in Linux In order to copy\/clone the VM for node 1 to another VM, first you need to cleanly shutdown the first host i.e. dbhost1 Once it is cleanly shutdown, you can either user VMWare&#8217;s clone option or simply copy the whole VM directory including .vmdk and [&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-1990","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\/1990","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=1990"}],"version-history":[{"count":0,"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/posts\/1990\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/media?parent=1990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/categories?post=1990"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/tags?post=1990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}