The Oracle Database Appliance: Undeployment


If something went wrong with the deployment or you want to clean up old ODA setup it is possible to reset configruation. This action only must be done on the first node (System 0):

[root@odadb1 bin]# /opt/oracle/oak/onecmd/cleanupDeploy.pl

Please enter the root password for performing cleanup:
Re-enter root password:
About to clear up OAK deployment,public network connectivity will be lost,root p
Do you want to continue(yes/no): yes
Setting up ssh for root
INFO   : Logging all actions in /opt/oracle/oak/onecmd/tmp/odadb1-201302051
INFO   : Loading configuration file /opt/oracle/oak/onecmd/onecommand.params...
INFO   : Creating nodelist files...
================================================================================
INFO   : 2013-02-05 11:49:47
INFO   : Step 1  SetupSSHroot
INFO   : Setting up ssh for root...
INFO   : Setting up ssh across the private network...
............done
INFO   : Running as root: /usr/bin/ssh -l root 192.168.16.24 /root/DoAllcmds.sh
INFO   : Background process 24647 (node: 192.168.16.24) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root 192.168.16.25 /root/DoAllcmds.sh
INFO   : Background process 24671 (node: 192.168.16.25) gets done with the exit code 0
INFO   : Done setting up ssh
INFO   : Running /usr/bin/rsync -tarvz /opt/oracle/oak/onecmd/ root@192.168.16.25:/opt/oracle/oak/onecmd --exclude=*zip --exclude=*gz --exclude=*log --exclude=*trc --exclude=*rpm to sync directory</opt/oracle/oak/onecmd> on node <192.168.16.25>
SUCCESS: Ran /usr/bin/rsync -tarvz /opt/oracle/oak/onecmd/ root@192.168.16.25:/opt/oracle/oak/onecmd --exclude=*zip --exclude=*gz --exclude=*log --exclude=*trc --exclude=*rpm and it returned: RC=0
sending incremental file list
 ./
 T4DBTemplate.dbt
 onecommand.params
 tmp/
 tmp/DoAllcmds-20130201152702.sh
 tmp/DoAllcmds-20130201152706.sh
 tmp/DoAllcmds-20130201152707.sh
 tmp/DoAllcmds-20130201155435.sh
 tmp/DoAllcmds-20130201155526.sh
 tmp/DoAllcmds-20130201155634.sh
 tmp/DoAllcmds.sh
 tmp/DoCmdsOnNodelist-20130201152701.sh
 tmp/addasmspfileparam.sh
 tmp/all_nodes
 tmp/asmca.sh
 tmp/asmcacreatevol.sh
 tmp/odadb1-ocmd-checkusers.res
 tmp/odadb2-ocmd-checkusers.res
 tmp/ceappsDBTemplate.dbt
 tmp/clone-optoracleoakpkgreposorapkgsGI11.2.0.3.4Basegrid112.tar.gz.out
 tmp/db_nodes
 tmp/dbca-ceapps.sh
 tmp/dbupdates-ceapps.lst
 tmp/dbupdates-ceapps.sh
 tmp/dm_multipath.sh
 tmp/dochown.sh
 tmp/emdbcontrol.rsp
 tmp/fuser_mv.sh
 tmp/gicfgasts.sh
 tmp/hosts-gen-odadb1
 tmp/hosts-gen-odadb2
 tmp/ntp.conf-gen-odadb1
 tmp/ntp.conf-gen-odadb2
 tmp/oakcliasmlist.sh
 tmp/ocmd-ChkDiskAttrs.out
 tmp/ocmd-ChkDiskAttrs.pl
 tmp/ocmd-checkusers.pl
 tmp/ocmd-checkusers.res
 tmp/priv_ip_group
 tmp/redodg.sh
 tmp/restartasm.sh
 tmp/runemca.sh
 tmp/setcsscore.sh
 tmp/setcssipmiuser.sh
 tmp/setilomconfign0.sh
 tmp/setipmicred.sh
 tmp/setupGITZ.sh
 tmp/setupdbconsolenode.sh
 tmp/setupdbconsolenodeexpect.sh
 tmp/setuptz.sh
 tmp/setuptzem.sh
 tmp/stmaddconfig.sh
 tmp/stmconfigclear.sh
 tmp/sysconfntp.sh
 tmp/u01apporacleproduct11.2.0.3dbhome_1-optoracleoakpkgreposorapkgsDB11.2.0.3.4Basedb112.tar.gz.out
 tmp/updatehosts.sh
 tmp/updntp.sh
 tmp/vip_node

 sent 14589 bytes  received 14738 bytes  58654.00 bytes/sec
 total size is 9696018  speedup is 330.62

INFO   : Time in SetupSSHroot is 21 seconds.
..........done
INFO   : Running as root: /usr/bin/ssh -l root odadb1 /root/DoAllcmds.sh
INFO   : Background process 24963 (node: odadb1) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root odadb2 /root/DoAllcmds.sh
INFO   : Background process 24987 (node: odadb2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root odadb1 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20130205115030.sh
INFO   : Background process 25008 (node: odadb1) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root odadb2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20130205115030.sh
INFO   : Background process 25031 (node: odadb2) gets done with the exit code 0
INFO   : Time spent in step 1 SetupSSHroot is 44 seconds.
==================================================================================
INFO   : Log file is /opt/oracle/oak/onecmd/tmp/odadb1-20130205114946.log...
Exiting...
Uninstalling ASR
INFO   : Logging all actions in /opt/oracle/oak/onecmd/tmp/odadb1-20130205115031.log and traces in /opt/oracle/oak/onecmd/tmp/odadb1-20130205115031.trc
INFO   : Loading configuration file /opt/oracle/oak/onecmd/onecommand.params...
INFO   : Creating nodelist files...
==================================================================================
INFO   : 2013-02-05 11:50:31
INFO   : Step 2  deinstallASR
INFO   : Running as root: /usr/bin/ssh -l root 192.168.16.24 /opt/oracle/oak/onecmd/tmp/removeAsrrpm.sh
INFO   : Background process 25144 (node: 192.168.16.24) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root 192.168.16.25 /opt/oracle/oak/onecmd/tmp/removeAsrrpm.sh
INFO   : Background process 25169 (node: 192.168.16.25) gets done with the exit code 0
INFO   : Time spent in step 2 deinstallASR is 1 seconds.
==================================================================================
INFO   : Log file is /opt/oracle/oak/onecmd/tmp/odadb1-20130205115031.log...
Exiting...
Deinstalling oracle stack
INFO   : Logging all actions in /opt/oracle/oak/onecmd/tmp/odadb1-20130205115032.log and traces in /opt/oracle/oak/onecmd/tmp/odadb1-20130205115032.trc
INFO   : Loading configuration file /opt/oracle/oak/onecmd/onecommand.params...
INFO   : Creating nodelist files...
==================================================================================
INFO   : 2013-02-05 11:50:32
INFO   : Step 3  DeinstallGI
INFO   : Running as root: /usr/bin/ssh -l root odadb1 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20130205115032.sh
INFO   : Background process 25400 (node: odadb1) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root odadb2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20130205115032.sh
INFO   : Background process 25435 (node: odadb2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root odadb1 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20130205115032.sh
INFO   : Background process 25458 (node: odadb1) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root odadb2 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20130205115032.sh
INFO   : Background process 25481 (node: odadb2) gets done with the exit code 0
INFO   : Disabling crs on all nodes...
INFO   : Stopping clusterware on all nodes...
INFO   : Running as root: /usr/bin/ssh -l root odadb1 /opt/oracle/oak/onecmd/tmp/stopcluster.sh
INFO   : Running as root: /usr/bin/ssh -l root odadb2 /opt/oracle/oak/onecmd/tmp/stopcluster.sh
INFO   : Background process 25517 (node: odadb1) gets done with the exit code 0
INFO   : Background process 25542 (node: odadb2) gets done with the exit code 0
INFO   : CSSD is down, continuing...
INFO   : Running as root: /usr/bin/ssh -l root 192.168.16.24 /opt/oracle/oak/onecmd/tmp/deinstall.sh
INFO   : Running as root: /usr/bin/ssh -l root 192.168.16.25 /opt/oracle/oak/onecmd/tmp/deinstall.sh
WARNING: Ignore any errors returned by '/usr/bin/ssh -l root 192.168.16.25 /opt/oracle/oak/onecmd/tmp/deinstall.sh'
INFO   : Background process 26498 (node: 192.168.16.25) gets done with the exit code 0
WARNING: Ignore any errors returned by '/usr/bin/ssh -l root 192.168.16.24 /opt/oracle/oak/onecmd/tmp/deinstall.sh'
INFO   : Background process 26470 (node: 192.168.16.24) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root odadb1 /opt/oracle/oak/onecmd/tmp/dokill.sh
WARNING: Ignore any errors returned by '/usr/bin/ssh -l root odadb1 /opt/oracle/oak/onecmd/tmp/dokill.sh'
INFO   : Background process 26639 (node: odadb1) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root odadb2 /opt/oracle/oak/onecmd/tmp/dokill.sh
WARNING: Ignore any errors returned by '/usr/bin/ssh -l root odadb2 /opt/oracle/oak/onecmd/tmp/dokill.sh'
INFO   : Background process 26673 (node: odadb2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root odadb1 /opt/oracle/oak/onecmd/tmp/dokill.sh
WARNING: Ignore any errors returned by '/usr/bin/ssh -l root odadb1 /opt/oracle/oak/onecmd/tmp/dokill.sh'
INFO   : Background process 26694 (node: odadb1) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root odadb2 /opt/oracle/oak/onecmd/tmp/dokill.sh
WARNING: Ignore any errors returned by '/usr/bin/ssh -l root odadb2 /opt/oracle/oak/onecmd/tmp/dokill.sh'
INFO   : Background process 26716 (node: odadb2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root odadb1 /opt/oracle/oak/onecmd/tmp/dokill.sh
WARNING: Ignore any errors returned by '/usr/bin/ssh -l root odadb1 /opt/oracle/oak/onecmd/tmp/dokill.sh'
INFO   : Running as root: /usr/bin/ssh -l root odadb2 /opt/oracle/oak/onecmd/tmp/dokill.sh
INFO   : Background process 26737 (node: odadb1) gets done with the exit code 0
WARNING: Ignore any errors returned by '/usr/bin/ssh -l root odadb2 /opt/oracle/oak/onecmd/tmp/dokill.sh'
INFO   : Background process 26759 (node: odadb2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root odadb1 /opt/oracle/oak/onecmd/tmp/dokill.sh
INFO   : Running as root: /usr/bin/ssh -l root odadb2 /opt/oracle/oak/onecmd/tmp/dokill.sh
INFO   : Background process 26780 (node: odadb1) gets done with the exit code 0
INFO   : Background process 26812 (node: odadb2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root odadb1 /opt/oracle/oak/onecmd/tmp/dokill.sh
WARNING: Ignore any errors returned by '/usr/bin/ssh -l root odadb1 /opt/oracle/oak/onecmd/tmp/dokill.sh'
INFO   : Background process 26840 (node: odadb1) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root odadb2 /opt/oracle/oak/onecmd/tmp/dokill.sh
WARNING: Ignore any errors returned by '/usr/bin/ssh -l root odadb2 /opt/oracle/oak/onecmd/tmp/dokill.sh'
INFO   : Background process 26862 (node: odadb2) gets done with the exit code 0
INFO   : Running as root: /usr/bin/ssh -l root odadb1 /opt/oracle/oak/onecmd/tmp/dokill.sh
INFO   : Running as root: /usr/bin/ssh -l root odadb2 /opt/oracle/oak/onecmd/tmp/dokill.sh
INFO   : Background process 26884 (node: odadb1) gets done with the exit code 0
WARNING: Ignore any errors returned by '/usr/bin/ssh -l root odadb2 /opt/oracle/oak/onecmd/tmp/dokill.sh'
INFO   : Background process 26906 (node: odadb2) gets done with the exit code 0
INFO   : Time spent in step 3 DeinstallGI is 120 seconds.
==================================================================================
INFO   : Log file is /opt/oracle/oak/onecmd/tmp/odadb1-20130205115032.log...
Exiting...
Updating multipath.conf
INFO   : Logging all actions in /opt/oracle/oak/onecmd/tmp/odadb1-20130205115232.log and traces in /opt/oracle/oak/onecmd/tmp/odadb1-20130205115232.trc
INFO   : Loading configuration file /opt/oracle/oak/onecmd/onecommand.params...
INFO   : Creating nodelist files...
==================================================================================
INFO   : 2013-02-05 11:52:33
INFO   : Step 4  resetmultipathconf
INFO   : Running as root: /usr/bin/ssh -l root 192.168.16.24 /opt/oracle/oak/onecmd/tmp/resetmultpath.sh
INFO   : Running as root: /usr/bin/ssh -l root 192.168.16.25 /opt/oracle/oak/onecmd/tmp/resetmultpath.sh
INFO   : Background process 27014 (node: 192.168.16.24) gets done with the exit code 0
INFO   : Background process 27036 (node: 192.168.16.25) gets done with the exit code 0
INFO   : Time spent in step 4 resetmultipathconf is 0 seconds.
==================================================================================
INFO   : Log file is /opt/oracle/oak/onecmd/tmp/odadb1-20130205115232.log...
Exiting...
Dropping users
INFO   : Logging all actions in /opt/oracle/oak/onecmd/tmp/odadb1-20130205115233.log and traces in /opt/oracle/oak/onecmd/tmp/odadb1-20130205115233.trc
INFO   : Loading configuration file /opt/oracle/oak/onecmd/onecommand.params...
INFO   : Creating nodelist files...
==================================================================================
INFO   : 2013-02-05 11:52:34
INFO   : Step 5  DropUsersGroups
INFO   : Dropping user oracle on 192.168.16.24 as root using command /usr/bin/ssh root@192.168.16.24 /usr/sbin/userdel -r -f oracle
SUCCESS: Dropping user oracle on 192.168.16.24 as root using command /usr/bin/ssh root@192.168.16.24 /usr/sbin/userdel -r -f oracle
INFO   : Dropping user oracle on 192.168.16.25 as root using command /usr/bin/ssh root@192.168.16.25 /usr/sbin/userdel -r -f oracle
SUCCESS: Dropping user oracle on 192.168.16.25 as root using command /usr/bin/ssh root@192.168.16.25 /usr/sbin/userdel -r -f oracle
INFO   : Dropping user grid on 192.168.16.24 as root using command /usr/bin/ssh root@192.168.16.24 /usr/sbin/userdel -r -f grid
SUCCESS: Dropping user grid on 192.168.16.24 as root using command /usr/bin/ssh root@192.168.16.24 /usr/sbin/userdel -r -f grid
INFO   : Dropping user grid on 192.168.16.25 as root using command /usr/bin/ssh root@192.168.16.25 /usr/sbin/userdel -r -f grid
SUCCESS: Dropping user grid on 192.168.16.25 as root using command /usr/bin/ssh root@192.168.16.25 /usr/sbin/userdel -r -f grid
INFO   : Dropping group oinstall on 192.168.16.24 as root using command /usr/bin/ssh root@192.168.16.24 /usr/sbin/groupdel oinstall
INFO   : Dropping group oinstall on 192.168.16.25 as root using command /usr/bin/ssh root@192.168.16.25 /usr/sbin/groupdel oinstall
INFO   : Dropping group dba on 192.168.16.24 as root using command /usr/bin/ssh root@192.168.16.24 /usr/sbin/groupdel dba
INFO   : Dropping group dba on 192.168.16.25 as root using command /usr/bin/ssh root@192.168.16.25 /usr/sbin/groupdel dba
INFO   : Dropping group racoper on 192.168.16.24 as root using command /usr/bin/ssh root@192.168.16.24 /usr/sbin/groupdel racoper
INFO   : Dropping group racoper on 192.168.16.25 as root using command /usr/bin/ssh root@192.168.16.25 /usr/sbin/groupdel racoper
INFO   : Dropping group asmdba on 192.168.16.24 as root using command /usr/bin/ssh root@192.168.16.24 /usr/sbin/groupdel asmdba
INFO   : Dropping group asmdba on 192.168.16.25 as root using command /usr/bin/ssh root@192.168.16.25 /usr/sbin/groupdel asmdba
INFO   : Dropping group asmoper on 192.168.16.24 as root using command /usr/bin/ssh root@192.168.16.24 /usr/sbin/groupdel asmoper
INFO   : Dropping group asmoper on 192.168.16.25 as root using command /usr/bin/ssh root@192.168.16.25 /usr/sbin/groupdel asmoper
INFO   : Dropping group asmadmin on 192.168.16.24 as root using command /usr/bin/ssh root@192.168.16.24 /usr/sbin/groupdel asmadmin
INFO   : Dropping group asmadmin on 192.168.16.25 as root using command /usr/bin/ssh root@192.168.16.25 /usr/sbin/groupdel asmadmin
INFO   : Time spent in step 5 DropUsersGroups is 3 seconds.
==================================================================================
INFO   : Log file is /opt/oracle/oak/onecmd/tmp/odadb1-20130205115233.log...
Exiting...
Resetting network
INFO   : Logging all actions in /opt/oracle/oak/onecmd/tmp/odadb1-20130205115237.log and traces in /opt/oracle/oak/onecmd/tmp/odadb1-20130205115237.trc
INFO   : Loading configuration file /opt/oracle/oak/onecmd/onecommand.params...
INFO   : Creating nodelist files...
==================================================================================
INFO   : 2013-02-05 11:52:37
INFO   : Step 6  resetnetwork
INFO   : Running as root: /usr/bin/ssh -l root 192.168.16.24 /opt/oracle/oak/onecmd/tmp/resetnet.sh
INFO   : Running as root: /usr/bin/ssh -l root 192.168.16.25 /opt/oracle/oak/onecmd/tmp/resetnet.sh
INFO   : Background process 27411 (node: 192.168.16.24) gets done with the exit code 0
INFO   : Background process 27465 (node: 192.168.16.25) gets done with the exit code 0
INFO   : Time spent in step 6 resetnetwork is 3 seconds.
==================================================================================
INFO   : Log file is /opt/oracle/oak/onecmd/tmp/odadb1-20130205115237.log...
Exiting...
Resetting password
INFO   : Logging all actions in /opt/oracle/oak/onecmd/tmp/odadb1-20130205115240.log and traces in /opt/oracle/oak/onecmd/tmp/odadb1-20130205115240.trc
INFO   : Loading configuration file /opt/oracle/oak/onecmd/onecommand.params...
INFO   : Creating nodelist files...
==================================================================================
INFO   : 2013-02-05 11:52:40
INFO   : Step 7  resetpasswd
INFO   : Resetting root password
...
INFO   : Running as root: /usr/bin/ssh -l root 192.168.16.24 /opt/oracle/oak/onecmd/tmp/secuser.sh
...
INFO   : Running as root: /usr/bin/ssh -l root 192.168.16.25 /opt/oracle/oak/onecmd/tmp/secuser.sh
INFO   : Running as root: /usr/bin/ssh -l root 192.168.16.24 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20130205115241.sh
INFO   : Running as root: /usr/bin/ssh -l root 192.168.16.25 /opt/oracle/oak/onecmd/tmp/DoAllcmds-20130205115241.sh
INFO   : Background process 27682 (node: 192.168.16.24) gets done with the exit code 0
INFO   : Background process 27705 (node: 192.168.16.25) gets done with the exit code 0
INFO   : Time spent in step 7 resetpasswd is 1 seconds.
==================================================================================
INFO   : Log file is /opt/oracle/oak/onecmd/tmp/odadb1-20130205115240.log...
Exiting...
Resetting dns, ntp and Rebooting
INFO   : Logging all actions in /opt/oracle/oak/onecmd/tmp/odadb1-20130205115241.log and traces in /opt/oracle/oak/onecmd/tmp/odadb1-20130205115241.trc
INFO   : Loading configuration file /opt/oracle/oak/onecmd/onecommand.params...
INFO   : Creating nodelist files...
==================================================================================
INFO   : 2013-02-05 11:52:42
INFO   : Step 8  reboot
INFO   : Running as root: /usr/bin/ssh -l root 192.168.16.24 /opt/oracle/oak/onecmd/tmp/reboot.sh
INFO   : Running as root: /usr/bin/ssh -l root 192.168.16.25 /opt/oracle/oak/onecmd/tmp/reboot.sh

Broadcast message from root (Tue Feb  5 11:52:52 2013):

The system is going down for reboot NOW!
INFO   : Background process 27821 (node: 192.168.16.24) gets done with the exit code 0
INFO   : Background process 27844 (node: 192.168.16.25) gets done with the exit code 0
INFO   : Time spent in step 8 reboot is 11 seconds.
==================================================================================
INFO   : Log file is /opt/oracle/oak/onecmd/tmp/odadb1-20130205115241.log...
Exiting...
[root@odadb1 bin]# Connection to 172.16.0.56 closed by remote host.
Connection to 172.16.0.56 closed.

Both node will rebooted now. To finish cleanup the file /etc/hosts must be reseted to default. During cleanup the “localhost” entry will be delete. So you have to restore it. If you don’t reset, the next deployment will get an error.
After successful cleanup, the FIRSTNET configuration can be done again.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s