Total Pageviews

Thursday 16 April 2015

How to Deconfigure and Deinstall Grid Infrastructure

[grid@rac12cn1 ~]$ crsctl status res -t
--------------------------------------------------------------------------------
Name           Target  State        Server                   State details    
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       rac12cn1                 STABLE
               ONLINE  ONLINE       rac12cn2                 STABLE
ora.FRA.dg
               ONLINE  ONLINE       rac12cn1                 STABLE
               ONLINE  ONLINE       rac12cn2                 STABLE
ora.LISTENER.lsnr
               ONLINE  ONLINE       rac12cn1                 STABLE
               ONLINE  ONLINE       rac12cn2                 STABLE
ora.OCR_VOTE.dg
               ONLINE  ONLINE       rac12cn1                 STABLE
               ONLINE  ONLINE       rac12cn2                 STABLE
ora.asm
               ONLINE  ONLINE       rac12cn1                 Started,STABLE
               ONLINE  ONLINE       rac12cn2                 Started,STABLE
ora.net1.network
               ONLINE  ONLINE       rac12cn1                 STABLE
               ONLINE  ONLINE       rac12cn2                 STABLE
ora.ons
               ONLINE  ONLINE       rac12cn1                 STABLE
               ONLINE  ONLINE       rac12cn2                 STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       rac12cn1                 STABLE
ora.LISTENER_SCAN2.lsnr
      1        ONLINE  ONLINE       rac12cn1                 STABLE
ora.LISTENER_SCAN3.lsnr
      1        ONLINE  ONLINE       rac12cn1                 STABLE
ora.cvu
      1        ONLINE  ONLINE       rac12cn2                 STABLE
ora.oc4j
      1        OFFLINE OFFLINE                               STABLE
ora.rac12cn1.vip
      1        ONLINE  ONLINE       rac12cn1                 STABLE
ora.rac12cn2.vip
      1        ONLINE  ONLINE       rac12cn2                 STABLE
ora.scan1.vip
      1        ONLINE  ONLINE       rac12cn1                 STABLE
ora.scan2.vip
      1        ONLINE  ONLINE       rac12cn1                 STABLE
ora.scan3.vip
      1        ONLINE  ONLINE       rac12cn1                 STABLE
--------------------------------------------------------------------------------
[grid@rac12cn1 ~]$

Before deconfiguring a node, ensure it's not pinned, i.e.:

[grid@rac12cn1 ~]$ olsnodes -s -t
rac12cn1 Active Unpinned
rac12cn2 Active Unpinned
[grid@rac12cn1 ~]$
If a node is pinned, unpin it first, i.e. as root user:
<GI_HOME>/bin/crsctl unpin css -n <racnode1>

If OCR or Voting Disks are on ASM and there is user data in OCR/Voting Disk ASM diskgroup:
If GI version is 11.2.0.3 AND fix for bug 13058611 and bug 13001955 has been applied, or GI version is 11.2.0.3.2 GI PSU (includes both fixes) or higher:
On all remote nodes, as root execute:
# <$GRID_HOME>/crs/install/rootcrs.pl -deconfig -force -verbose



[root@rac12cn1 ~]# /data01/app/12.1.0.1.0/grid_121010/crs/install/rootcrs.pl -deconfig -force -verbose
Using configuration parameter file: /data01/app/12.1.0.1.0/grid_121010/crs/install/crsconfig_params
Network 1 exists
Subnet IPv4: 192.168.56.0/255.255.255.0/eth0, static
Subnet IPv6:
VIP exists: network number 1, hosting node rac12cn1
VIP Name: rac12cn1-vip.localdomain
VIP IPv4 Address: 192.168.56.81
VIP IPv6 Address:
VIP exists: network number 1, hosting node rac12cn2
VIP Name: rac12cn2-vip.localdomain
VIP IPv4 Address: 192.168.56.82
VIP IPv6 Address:
ONS exists: Local port 6100, remote port 6200, EM port 2016
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac12cn1'
CRS-2673: Attempting to stop 'ora.crsd' on 'rac12cn1'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'rac12cn1'
CRS-2673: Attempting to stop 'ora.FRA.dg' on 'rac12cn1'
CRS-2673: Attempting to stop 'ora.DATA.dg' on 'rac12cn1'
CRS-2677: Stop of 'ora.DATA.dg' on 'rac12cn1' succeeded
CRS-2677: Stop of 'ora.FRA.dg' on 'rac12cn1' succeeded
CRS-2673: Attempting to stop 'ora.OCR_VOTE.dg' on 'rac12cn1'
CRS-2677: Stop of 'ora.OCR_VOTE.dg' on 'rac12cn1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'rac12cn1'
CRS-2677: Stop of 'ora.asm' on 'rac12cn1' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on 'rac12cn1'
CRS-2677: Stop of 'ora.net1.network' on 'rac12cn1' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'rac12cn1' has completed
CRS-2677: Stop of 'ora.crsd' on 'rac12cn1' succeeded
CRS-2673: Attempting to stop 'ora.evmd' on 'rac12cn1'
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac12cn1'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac12cn1'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'rac12cn1'
CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac12cn1'
CRS-2677: Stop of 'ora.drivers.acfs' on 'rac12cn1' succeeded
CRS-2677: Stop of 'ora.gpnpd' on 'rac12cn1' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'rac12cn1' succeeded
CRS-2677: Stop of 'ora.evmd' on 'rac12cn1' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'rac12cn1' succeeded
CRS-2673: Attempting to stop 'ora.storage' on 'rac12cn1'
CRS-2677: Stop of 'ora.storage' on 'rac12cn1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'rac12cn1'
CRS-2677: Stop of 'ora.asm' on 'rac12cn1' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'rac12cn1'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'rac12cn1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac12cn1'
CRS-2677: Stop of 'ora.cssd' on 'rac12cn1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'rac12cn1'
CRS-2677: Stop of 'ora.gipcd' on 'rac12cn1' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac12cn1' has completed
CRS-4133: Oracle High Availability Services has been stopped.
2015/04/16 11:43:20 CLSRSC-336: Successfully deconfigured Oracle clusterware stack on this node


[root@rac12cn1 ~]# /data01/app/12.1.0.1.0/grid_121010/bin/crsctl status res -t
CRS-4047: No Oracle Clusterware components configured.
CRS-4000: Command Status failed, or completed with errors.
[root@rac12cn1 ~]#
[root@rac12cn1 ~]#
[root@rac12cn1 ~]# ssh rac12cn2
root@rac12cn2's password:
Last login: Thu Dec 25 08:21:03 2014 from rac12cn1.localdomain
[root@rac12cn2 ~]#
[root@rac12cn2 ~]#
[root@rac12cn2 ~]#
[root@rac12cn2 ~]# /data01/app/12.1.0.1.0/grid_121010/bin/crsctl status res -t
--------------------------------------------------------------------------------
Name           Target  State        Server                   State details    
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       rac12cn2                 STABLE
ora.FRA.dg
               ONLINE  ONLINE       rac12cn2                 STABLE
ora.LISTENER.lsnr
               ONLINE  ONLINE       rac12cn2                 STABLE
ora.OCR_VOTE.dg
               ONLINE  ONLINE       rac12cn2                 STABLE
ora.asm
               ONLINE  ONLINE       rac12cn2                 Started,STABLE
ora.net1.network
               ONLINE  ONLINE       rac12cn2                 STABLE
ora.ons
               ONLINE  ONLINE       rac12cn2                 STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       rac12cn2                 STABLE
ora.LISTENER_SCAN2.lsnr
      1        ONLINE  ONLINE       rac12cn2                 STABLE
ora.LISTENER_SCAN3.lsnr
      1        ONLINE  ONLINE       rac12cn2                 STABLE
ora.cvu
      1        ONLINE  ONLINE       rac12cn2                 STABLE
ora.oc4j
      1        OFFLINE OFFLINE                               STABLE
ora.rac12cn2.vip
      1        ONLINE  ONLINE       rac12cn2                 STABLE
ora.scan1.vip
      1        ONLINE  ONLINE       rac12cn2                 STABLE
ora.scan2.vip
      1        ONLINE  ONLINE       rac12cn2                 STABLE
ora.scan3.vip
      1        ONLINE  ONLINE       rac12cn2                 STABLE
--------------------------------------------------------------------------------
[root@rac12cn2 ~]#


Once the above command finishes on all remote nodes, on local node, as root execute:
/data01/app/12.1.0.1.0/grid_121010/crs/install/rootcrs.pl -deconfig -force -verbose -keepdg -lastnode
[root@rac12cn2 ~]# /data01/app/12.1.0.1.0/grid_121010/crs/install/rootcrs.pl -deconfig -force -verbose -keepdg -lastnode
Using configuration parameter file: /data01/app/12.1.0.1.0/grid_121010/crs/install/crsconfig_params
2015/04/16 11:46:01 CLSRSC-332: CRS resources for listeners are still configured

OC4J failed to stop
PRCC-1016 : oc4j was already stopped
PRCR-1005 : Resource ora.oc4j is already stopped
Network 1 exists
Subnet IPv4: 192.168.56.0/255.255.255.0/eth0, static
Subnet IPv6:
VIP exists: network number 1, hosting node rac12cn2
VIP Name: rac12cn2-vip.localdomain
VIP IPv4 Address: 192.168.56.82
VIP IPv6 Address:
ONS exists: Local port 6100, remote port 6200, EM port 2016
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac12cn2'
CRS-2673: Attempting to stop 'ora.crsd' on 'rac12cn2'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'rac12cn2'
CRS-2673: Attempting to stop 'ora.FRA.dg' on 'rac12cn2'
CRS-2677: Stop of 'ora.FRA.dg' on 'rac12cn2' succeeded
CRS-2673: Attempting to stop 'ora.DATA.dg' on 'rac12cn2'
CRS-2673: Attempting to stop 'ora.OCR_VOTE.dg' on 'rac12cn2'
CRS-2677: Stop of 'ora.DATA.dg' on 'rac12cn2' succeeded
CRS-2677: Stop of 'ora.OCR_VOTE.dg' on 'rac12cn2' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'rac12cn2'
CRS-2677: Stop of 'ora.asm' on 'rac12cn2' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'rac12cn2' has completed
CRS-2677: Stop of 'ora.crsd' on 'rac12cn2' succeeded
CRS-2673: Attempting to stop 'ora.storage' on 'rac12cn2'
CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac12cn2'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac12cn2'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'rac12cn2'
CRS-2677: Stop of 'ora.storage' on 'rac12cn2' succeeded
CRS-2677: Stop of 'ora.drivers.acfs' on 'rac12cn2' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac12cn2'
CRS-2673: Attempting to stop 'ora.evmd' on 'rac12cn2'
CRS-2673: Attempting to stop 'ora.asm' on 'rac12cn2'
CRS-2677: Stop of 'ora.mdnsd' on 'rac12cn2' succeeded
CRS-2677: Stop of 'ora.gpnpd' on 'rac12cn2' succeeded
CRS-2677: Stop of 'ora.evmd' on 'rac12cn2' succeeded
CRS-2677: Stop of 'ora.asm' on 'rac12cn2' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'rac12cn2'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'rac12cn2' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'rac12cn2' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac12cn2'
CRS-2677: Stop of 'ora.cssd' on 'rac12cn2' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'rac12cn2'
CRS-2677: Stop of 'ora.gipcd' on 'rac12cn2' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac12cn2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'rac12cn2'
CRS-2677: Stop of 'ora.drivers.acfs' on 'rac12cn2' succeeded
CRS-2672: Attempting to start 'ora.evmd' on 'rac12cn2'
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac12cn2'
CRS-2676: Start of 'ora.evmd' on 'rac12cn2' succeeded
CRS-2676: Start of 'ora.mdnsd' on 'rac12cn2' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac12cn2'
CRS-2676: Start of 'ora.gpnpd' on 'rac12cn2' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac12cn2'
CRS-2672: Attempting to start 'ora.gipcd' on 'rac12cn2'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac12cn2' succeeded
CRS-2676: Start of 'ora.gipcd' on 'rac12cn2' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac12cn2'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac12cn2'
CRS-2676: Start of 'ora.diskmon' on 'rac12cn2' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac12cn2' succeeded
CRS-4611: Successful deletion of voting disk +OCR_VOTE.
ASM de-configuration trace file location: /tmp/asmcadc_clean2015-04-16_11-54-32-AM.log
ASM Clean Configuration START
ASM Clean Configuration END

ASM with SID +ASM1 deleted successfully. Check /tmp/asmcadc_clean2015-04-16_11-54-32-AM.log for details.

2015/04/16 11:59:19 CLSRSC-170: Failed to deconfigure Oracle ASM (error code 0) -- Can be ignored

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac12cn2'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac12cn2'
CRS-2673: Attempting to stop 'ora.evmd' on 'rac12cn2'
CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac12cn2'
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'rac12cn2'
CRS-2677: Stop of 'ora.drivers.acfs' on 'rac12cn2' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'rac12cn2' succeeded
CRS-2677: Stop of 'ora.gpnpd' on 'rac12cn2' succeeded
CRS-2677: Stop of 'ora.evmd' on 'rac12cn2' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac12cn2'
CRS-2673: Attempting to stop 'ora.asm' on 'rac12cn2'
CRS-2677: Stop of 'ora.ctssd' on 'rac12cn2' succeeded
CRS-2677: Stop of 'ora.asm' on 'rac12cn2' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'rac12cn2'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'rac12cn2' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac12cn2'
CRS-2677: Stop of 'ora.cssd' on 'rac12cn2' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'rac12cn2'
CRS-2677: Stop of 'ora.gipcd' on 'rac12cn2' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac12cn2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
2015/04/16 12:00:16 CLSRSC-336: Successfully deconfigured Oracle clusterware stack on this node


 Grid Infrastructure Deinstall

 As grid user, execute:

$ <$GRID_HOME>/deinstall/deinstall

If there's any error, deconfigure the failed GI with steps in Section A - C, and deinstall manually with note 1364419.1

export ORACLE_HOME=<clusterware-home>

## detach ORACLE_HOME
$ORACLE_HOME/oui/bin/runInstaller -detachHome -silent ORACLE_HOME=$ORACLE_HOME

## confirm $ORACLE_HOME is removed from central inventory:
$ORACLE_HOME/OPatch/opatch lsinventory -all

## remove files in ORACLE_HOME manually on all nodes
/bin/rm -rf $ORACLE_HOME               ##>> if grid user fails to remove all files, switch to root user

unset ORACLE_HOME
If it fails for any reason, as clusterware user execute the following on all nodes:

export ORACLE_HOME=<clusterware-home>

## detach ORACLE_HOME
$ORACLE_HOME/oui/bin/runInstaller -detachHome -silent -local ORACLE_HOME=$ORACLE_HOME

## confirm $ORACLE_HOME is removed from central inventory:
$ORACLE_HOME/OPatch/opatch lsinventory -all

## remove files in ORACLE_HOME manually
/bin/rm -rf $ORACLE_HOME               ##>> if grid user fails to remove all files, switch to root user

unset ORACLE_HOME

Reference: How to Deconfigure/Reconfigure(Rebuild OCR) or Deinstall Grid Infrastructure (Doc ID 1377349.1)

2 comments:

  1. Prediksi Jadwal Sabung Ayam SV388 25 Februari 2019 - Senin, 25 Februari 2019 – Pada Hari Tersebut Akan Di Laksanakan Berbagai Pertandingan Sabung Ayam Secara Live di Arena Sabung Ayam Thailand.

    Judi Sabung Ayam – Jika ingin mendaftar Games Permainan Sabung Ayam Khusus SV388. Cara untuk deposit atau withdraw, Anda bisa langsung kunjungi website kami atau langsung hubungi Customer Service kami melalui Livechat yang tersedia di website ini untuk melakukan semua Jenis transaksi Yang Ada.

    Untuk Info Lebih Lanjut Bisa Hub kami Di :
    wechat : bolavita
    line : cs_bolavita
    whatsapp : +628122222995
    BBM: BOLAVITA

    ReplyDelete
  2. Jadwal Cockfight SV388 2 Maret 2019 di Situs Judi Sabung Ayam Online Melalui Agen Resmi Taruhan Sabung Ayam Live Asli Thailand.

    Judi Sabung Ayam - Sabtu, Aceh 2 Maret 2019 – Kami Selaku Agen Sabung Ayam 2018 Akan Memberikan Informasi Mengenai Jadwal Cockfight SV388 2 Maret 2019.

    Untuk Info Lebih Lanjut Bisa Hub kami Di :
    wechat : bolavita
    line : cs_bolavita
    whatsapp : +628122222995
    BBM: BOLAVITA

    ReplyDelete