Como limpiar una instalación fallida de CRS en oracle 11gR2 en AIX 6.1
Las situaciones en las que se puede presentar la necesidad de eliminar una instalación fallida de la infraestructura del Grid son muy diversas. Lo importante es tener claro que esta labor puede ser realizada con la ayuda de un utilitario existente en Oracle 11gR2 y que facilita y asegura esta limpieza
A continuación encontrara el paso a paso y la secuencia correcta para limpiar la instalación fallida
1. Iniciemos sobre el nodo 1 forzando la des configuración del OCR asi:
NODO1
[root@nodo1]/orafs/app/11.2.0/grid>
[root@nodo1]/orafs/app/11.2.0/grid>cd $GRID_HOME/crs/install
[root@nodo1]/orafs/app/11.2.0/grid/crs/install>perl rootcrs.pl -deconfig -force
Using configuration parameter file: ./crsconfig_params
Network exists: 1/172.31.130.0/255.255.255.0/en0, type static
VIP exists: /nodo1-vip/172.31.130.25/172.31.130.0/255.255.255.0/en0, hosting node nodo1
VIP exists: /nodo2-vip/172.31.130.36/172.31.130.0/255.255.255.0/en0, hosting node nodo2
GSD exists
ONS exists: Local port 6100, remote port 6200, EM port 2016
CRS-2673: Attempting to stop 'ora.registry.acfs' on 'nodo1'
CRS-2677: Stop of 'ora.registry.acfs' on 'nodo1' succeeded
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'nodo1'
CRS-2673: Attempting to stop 'ora.crsd' on 'nodo1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'nodo1'
CRS-2673: Attempting to stop 'ora.oc4j' on 'nodo1'
CRS-2673: Attempting to stop 'ora.DATA.dg' on 'nodo1'
CRS-2677: Stop of 'ora.oc4j' on 'nodo1' succeeded
CRS-2672: Attempting to start 'ora.oc4j' on 'nodo2'
CRS-2676: Start of 'ora.oc4j' on 'nodo2' succeeded
CRS-2677: Stop of 'ora.DATA.dg' on 'nodo1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'nodo1'
CRS-2677: Stop of 'ora.asm' on 'nodo1' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'nodo1' has completed
CRS-2677: Stop of 'ora.crsd' on 'nodo1' succeeded
CRS-2673: Attempting to stop 'ora.mdnsd' on 'nodo1'
CRS-2673: Attempting to stop 'ora.crf' on 'nodo1'
CRS-2673: Attempting to stop 'ora.ctssd' on 'nodo1'
CRS-2673: Attempting to stop 'ora.evmd' on 'nodo1'
CRS-2673: Attempting to stop 'ora.asm' on 'nodo1'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'nodo1'
CRS-2677: Stop of 'ora.mdnsd' on 'nodo1' succeeded
CRS-2677: Stop of 'ora.crf' on 'nodo1' succeeded
CRS-2677: Stop of 'ora.evmd' on 'nodo1' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'nodo1' succeeded
CRS-2677: Stop of 'ora.drivers.acfs' on 'nodo1' succeeded
CRS-2677: Stop of 'ora.asm' on 'nodo1' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'nodo1'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'nodo1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'nodo1'
CRS-2677: Stop of 'ora.cssd' on 'nodo1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'nodo1'
CRS-2677: Stop of 'ora.gipcd' on 'nodo1' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'nodo1'
CRS-2677: Stop of 'ora.gpnpd' on 'nodo1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'nodo1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
This may take several minutes. Please wait ...
0518-307 odmdelete: 1 objects deleted.
0518-307 odmdelete: 1 objects deleted.
0518-307 odmdelete: 1 objects deleted.
Successfully deconfigured Oracle clusterware stack on this node
[root@nodo1]/orafs/app/11.2.0/grid/crs/install>
2. Una vez concluye el nodo1 pasemos al nodo 2 note que se agrega “lastnode”a la instrucción, la que se encarga de des-configurar el ASM ya creado
NODO2
[root@nodo2]/>cd /orafs/app/11.2.0/grid/crs/install
[root@nodo2]/orafs/app/11.2.0/grid/crs/install>perl rootcrs.pl -deconfig -force -lastnode
Using configuration parameter file: ./crsconfig_params
Network exists: 1/172.31.130.0/255.255.255.0/en0, type static
VIP exists: /nodo2-vip/172.31.130.36/172.31.130.0/255.255.255.0/en0, hosting node nodo2
GSD exists
ONS exists: Local port 6100, remote port 6200, EM port 2016
CRS-2673: Attempting to stop 'ora.registry.acfs' on 'nodo2'
CRS-2677: Stop of 'ora.registry.acfs' on 'nodo2' succeeded
CRS-2673: Attempting to stop 'ora.crsd' on 'nodo2'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'nodo2'
CRS-2673: Attempting to stop 'ora.DATA.dg' on 'nodo2'
CRS-2673: Attempting to stop 'ora.oc4j' on 'nodo2'
CRS-2677: Stop of 'ora.oc4j' on 'nodo2' succeeded
CRS-2677: Stop of 'ora.DATA.dg' on 'nodo2' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'nodo2'
CRS-2677: Stop of 'ora.asm' on 'nodo2' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'nodo2' has completed
CRS-2677: Stop of 'ora.crsd' on 'nodo2' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'nodo2'
CRS-2673: Attempting to stop 'ora.evmd' on 'nodo2'
CRS-2673: Attempting to stop 'ora.asm' on 'nodo2'
CRS-2677: Stop of 'ora.evmd' on 'nodo2' succeeded
CRS-2677: Stop of 'ora.asm' on 'nodo2' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'nodo2'
CRS-2677: Stop of 'ora.ctssd' on 'nodo2' succeeded
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'nodo2' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'nodo2'
CRS-2677: Stop of 'ora.cssd' on 'nodo2' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'nodo2'
CRS-2676: Start of 'ora.cssdmonitor' on 'nodo2' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'nodo2'
CRS-2672: Attempting to start 'ora.diskmon' on 'nodo2'
CRS-2676: Start of 'ora.diskmon' on 'nodo2' succeeded
CRS-2676: Start of 'ora.cssd' on 'nodo2' succeeded
CRS-4611: Successful deletion of voting disk +DATA.
ASM de-configuration trace file location: /tmp/asmcadc_clean2012-07-18_10-04-26-AM.log
ASM Clean Configuration START
ASM Clean Configuration END
ASM with SID +ASM1 deleted successfully. Check /tmp/asmcadc_clean2012-07-18_10-04-26-AM.log for details.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'nodo2'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'nodo2'
CRS-2673: Attempting to stop 'ora.crf' on 'nodo2'
CRS-2673: Attempting to stop 'ora.ctssd' on 'nodo2'
CRS-2673: Attempting to stop 'ora.asm' on 'nodo2'
CRS-2677: Stop of 'ora.crf' on 'nodo2' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'nodo2' succeeded
CRS-2677: Stop of 'ora.asm' on 'nodo2' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'nodo2'
CRS-2677: Stop of 'ora.ctssd' on 'nodo2' succeeded
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'nodo2' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'nodo2'
CRS-2677: Stop of 'ora.cssd' on 'nodo2' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'nodo2'
CRS-2677: Stop of 'ora.gipcd' on 'nodo2' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'nodo2'
CRS-2677: Stop of 'ora.gpnpd' on 'nodo2' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'nodo2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
This may take several minutes. Please wait ...
0518-307 odmdelete: 1 objects deleted.
0518-307 odmdelete: 1 objects deleted.
0518-307 odmdelete: 1 objects deleted.
Successfully deconfigured Oracle clusterware stack on this node
[root@nodo2]/orafs/app/11.2.0/grid/crs/install>
3. Una vez terminada las acciones sobre los dos nodos se debe eliminar el software de los fielsystem solo sobre el nodo 1 así:
NODO1 con el usuario GRID
[grid@nodo1]/home/grid>cd /orafs/app/11.2.0/grid/deinstall
[grid@nodo1]/orafs/app/11.2.0/grid/deinstall>./deinstall
Checking for required files and bootstrapping ...
Please wait ...
Location of logs /orafs/app/oraInventory/logs/
############ ORACLE DEINSTALL & DECONFIG TOOL START ############
######################### CHECK OPERATION START #########################
## [START] Install check configuration ##
Checking for existence of the Oracle home location /orafs/app/11.2.0/grid
Oracle Home type selected for deinstall is: Oracle Grid Infrastructure for a Cluster
Oracle Base selected for deinstall is: /orafs/app/oracle
Checking for existence of central inventory location /orafs/app/oraInventory
Checking for existence of the Oracle Grid Infrastructure home
The following nodes are part of this cluster: nodo1,nodo2
Checking for sufficient temp space availability on node(s) : 'nodo1,nodo2'
## [END] Install check configuration ##
Traces log file: /orafs/app/oraInventory/logs//crsdc.log
Enter an address or the name of the virtual IP used on node "nodo1"[nodo1-vip]
>
The following information can be collected by running "/sbin/ifconfig -a" on node "nodo1"
Enter the IP netmask of Virtual IP "172.31.130.25" on node "nodo1"[255.255.255.0]
>
Enter the network interface name on which the virtual IP address "172.31.130.25" is active
>
Enter an address or the name of the virtual IP used on node "nodo2"[nodo2-vip]
>
The following information can be collected by running "/sbin/ifconfig -a" on node "nodo2"
Enter the IP netmask of Virtual IP "172.31.130.36" on node "nodo2"[255.255.255.0]
>
Enter the network interface name on which the virtual IP address "172.31.130.36" is active
>
Enter an address or the name of the virtual IP[]
>
Network Configuration check config START
Network de-configuration trace file location: /orafs/app/oraInventory/logs/netdc_check2012-07-18_10-10-44-AM.log
Specify all RAC listeners (do not include SCAN listener) that are to be de-configured [LISTENER_SCAN3,LISTENER_SCAN2,LISTENER_SCAN1]:
Network Configuration check config END
Asm Check Configuration START
ASM de-configuration trace file location: /orafs/app/oraInventory/logs/asmcadc_check2012-07-18_10-11-27-AM.log
ASM configuration was not detected in this Oracle home. Was ASM configured in this Oracle home (y|n) [n]:
ASM was not detected in the Oracle Home
######################### CHECK OPERATION END #########################
####################### CHECK OPERATION SUMMARY #######################
Oracle Grid Infrastructure Home is:
The cluster node(s) on which the Oracle home deinstallation will be performed are:nodo1,nodo2
Oracle Home selected for deinstall is: /orafs/app/11.2.0/grid
Inventory Location where the Oracle home registered is: /orafs/app/oraInventory
Following RAC listener(s) will be de-configured: LISTENER_SCAN3,LISTENER_SCAN2,LISTENER_SCAN1
ASM was not detected in the Oracle Home
Do you want to continue (y - yes, n - no)? [n]: y
A log of this session will be written to: '/orafs/app/oraInventory/logs/deinstall_deconfig2012-07-18_10-08-11-AM.out'
Any error messages from this session will be written to: '/orafs/app/oraInventory/logs/deinstall_deconfig2012-07-18_10-08-11-AM.err'
######################## CLEAN OPERATION START ########################
ASM de-configuration trace file location: /orafs/app/oraInventory/logs/asmcadc_clean2012-07-18_10-11-38-AM.log
ASM Clean Configuration END
Network Configuration clean config START
Network de-configuration trace file location: /orafs/app/oraInventory/logs/netdc_clean2012-07-18_10-11-38-AM.log
De-configuring RAC listener(s): LISTENER_SCAN3,LISTENER_SCAN2,LISTENER_SCAN1
De-configuring listener: LISTENER_SCAN3
Stopping listener: LISTENER_SCAN3
Warning: Failed to stop listener. Listener may not be running.
Listener de-configured successfully.
De-configuring listener: LISTENER_SCAN2
Stopping listener: LISTENER_SCAN2
Warning: Failed to stop listener. Listener may not be running.
Listener de-configured successfully.
De-configuring listener: LISTENER_SCAN1
Stopping listener: LISTENER_SCAN1
Warning: Failed to stop listener. Listener may not be running.
Listener de-configured successfully.
De-configuring Naming Methods configuration file on all nodes...
Naming Methods configuration file de-configured successfully.
De-configuring Local Net Service Names configuration file on all nodes...
Local Net Service Names configuration file de-configured successfully.
De-configuring Directory Usage configuration file on all nodes...
Directory Usage configuration file de-configured successfully.
De-configuring backup files on all nodes...
Backup files de-configured successfully.
The network configuration has been cleaned up successfully.
Network Configuration clean config END
---------------------------------------->
The deconfig command below can be executed in parallel on all the remote nodes. Execute the command on the local node after the execution completes on all the remote nodes.
Run the following command as the root user or the administrator on node "nodo2".
/tmp/deinstall2012-07-18_10-07-45AM/perl/bin/perl -I/tmp/deinstall2012-07-18_10-07-45AM/perl/lib -I/tmp/deinstall2012-07-18_10-07-45AM/crs/install /tmp/deinstall2012-07-18_10-07-45AM/crs/install/rootcrs.pl -force -deconfig -paramfile "/tmp/deinstall2012-07-18_10-07-45AM/response/deinstall_Ora11g_gridinfrahome1.rsp"
Run the following command as the root user or the administrator on node "nodo1".
/tmp/deinstall2012-07-18_10-07-45AM/perl/bin/perl -I/tmp/deinstall2012-07-18_10-07-45AM/perl/lib -I/tmp/deinstall2012-07-18_10-07-45AM/crs/install /tmp/deinstall2012-07-18_10-07-45AM/crs/install/rootcrs.pl -force -deconfig -paramfile "/tmp/deinstall2012-07-18_10-07-45AM/response/deinstall_Ora11g_gridinfrahome1.rsp" -lastnode
Press Enter after you finish running the above commands
<----------------------------------------
Vea paso 3.a y 3.b
4. En este punto se debe realizar acciones sobre dos nuevas ventanas dejando pendiente la actual ventana para posteriormente continuar sobre ella
Setting the force flag to false
Setting the force flag to cleanup the Oracle Base
Oracle Universal Installer clean START
Detach Oracle home '/orafs/app/11.2.0/grid' from the central inventory on the local node : Done
Delete directory '/orafs/app/11.2.0/grid' on the local node : Done
The Oracle Base directory '/orafs/app/oracle' will not be removed on local node. The directory is in use by Oracle Home '/orafs/app/oracle/product/11.2.0/dbhome_1'.
Detach Oracle home '/orafs/app/11.2.0/grid' from the central inventory on the remote nodes 'nodo2' : Done
Delete directory '/orafs/app/11.2.0/grid' on the remote nodes 'nodo2' : Done
The Oracle Base directory '/orafs/app/oracle' will not be removed on node 'nodo2'. The directory is in use by Oracle Home '/orafs/app/oracle/product/11.2.0/dbhome_1'.
Oracle Universal Installer cleanup was successful.
Oracle Universal Installer clean END
## [START] Oracle install clean ##
Clean install operation removing temporary directory '/tmp/deinstall2012-07-18_10-07-45AM' on node 'nodo1'
Clean install operation removing temporary directory '/tmp/deinstall2012-07-18_10-07-45AM' on node 'nodo2'
## [END] Oracle install clean ##
######################### CLEAN OPERATION END #########################
####################### CLEAN OPERATION SUMMARY #######################
Following RAC listener(s) were de-configured successfully: LISTENER_SCAN3,LISTENER_SCAN2,LISTENER_SCAN1
Oracle Clusterware is stopped and successfully de-configured on node "nodo2"
Oracle Clusterware is stopped and successfully de-configured on node "nodo1"
Oracle Clusterware is stopped and de-configured successfully.
Successfully detached Oracle home '/orafs/app/11.2.0/grid' from the central inventory on the local node.
Successfully deleted directory '/orafs/app/11.2.0/grid' on the local node.
Successfully detached Oracle home '/orafs/app/11.2.0/grid' from the central inventory on the remote nodes 'nodo2'.
Successfully deleted directory '/orafs/app/11.2.0/grid' on the remote nodes 'nodo2'.
Oracle Universal Installer cleanup was successful.
Run 'rm -rf /opt/ORCLfmap' as root on node(s) 'nodo1,nodo2' at the end of the session.
Oracle deinstall tool successfully cleaned up temporary directories.
#######################################################################
############# ORACLE DEINSTALL & DECONFIG TOOL END #############
[grid@nodo1]/orafs/app/11.2.0/grid/deinstall>
[root@nodo1]/>rm -rf /opt/ORCLfmap
[root@nodo1]/>
[root@nodo2]/orafs/app/11.2.0/grid/crs/install>rm -rf /opt/ORCLfmap
[root@nodo2]/orafs/app/11.2.0/grid/crs/install>
3. a Según las indicaciones del utilitario se debe ejecutar la siguinete instruction sobre el nodo2 (copie y pegue en una nueva ventana
[root@nodo2]/orafs/app/11.2.0/grid/crs/install>tall2012-07-18_10-07-45AM/response/deinstall_Ora11g_gridinfrahome1.rsp" <
Using configuration parameter file: /tmp/deinstall2012-07-18_10-07-45AM/response/deinstall_Ora11g_gridinfrahome1.rsp
****Unable to retrieve Oracle Clusterware home.
Start Oracle Clusterware stack and try again.
CRS-4047: No Oracle Clusterware components configured.
CRS-4000: Command Stop failed, or completed with errors.
CRS-4047: No Oracle Clusterware components configured.
CRS-4000: Command Stop failed, or completed with errors.
################################################################
# You must kill processes or reboot the system to properly #
# cleanup the processes started by Oracle clusterware #
################################################################
ACFS-9313: No ADVM/ACFS installation detected.
Either /etc/oracle/olr.loc does not exist or is not readable
Make sure the file exists and it has read and execute access
Either /etc/oracle/olr.loc does not exist or is not readable
Make sure the file exists and it has read and execute access
Failure in execution (rc=-1, 256, No such file or directory) for command /etc/ohasd deinstall
Successfully deconfigured Oracle clusterware stack on this node
[root@nodo2]/orafs/app/11.2.0/grid/crs/install>
3. a Según las indicaciones del utilitario se debe ejecutar la siguinete instruction sobre el nodo1 (copie y pegue en una nueva ventana
[root@nodo1]/>/tmp/deinstall2012-07-18_10-07-45AM/response/deinstall_Ora11g_gridinfrahome1.rsp" -lastnode <
Using configuration parameter file: /tmp/deinstall2012-07-18_10-07-45AM/response/deinstall_Ora11g_gridinfrahome1.rsp
Adding Clusterware entries to inittab
/crs/install/inittab does not exist.
****Unable to retrieve Oracle Clusterware home.
Start Oracle Clusterware stack and try again.
****Unable to retrieve Oracle Clusterware home.
Start Oracle Clusterware stack and try again.
****Unable to retrieve Oracle Clusterware home.
Start Oracle Clusterware stack and try again.
****Unable to retrieve Oracle Clusterware home.
Start Oracle Clusterware stack and try again.
****Unable to retrieve Oracle Clusterware home.
Start Oracle Clusterware stack and try again.
CRS-4047: No Oracle Clusterware components configured.
CRS-4000: Command Stop failed, or completed with errors.
CRS-4047: No Oracle Clusterware components configured.
CRS-4000: Command Delete failed, or completed with errors.
CRS-4047: No Oracle Clusterware components configured.
CRS-4000: Command Stop failed, or completed with errors.
CRS-4047: No Oracle Clusterware components configured.
CRS-4000: Command Modify failed, or completed with errors.
Adding Clusterware entries to inittab
/crs/install/inittab does not exist.
CRS-4047: No Oracle Clusterware components configured.
CRS-4000: Command Delete failed, or completed with errors.
crsctl delete for vds in DATA ... failed
CRS-4047: No Oracle Clusterware components configured.
CRS-4000: Command Delete failed, or completed with errors.
CRS-4047: No Oracle Clusterware components configured.
CRS-4000: Command Stop failed, or completed with errors.
ACFS-9313: No ADVM/ACFS installation detected.
Either /etc/oracle/olr.loc does not exist or is not readable
Make sure the file exists and it has read and execute access
Either /etc/oracle/olr.loc does not exist or is not readable
Make sure the file exists and it has read and execute access
Failure in execution (rc=-1, 256, No such file or directory) for command /etc/ohasd deinstall
Successfully deconfigured Oracle clusterware stack on this node
[root@nodo1]/>
Vuelva al paso 4