{"id":2843,"date":"2013-07-09T02:30:39","date_gmt":"2013-07-09T02:30:39","guid":{"rendered":"http:\/\/www.oratraining.com\/blog\/?p=2843"},"modified":"2013-07-17T06:21:17","modified_gmt":"2013-07-17T06:21:17","slug":"installing-12c-rac-on-linux-vm-copyclone-this-virtual-machine-to-create-second-node-and-modify-host-details","status":"publish","type":"post","link":"https:\/\/www.oratraining.com\/blog\/2013\/07\/installing-12c-rac-on-linux-vm-copyclone-this-virtual-machine-to-create-second-node-and-modify-host-details\/","title":{"rendered":"Installing 12c RAC on Linux VM: Copy\/clone this virtual machine to create second node and modify host details"},"content":{"rendered":"<p style=\"background: white;\"><strong>Previous:<\/strong>\u00a0<a title=\"Installing 12c RAC on Linux VM: Add additional virtual Ethernet card and perform prerequisites in Linux\" href=\"http:\/\/www.oratraining.com\/blog\/2013\/07\/installing-12c-rac-on-linux-vm-add-additional-virtual-ethernet-card-and-perform-prerequisites-in-linux\/\">Add additional virtual Ethernet card and perform prerequisites in Linux<\/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 style=\"background: white;\">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 style=\"background: white;\">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 style=\"background: white;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/07\/070913_1029_Installing11.png\" \/><\/p>\n<p style=\"background: white;\">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 style=\"background: white;\">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; background: white;\">Make sure the \/etc\/hosts entries are correct.<\/p>\n<p style=\"text-align: justify; background: white;\">[root@ dbhost2~]#\u00a0<strong>more \/etc\/hosts<\/strong><\/p>\n<p># Do not remove the following line, or various programs<\/p>\n<p># that require network functionality will fail.<\/p>\n<p>127.0.0.1 localhost.localdomain localhost<\/p>\n<p>#::1 localhost6.localdomain6 localhost6<\/p>\n<p>192.168.1.121 dbhost1.paramlabs.com <strong>dbhost1<\/strong><\/p>\n<p>192.168.1.122 dbhost2.paramlabs.com <strong>dbhost2<\/strong><\/p>\n<p>192.168.1.123 dbhost1-vip.paramlabs.com <strong>dbhost1-vip<\/strong><\/p>\n<p>192.168.1.124 dbhost2-vip.paramlabs.com <strong>dbhost2-vip<\/strong><\/p>\n<p>192.168.2.121 dbhost1-priv.paramlabs.com <strong>dbhost1-priv<\/strong><\/p>\n<p>192.168.2.122 dbhost2-priv.paramlabs.com <strong>dbhost2-priv<\/strong><\/p>\n<p>192.168.1.125 dbhost-scan.paramlabs.com <strong>dbhost-scan<\/strong><\/p>\n<p>192.168.1.121 nfshost.paramlabs.com <strong>nfshost<\/strong><\/p>\n<p style=\"text-align: justify; background: white;\">Now open the network setup screen as follows.<\/p>\n<p style=\"text-align: justify; background: white;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/07\/070913_1029_Installing12.png\" \/><\/p>\n<p style=\"text-align: justify; background: white;\">It will show 2 existing interfaces with IPs of node 1.<\/p>\n<p style=\"text-align: justify; background: white;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/07\/070913_1029_Installing13.png\" \/><\/p>\n<p style=\"text-align: justify; background: white;\">We need to change IPs for\u00a0<strong>eth0<\/strong>\u00a0to match\u00a0<strong>dbhost2\u00a0<\/strong>IP. While for\u00a0<strong>eth1<\/strong>\u00a0it should match\u00a0<strong>dbhost2-priv\u00a0<\/strong>IP. Select the interface and click Edit to make the changes.<\/p>\n<p style=\"text-align: justify; background: white;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/07\/070913_1029_Installing14.png\" \/><\/p>\n<p style=\"text-align: justify; background: white;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/07\/070913_1029_Installing15.png\" \/><\/p>\n<p style=\"text-align: justify; background: white;\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/www.oratraining.com\/blog\/wp-content\/uploads\/2013\/07\/070913_1029_Installing16.png\" \/><\/p>\n<p style=\"text-align: justify; background: white;\">Change the hostname using DNS tab in the network configuration screen. Enter hostname as <strong>dbhost2.paramlabs.com<\/strong><\/p>\n<p style=\"text-align: justify; background: white;\">Once you change the IP addresses, make sure to save the configuration using\u00a0<strong>File -&gt; Save<\/strong>.<\/p>\n<p style=\"text-align: justify; background: white;\">Once this is done, restart the network service using following command.<\/p>\n<p style=\"text-align: justify; background: white;\">[root@ dbhost2~]#\u00a0<strong>service network restart<\/strong><\/p>\n<p style=\"background: white;\">Change the hostname to\u00a0<strong>dbhost2<\/strong><\/p>\n<p style=\"text-align: justify; background: white;\">[root@r12host ~]#\u00a0<strong>hostname dbhost2.paramlabs.com<\/strong><\/p>\n<p style=\"background: white;\">Make sure changes are persistent by restarting network service.<\/p>\n<p>[root@dbhost2 ~]# <strong>service network restart<\/strong><\/p>\n<p>Shutting down interface eth0: [ OK ]<\/p>\n<p>Shutting down interface eth1: [ OK ]<\/p>\n<p>Shutting down loopback interface: [ OK ]<\/p>\n<p>Bringing up loopback interface: [ OK ]<\/p>\n<p>Bringing up interface eth0: [ OK ]<\/p>\n<p>Bringing up interface eth1: [ OK ]<\/p>\n<p>&nbsp;<\/p>\n<p>[root@dbhost2 ~]# <strong>ping dbhost2.paramlabs.com -c1<\/strong><\/p>\n<p>PING dbhost2.paramlabs.com (192.168.1.122) 56(84) bytes of data.<\/p>\n<p>64 bytes from dbhost2.paramlabs.com (192.168.1.122): icmp_seq=1 ttl=64 time=0.021 ms<\/p>\n<p>&#8212; dbhost2.paramlabs.com ping statistics &#8212;<\/p>\n<p>1 packets transmitted, 1 received, 0% packet loss, time 0ms<\/p>\n<p>rtt min\/avg\/max\/mdev = 0.021\/0.021\/0.021\/0.000 ms<\/p>\n<p style=\"background: white;\">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=\"Installing 12c RAC on Linux VM: Setup shared file system and other pre-requisites\" href=\"http:\/\/www.oratraining.com\/blog\/2013\/07\/installing-12c-rac-on-linux-vm-setup-shared-file-system-and-other-pre-requisites\/\">Setup shared file system and other pre-requisites<\/a><\/p>\n<p><a title=\"Oracle 12c (12.1) RAC (Real Applications Cluster) installation on Linux Virtual Machines \u2013 Step by step guide\" href=\"http:\/\/www.oratraining.com\/blog\/2013\/07\/oracle-12c-12-1-rac-real-applications-cluster-installation-on-linux-virtual-machines-step-by-step-guide\/\"><span style=\"color: #993300;\"><strong>Oracle 12c (12.1) RAC (Real Applications Cluster) installation on Linux Virtual Machines \u2013 Step by step guide<\/strong><\/span><\/a><\/p>\n<p>1.\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><br \/>\n2.\u00a0<a title=\"Installing 12c RAC on Linux VM: Add additional virtual Ethernet card and perform prerequisites in Linux\" href=\"http:\/\/www.oratraining.com\/blog\/2013\/07\/installing-12c-rac-on-linux-vm-add-additional-virtual-ethernet-card-and-perform-prerequisites-in-linux\/\">Add additional virtual Ethernet card and perform prerequisites in Linux<\/a><br \/>\n3.\u00a0<a title=\"Installing 12c RAC on Linux VM: Copy\/clone this virtual machine to create second node and modify host details\" href=\"http:\/\/www.oratraining.com\/blog\/2013\/07\/installing-12c-rac-on-linux-vm-copyclone-this-virtual-machine-to-create-second-node-and-modify-host-details\/\">Copy\/clone this virtual machine to create second node and modify host details<\/a><br \/>\n4.\u00a0<a title=\"Installing 12c RAC on Linux VM: Setup shared file system and other pre-requisites\" href=\"http:\/\/www.oratraining.com\/blog\/2013\/07\/installing-12c-rac-on-linux-vm-setup-shared-file-system-and-other-pre-requisites\/\">Setup shared file system and other pre-requisites<\/a><br \/>\n5.\u00a0<a title=\"Installing 12c RAC on Linux VM: Install Oracle Grid Infrastructure\" href=\"http:\/\/www.oratraining.com\/blog\/2013\/07\/installing-12c-rac-on-linux-vm-install-oracle-grid-infrastructure\/\">Install Oracle Grid Infrastructure<\/a><br \/>\n6.\u00a0<a title=\"Installing 12c RAC on Linux VM: Install Oracle Database software and create RAC database\" href=\"http:\/\/www.oratraining.com\/blog\/2013\/07\/installing-12c-rac-on-linux-vm-install-oracle-database-software-and-create-rac-database\/\">Install Oracle Database software and create RAC database<\/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":[3,4,8,10,14,38,20],"tags":[180,179,169,176,172,178,96,170,171,173,105,177,174,175,147,148,182,181],"class_list":["post-2843","post","type-post","status-publish","format-standard","hentry","category-linuxunixsolaris","category-oracle","category-database","category-oracle-dba","category-oracle-rac","category-virtualbox-virtualization","category-virtualization","tag-12-1-0-installation","tag-12-1-0-rac","tag-12c","tag-12c-installation","tag-12c-rac","tag-12c-rac-installation","tag-linux","tag-oracle-12","tag-oracle-12c","tag-oracle-12c-rac","tag-oracle-linux","tag-rac-installation","tag-real-application-clusters","tag-real-applications-cluster","tag-virtual-machine","tag-virtualbox","tag-vm","tag-vmware"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/posts\/2843","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=2843"}],"version-history":[{"count":0,"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/posts\/2843\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/media?parent=2843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/categories?post=2843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oratraining.com\/blog\/wp-json\/wp\/v2\/tags?post=2843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}