segunda-feira, 23 de maio de 2011

How to forcefully ‘deconfig’ Grid cluster configuration in 11gR2 Part II of II

Note: This article was edited in english for helps any t technical that passed for this problems.

In the last article talked about how to un-configure the CRS during installation, but in this article we will talk about why the error occurred during installation.

A pre-installation requirements is that the shell limits are adjusted as described in the manual "Oracle Grid Infrastructure - 11gR2 Installation Guide".

The values ​​for the Oracle user operating system are:

         fsize = -1   (Unlimited)
         core = 2097151
         cpu = -1     (Unlimited)
         data = -1    (Unlimited)
         rss = -1     (Unlimited)
         stack = -1   (Unlimited)
         nofiles = -1 (Unlimited)

And they should also be adjusted for user "root", because during the execution of the script "root.sh" this will need the configuration.
The root user requires these settings because the CRS daemon (crsd) runs as root.

So even after performing the step described in the previous article (see article: How  to forcefully  'deconfig' Grid cluster configuration in 11gR2 - Part I), the error will persist, to solve  it  in the final installation of the infrastructure  must be rebuilt .

You should abort the installation, remove the installation (manually, bellow you see the procedure),  and  reformat  the disks of ASM, as they have been marked during installation that failed.

To remove the installation must follow these steps (for ALL NODES).

- Remove the following files:

rm /etc/init.cssd
rm /etc/init.crs
rm /etc/init.crsd
rm /etc/init.evmd
rm /etc/rc.d/rc2.d/K96init.crs
rm /etc/rc.d/rc2.d/S96init.crs
rm-Rf /etc/oracle/scls_scr
rm-Rf /etc/oracle/oprocd
rm /etc/inittab.crs

Verify that CRS processes are running, if they remove them, using the following command:

ps-ef | grep crs
kill  pid>
ps-ef | grep evm
kill  pid>
ps-ef | grep css
kill  pid>

Remove the files in /var/tmp /.oracle or /tmp/.oracle:

rm-f /var/tmp/.oracle
or
rm-f /tmp/.oracle

Remove the file ocr.loc, the ocr.loc usually can be found at / etc / oracle.

 rm-f /etc/oracle.

De-install the CRS home in the Oracle Universal Installer

Remove the CRS install location:

 rm-Rf  Install Location>/*

Clean out the OCR and Voting Files that were written in ASM with “dd” commands,
as the example below:

 dd if = /dev/zero bs=8k count=1000 of=/dev/asm1
 dd if = /dev/zero bs=8k count=1000 of=/dev/asm2
 dd if = /dev/zero bs=8k count=1000 of=/dev/asm3
 .
 .
 .
 (Run the “dd” command to ALL the disks belonging to the ASM).


From this point you can re-install the Oracle Grid Infrastructure.Rather, make sure that the limits of shells are properly adjusted.

Following these steps the installation proceeds successfully until the end.


Rubens Oliveira
DBA Oracle Consultor
olivert.dba@consultant.com