Saturday, August 12, 2006

Cleanup Failed CRS Install on HP-UX Itanium

Since we had to do this several times, the following is how to cleanup after a failed CRS Install on HP-UX Itanium. (Refer to MetaLink Note: 239998.1). There were problems with the rootdelete.sh and rootdeinstall.sh scripts so we always had to cleanup the failed install manually:
  1. srvctl stop nodeapps -n (we didn't have to do this because our failed installs never got this far).
  2. As root:
  3. rm /sbin/init.d/init.cssd
  4. rm /sbin/init.d/init.crs
  5. rm /sbin/init.d/init.crsd
  6. rm /sbin/init.d/evmd
  7. rm /sbin/rc2.d/K001init.crs
  8. rm /sbin/rc2.d/K960init.crs
  9. rm /sbin/rc3.d/K001init.crs
  10. rm /sbin/rc3.d/K960init.crs
  11. rm /sbin/rc3.d/S960init.crs
  12. rm -Rf /var/opt/oracle/scls_scr
  13. rm -Rf /var/opt/oracle/oprocd
  14. rm /etc/inittab.crs
  15. cp /etc/inittab.orig /etc/inittab
  16. If they are not already down, kill the EVM, CRS, and CSS processes.
  17. rm -Rf /var/tmp/.oracle
  18. rm -Rf /tmp/.oracle
  19. remove the ocr.loc file
  20. rm -Rf /* CRS Install Location */
  21. De-install the CRS home in the OUI
  22. Clean out the OCR and voting files with dd commands Example:
  23. dd if=/dev/zero of=/dev/rdsk/voting bs=8192 count=2560
  24. dd if=/dev/zero of=/dev/rdsk/ocr bs=8192 count=12800
  25. rm -Rf /app/oracle/oraInventory

Once those are done, you can restart the OUI install of Clusterware at the very beginning. Oracle has also just released a new cleanup utility for failed CRS installs here is the link:

http://download-west.oracle.com/otndocs/products/clustering/deinstall/clusterdeconfig.zip

The new script didn't work for us either. Of course, I didn't try it after our system admins removed ServiceGuard so it may work now.

No comments: