Thursday, January 16, 2020

Clean Up a Failed Grid Infrastructure Installation

Clean Up a Failed Grid Infrastructure Installation


It specifically focuses on what to do if the "root.sh" script fails during installation process and you want to clean and start again.

Grid Infrastructure

On all cluster nodes except the last, run the following command as the "root" user.
# perl $GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force
On the last cluster node, run the following command as the "root" user.
# perl $GRID_HOME/crs/install/rootcrs.pl -verbose -deconfig -force -lastnode
This final command will blank the OCR configuration and voting disk.

Step performed on First node:
[root@ol6-121-rac1 dev]# perl /u01/app/12.1.0.2/grid/crs/install/rootcrs.pl -verbose -deconfig -force
Using configuration parameter file: /u01/app/12.1.0.2/grid/crs/install/crsconfig_params
Network 1 exists
Subnet IPv4: 192.168.56.0/255.255.255.0/eth1, static
Subnet IPv6: 
Ping Targets: 
Network is enabled
Network is individually enabled on nodes: 
Network is individually disabled on nodes: 
VIP exists: network number 1, hosting node ol6-121-rac1
VIP Name: ol6-121-rac1-vip.localdomain
VIP IPv4 Address: 192.168.56.103
VIP IPv6 Address: 
VIP is enabled.
VIP is individually enabled on nodes: 
VIP is individually disabled on nodes: 
VIP exists: network number 1, hosting node ol6-121-rac2
VIP Name: ol6-121-rac2-vip.localdomain
VIP IPv4 Address: 192.168.56.104
VIP IPv6 Address: 
VIP is enabled.
VIP is individually enabled on nodes: 
VIP is individually disabled on nodes: 
ONS exists: Local port 6100, remote port 6200, EM port 2016, Uses SSL false
ONS is enabled
ONS is individually enabled on nodes: 
ONS is individually disabled on nodes: 
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'ol6-121-rac1'
CRS-2673: Attempting to stop 'ora.crsd' on 'ol6-121-rac1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'ol6-121-rac1'
CRS-2673: Attempting to stop 'ora.crshcn.db' on 'ol6-121-rac1'
CRS-2673: Attempting to stop 'ora.mgmtdb' on 'ol6-121-rac1'
CRS-2673: Attempting to stop 'ora.oc4j' on 'ol6-121-rac1'
CRS-2677: Stop of 'ora.crshcn.db' on 'ol6-121-rac1' succeeded
CRS-2677: Stop of 'ora.mgmtdb' on 'ol6-121-rac1' succeeded
CRS-2673: Attempting to stop 'ora.DATA.dg' on 'ol6-121-rac1'
CRS-2673: Attempting to stop 'ora.MGMTLSNR' on 'ol6-121-rac1'
CRS-2677: Stop of 'ora.MGMTLSNR' on 'ol6-121-rac1' succeeded
CRS-2677: Stop of 'ora.DATA.dg' on 'ol6-121-rac1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'ol6-121-rac1'
CRS-2677: Stop of 'ora.asm' on 'ol6-121-rac1' succeeded
CRS-2677: Stop of 'ora.oc4j' on 'ol6-121-rac1' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'ol6-121-rac1' has completed
CRS-2677: Stop of 'ora.crsd' on 'ol6-121-rac1' succeeded
CRS-2673: Attempting to stop 'ora.storage' on 'ol6-121-rac1'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'ol6-121-rac1'
CRS-2673: Attempting to stop 'ora.gpnpd' on 'ol6-121-rac1'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'ol6-121-rac1'
CRS-2677: Stop of 'ora.storage' on 'ol6-121-rac1' succeeded
CRS-2677: Stop of 'ora.drivers.acfs' on 'ol6-121-rac1' succeeded
CRS-2673: Attempting to stop 'ora.crf' on 'ol6-121-rac1'
CRS-2673: Attempting to stop 'ora.ctssd' on 'ol6-121-rac1'
CRS-2673: Attempting to stop 'ora.evmd' on 'ol6-121-rac1'
CRS-2673: Attempting to stop 'ora.asm' on 'ol6-121-rac1'
CRS-2677: Stop of 'ora.crf' on 'ol6-121-rac1' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'ol6-121-rac1' succeeded
CRS-2677: Stop of 'ora.evmd' on 'ol6-121-rac1' succeeded
CRS-2677: Stop of 'ora.gpnpd' on 'ol6-121-rac1' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'ol6-121-rac1' succeeded
CRS-2677: Stop of 'ora.asm' on 'ol6-121-rac1' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'ol6-121-rac1'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'ol6-121-rac1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'ol6-121-rac1'
CRS-2677: Stop of 'ora.cssd' on 'ol6-121-rac1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'ol6-121-rac1'
CRS-2677: Stop of 'ora.gipcd' on 'ol6-121-rac1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'ol6-121-rac1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
2020/01/17 04:47:13 CLSRSC-4006: Removing Oracle Trace File Analyzer (TFA) Collector.
2020/01/17 04:47:35 CLSRSC-4007: Successfully removed Oracle Trace File Analyzer (TFA) Collector.
2020/01/17 04:47:35 CLSRSC-336: Successfully deconfigured Oracle Clusterware stack on this node
[root@ol6-121-rac1 dev]# 



Steps performed on Last node:

[root@ol6-121-rac2 Desktop]# perl /u01/app/12.1.0.2/grid/crs/install/rootcrs.pl  -verbose -deconfig -force -lastnode
Using configuration parameter file: /u01/app/12.1.0.2/grid/crs/install/crsconfig_params
PRCR-1070 : Failed to check if resource ora.cvu is registered
CRS-0184 : Cannot communicate with the CRS daemon.
2020/01/17 04:48:58 CLSRSC-180: An error occurred while executing the command 'srvctl stop cvu -f' (error code 0)
PRCR-1070 : Failed to check if resource ora.cvu is registered
CRS-0184 : Cannot communicate with the CRS daemon.
2020/01/17 04:48:59 CLSRSC-180: An error occurred while executing the command 'srvctl remove cvu -f' (error code 0)
OC4J failed to stop
PRCR-1070 : Failed to check if resource ora.oc4j is registered
CRS-0184 : Cannot communicate with the CRS daemon.
OC4J could not be removed
PRCR-1070 : Failed to check if resource ora.oc4j is registered
CRS-0184 : Cannot communicate with the CRS daemon.
PRCR-1068 : Failed to query resources
CRS-0184 : Cannot communicate with the CRS daemon.
PRCR-1068 : Failed to query resources
CRS-0184 : Cannot communicate with the CRS daemon.
PRCR-1068 : Failed to query resources
CRS-0184 : Cannot communicate with the CRS daemon.
PRCR-1068 : Failed to query resources
CRS-0184 : Cannot communicate with the CRS daemon.
PRCR-1070 : Failed to check if resource ora.net1.network is registered
CRS-0184 : Cannot communicate with the CRS daemon.
PRCR-1070 : Failed to check if resource ora.helper is registered
CRS-0184 : Cannot communicate with the CRS daemon.
PRCR-1070 : Failed to check if resource ora.ons is registered
CRS-0184 : Cannot communicate with the CRS daemon.
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'ol6-121-rac2'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'ol6-121-rac2'
CRS-2673: Attempting to stop 'ora.gpnpd' on 'ol6-121-rac2'
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'ol6-121-rac2'
CRS-2673: Attempting to stop 'ora.evmd' on 'ol6-121-rac2'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'ol6-121-rac2'
CRS-2673: Attempting to stop 'ora.gipcd' on 'ol6-121-rac2'
CRS-2677: Stop of 'ora.cssdmonitor' on 'ol6-121-rac2' succeeded
CRS-2677: Stop of 'ora.drivers.acfs' on 'ol6-121-rac2' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'ol6-121-rac2' succeeded
CRS-2677: Stop of 'ora.gpnpd' on 'ol6-121-rac2' succeeded
CRS-2677: Stop of 'ora.evmd' on 'ol6-121-rac2' succeeded
CRS-2677: Stop of 'ora.gipcd' on 'ol6-121-rac2' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'ol6-121-rac2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
CRS-2672: Attempting to start 'ora.evmd' on 'ol6-121-rac2'
CRS-2672: Attempting to start 'ora.mdnsd' on 'ol6-121-rac2'
CRS-2676: Start of 'ora.evmd' on 'ol6-121-rac2' succeeded
CRS-2676: Start of 'ora.mdnsd' on 'ol6-121-rac2' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'ol6-121-rac2'
CRS-2676: Start of 'ora.gpnpd' on 'ol6-121-rac2' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'ol6-121-rac2'
CRS-2672: Attempting to start 'ora.gipcd' on 'ol6-121-rac2'
CRS-2676: Start of 'ora.cssdmonitor' on 'ol6-121-rac2' succeeded
CRS-2676: Start of 'ora.gipcd' on 'ol6-121-rac2' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'ol6-121-rac2'
CRS-2672: Attempting to start 'ora.diskmon' on 'ol6-121-rac2'
CRS-2676: Start of 'ora.diskmon' on 'ol6-121-rac2' succeeded
CRS-2676: Start of 'ora.cssd' on 'ol6-121-rac2' succeeded
ASM de-configuration trace file location: /tmp/asmcadc_clean2020-01-17_04-53-34-AM.log
ASM Clean Configuration START
ASM Clean Configuration END

ASM with SID +ASM1 deleted successfully. Check /tmp/asmcadc_clean2020-01-17_04-53-34-AM.log for details.

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'ol6-121-rac2'
CRS-2673: Attempting to stop 'ora.ctssd' on 'ol6-121-rac2'
CRS-2673: Attempting to stop 'ora.evmd' on 'ol6-121-rac2'
CRS-2673: Attempting to stop 'ora.asm' on 'ol6-121-rac2'
CRS-2673: Attempting to stop 'ora.gpnpd' on 'ol6-121-rac2'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'ol6-121-rac2'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'ol6-121-rac2'
CRS-2677: Stop of 'ora.drivers.acfs' on 'ol6-121-rac2' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'ol6-121-rac2' succeeded
CRS-2677: Stop of 'ora.evmd' on 'ol6-121-rac2' succeeded
CRS-2677: Stop of 'ora.gpnpd' on 'ol6-121-rac2' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'ol6-121-rac2' succeeded
CRS-2677: Stop of 'ora.asm' on 'ol6-121-rac2' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'ol6-121-rac2'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'ol6-121-rac2' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'ol6-121-rac2'
CRS-2677: Stop of 'ora.cssd' on 'ol6-121-rac2' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'ol6-121-rac2'
CRS-2677: Stop of 'ora.gipcd' on 'ol6-121-rac2' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'ol6-121-rac2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
2020/01/17 04:56:17 CLSRSC-4006: Removing Oracle Trace File Analyzer (TFA) Collector.
2020/01/17 04:56:27 CLSRSC-4007: Successfully removed Oracle Trace File Analyzer (TFA) Collector.
2020/01/17 04:56:28 CLSRSC-336: Successfully deconfigured Oracle Clusterware stack on this node
2020/01/17 04:56:28 CLSRSC-559: Ensure that the GPnP profile data under the 'gpnp' directory in /u01/app/12.1.0.2/grid is deleted on each node before using the software in the current Grid Infrastructure home for reconfiguration.
[root@ol6-121-rac2 Desktop]# 

if you are using ASM, you will need to clear your ASM disks before fresh start.

To revert them to candidate disk do the following.
Overwrite the header for the relevant partitions using the "dd" command.
# dd if=/dev/zero of=/dev/sdb1 bs=1024 count=100
Remove and create the ASM disk for each partition.
# /etc/init.d/oracleasm deletedisk DATA /dev/sdb1
# /etc/init.d/oracleasm createdisk DATA /dev/sdb1
The disks will now be available as candidate disks.


No comments:

Post a Comment

ORA-12519: TNS:no appropriate service handler found error

ORA-12519: TNS: no appropriate service handler found error The real problem lies in the PROCESSES parameter All you need ...