{"id":96,"date":"2012-10-23T13:21:53","date_gmt":"2012-10-23T11:21:53","guid":{"rendered":"http:\/\/www.dolicapax.org\/?p=96"},"modified":"2012-10-23T16:49:36","modified_gmt":"2012-10-23T14:49:36","slug":"erase-and-rewind-redeploying-oracle-database-appliance-2-3-0-image","status":"publish","type":"post","link":"https:\/\/www.dolicapax.org\/?p=96","title":{"rendered":"Erase and Rewind &#8211; Redeploying Oracle Database Appliance (2.3.0 image)"},"content":{"rendered":"<p>After using an Oracle Database Appliance for a bit of testing, it was time to get it ready for production. I decided to start with a fresh deploy and re-initializing shared storage.<\/p>\n<p>Note that this is the 2.3.0 base image, and that the procedure may differ somewhat for other versions.<\/p>\n<p>The included <em>cleanupDeploy.pl<\/em> script will pretty much just shut everything down, erase everything on the shared storage and reboot both nodes. It will leave the network configuration for the iLOM and most files stored on the system drives, including deployment configuration files you may have stored in\u00a0<em>\/root\/<\/em><\/p>\n<p>It will remove network configuration and set the root password back to the default of\u00a0<em>welcome1<\/em>.<\/p>\n<blockquote><p>[root@oma1 ~]# cd \/opt\/oracle\/oak\/onecmd<br \/>\n[root@oma1 onecmd]# .\/cleanupDeploy.pl<\/p>\n<p>Please enter the root password for performing cleanup:<br \/>\nRe-enter root password:<\/p>\n<p>About to clear up OAK deployment,public network connectivity will be lost,root password will be set to default and both nodes will be rebooted<\/p>\n<p>Do you want to continue(yes\/no):<\/p><\/blockquote>\n<p>The script starts by asking twice for the root password before requesting a final confirmation. Make no mistake, after this point all services will be shut down and\u00a0<strong>all data will be erased!<\/strong><\/p>\n<p>After a few minutes, the script completes with<\/p>\n<blockquote><p>Exiting&#8230;<br \/>\n[root@oma1 onecmd]#<br \/>\nConnection to oma1 closed by remote host.<br \/>\nConnection to oma1 closed.<\/p><\/blockquote>\n<p>and we are ready to start a new installation.<\/p>\n<p>The first thing we need to do is connect to the iLOM either by serial or ethernet, or connect a keyboard and monitor so we can set up the initial network configuration. The cleanup script will not mess with the current configuration of the iLOM ethernet interface, so web and ssh console should be available.<\/p>\n<blockquote><p>-&gt; start \/SP\/console<br \/>\nAre you sure you want to start \/SP\/console (y\/n)? y<\/p>\n<p>Serial console started. To stop, type ESC (<\/p>\n<p>Oracle Linux Server release 5.8 Kernel 2.6.32-300.32.3.el5uek on an x86_64<\/p>\n<p>oak1 login: root<br \/>\nPassword:<br \/>\nLast login: Mon Oct 22 15:53:20 from 192.168.60.46<\/p>\n<p>[root@oak1 ~]# cd \/opt\/oracle\/oak\/bin\/<br \/>\n[root@oak1 bin]# .\/oakcli configure firstnet<\/p><\/blockquote>\n<p>To work around a bug with the\u00a0<em>cleanupDeploy.pl<\/em> we need to add a<em> localhost entry<\/em> to <em>\/etc\/hosts\u00a0<\/em>on both nodes.<\/p>\n<blockquote><p>[root@oak1 ~]# echo 127.0.0.1 localhost.localdomain localhost &gt;&gt; \/etc\/hosts<\/p><\/blockquote>\n<p>I&#8217;m connected to the iLOM serial console through ssh, so I have to reconnect to the newly configured interface to enable X support for the deployment GUI. \u00a0I have a configuration file stored in the <em>\/root\u00a0<\/em>folder, so I call the deploy using that file as parameter file.<\/p>\n<blockquote><p>Connection to oma1-ilom closed.<br \/>\nroy@kayna:~$ ssh oma1 -l root -X<br \/>\nroot@oma1&#8217;s password:<br \/>\nLast login: Tue Oct 23 13:01:39 2012 from 192.168.60.46<br \/>\n[root@oak1 ~]# cd \/opt\/oracle\/oak\/bin\/<br \/>\n[root@oak1 bin]# .\/oakcli deploy -conf \/root\/oak_deploy.params<br \/>\nLog messages in \/tmp\/oak_1350990145126.log<br \/>\nLoaded configuration file \/root\/oak_deploy.params successfully<br \/>\nRunning Oracle Appliance Manager<\/p><\/blockquote>\n<p>When deployment starts, depending on your network configuration, the deploy will sometimes make a mess of the default route. \u00a0If you see this line when running\u00a0<em>route<\/em><\/p>\n<blockquote><p>default * 0.0.0.0 U 0 0 0 bond0<\/p><\/blockquote>\n<p>you will need to immediately delete the entry and set the correct default gateway (on both nodes), less the deploy may very well fail the <em>ValidateEnv<\/em> step, because it can&#8217;t access the DNS servers to check for the SCAN listener DNS entry.<\/p>\n<blockquote><p>[root@oak2 ~]# route delete default<br \/>\n[root@oak2 ~]# route add default gw 192.168.0.1<\/p><\/blockquote>\n<p>Hopefully the deploy will now complete successfully. If not, you can always jump back to the top, clean up the deploy and start fresh for another attempt.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After using an Oracle Database Appliance for a bit of testing, it was time to get it ready for production. I decided to start with a fresh deploy and re-initializing shared storage. Note that this is the 2.3.0 base image, &hellip; <a href=\"https:\/\/www.dolicapax.org\/?p=96\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,19,20],"tags":[33,18,24],"_links":{"self":[{"href":"https:\/\/www.dolicapax.org\/index.php?rest_route=\/wp\/v2\/posts\/96"}],"collection":[{"href":"https:\/\/www.dolicapax.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dolicapax.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dolicapax.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dolicapax.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=96"}],"version-history":[{"count":12,"href":"https:\/\/www.dolicapax.org\/index.php?rest_route=\/wp\/v2\/posts\/96\/revisions"}],"predecessor-version":[{"id":106,"href":"https:\/\/www.dolicapax.org\/index.php?rest_route=\/wp\/v2\/posts\/96\/revisions\/106"}],"wp:attachment":[{"href":"https:\/\/www.dolicapax.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dolicapax.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dolicapax.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}