zoukankan      html  css  js  c++  java
  • 实验:记录一则删除GI的过程

    环境: RHEL 6.5 + Oracle GI 11.2.0.4 (2 nodes)
    参考MOS文档
    How to Deconfigure/Reconfigure(Rebuild OCR) or Deinstall Grid Infrastructure (文档 ID 1377349.1)

    1.前期准备

    确认各节点都是unpin的状态:
    <GI_HOME>/bin/olsnodes -s -t
    
    If a node is pinned, unpin it first, i.e. as root user:
    <GI_HOME>/bin/crsctl unpin css -n <racnode1>
    

    尽可能收集全集群相关的信息:

    Before deconfiguring, collect the following as grid user if possible to generate a list of user resources to be added back to the cluster after reconfigure finishes:
    
    $GRID_HOME/bin/crsctl stat res -t
    $GRID_HOME/bin/crsctl stat res -p
    $GRID_HOME/bin/crsctl query css votedisk
    $GRID_HOME/bin/ocrcheck
    $GRID_HOME/bin/oifcfg getif
    $GRID_HOME/bin/srvctl config nodeapps -a
    $GRID_HOME/bin/srvctl config scan
    $GRID_HOME/bin/srvctl config asm -a
    $GRID_HOME/bin/srvctl config listener -l <listener-name> -a
    $DB_HOME/bin/srvctl config database -d <dbname> -a
    $DB_HOME/bin/srvctl config service -d <dbname> -s <service-name> -v
    

    2.删除GI

    需要使用root用户:
    # <$GRID_HOME>/crs/install/rootcrs.pl -deconfig -force -verbose
    # <$GRID_HOME>/crs/install/rootcrs.pl -deconfig -force -verbose -lastnode
    

    先去节点2(所有远端节点)执行:
    <$GRID_HOME>/crs/install/rootcrs.pl -deconfig -force -verbose

    [root@jystdrac2 ~]# /opt/app/11.2.0/grid/crs/install/rootcrs.pl -deconfig -force -verbose
    Using configuration parameter file: /opt/app/11.2.0/grid/crs/install/crsconfig_params
    Network exists: 1/192.168.1.0/255.255.255.0/eth2, type static
    VIP exists: /jystdrac1-vip/192.168.1.62/192.168.1.0/255.255.255.0/eth2, hosting node jystdrac1
    VIP exists: /jystdrac2-vip/192.168.1.64/192.168.1.0/255.255.255.0/eth2, hosting node jystdrac2
    GSD exists
    ONS exists: Local port 6100, remote port 6200, EM port 2016
    CRS-2673: Attempting to stop 'ora.registry.acfs' on 'jystdrac2'
    CRS-2677: Stop of 'ora.registry.acfs' on 'jystdrac2' succeeded
    CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'jystdrac2'
    CRS-2673: Attempting to stop 'ora.crsd' on 'jystdrac2'
    CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'jystdrac2'
    CRS-2673: Attempting to stop 'ora.oc4j' on 'jystdrac2'
    CRS-2673: Attempting to stop 'ora.asm' on 'jystdrac2'
    CRS-2677: Stop of 'ora.asm' on 'jystdrac2' succeeded
    CRS-2677: Stop of 'ora.oc4j' on 'jystdrac2' succeeded
    CRS-2672: Attempting to start 'ora.oc4j' on 'jystdrac1'
    CRS-2676: Start of 'ora.oc4j' on 'jystdrac1' succeeded
    CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'jystdrac2' has completed
    CRS-2677: Stop of 'ora.crsd' on 'jystdrac2' succeeded
    CRS-2673: Attempting to stop 'ora.mdnsd' on 'jystdrac2'
    CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'jystdrac2'
    CRS-2673: Attempting to stop 'ora.ctssd' on 'jystdrac2'
    CRS-2673: Attempting to stop 'ora.evmd' on 'jystdrac2'
    CRS-2673: Attempting to stop 'ora.asm' on 'jystdrac2'
    CRS-2677: Stop of 'ora.mdnsd' on 'jystdrac2' succeeded
    CRS-2677: Stop of 'ora.evmd' on 'jystdrac2' succeeded
    CRS-2677: Stop of 'ora.drivers.acfs' on 'jystdrac2' succeeded
    CRS-2677: Stop of 'ora.ctssd' on 'jystdrac2' succeeded
    CRS-2677: Stop of 'ora.asm' on 'jystdrac2' succeeded
    CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'jystdrac2'
    CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'jystdrac2' succeeded
    CRS-2673: Attempting to stop 'ora.cssd' on 'jystdrac2'
    CRS-2677: Stop of 'ora.cssd' on 'jystdrac2' succeeded
    CRS-2673: Attempting to stop 'ora.crf' on 'jystdrac2'
    CRS-2677: Stop of 'ora.crf' on 'jystdrac2' succeeded
    CRS-2673: Attempting to stop 'ora.gipcd' on 'jystdrac2'
    CRS-2677: Stop of 'ora.gipcd' on 'jystdrac2' succeeded
    CRS-2673: Attempting to stop 'ora.gpnpd' on 'jystdrac2'
    CRS-2677: Stop of 'ora.gpnpd' on 'jystdrac2' succeeded
    CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'jystdrac2' has completed
    CRS-4133: Oracle High Availability Services has been stopped.
    Removing Trace File Analyzer
    Successfully deconfigured Oracle clusterware stack on this node
    

    再次查询验证会提示集群件没有配置:

    [root@jystdrac2 ~]# su - grid
    [grid@jystdrac2 ~]$ crsctl stat res -t
    CRS-4047: No Oracle Clusterware components configured.
    CRS-4000: Command Status failed, or completed with errors.
    [grid@jystdrac2 ~]$ crsctl stat res -t -init
    CRS-4047: No Oracle Clusterware components configured.
    CRS-4000: Command Status failed, or completed with errors.
    [grid@jystdrac2 ~]$ 
    

    回到节点1操作:
    <$GRID_HOME>/crs/install/rootcrs.pl -deconfig -force -verbose -lastnode

    [root@jystdrac1 ~]# /opt/app/11.2.0/grid/crs/install/rootcrs.pl -deconfig -force -verbose -lastnode
    Using configuration parameter file: /opt/app/11.2.0/grid/crs/install/crsconfig_params
    CRS resources for listeners are still configured
    Network exists: 1/192.168.1.0/255.255.255.0/eth2, type static
    VIP exists: /jystdrac1-vip/192.168.1.62/192.168.1.0/255.255.255.0/eth2, hosting node jystdrac1
    GSD exists
    ONS exists: Local port 6100, remote port 6200, EM port 2016
    CRS-2673: Attempting to stop 'ora.registry.acfs' on 'jystdrac1'
    CRS-2677: Stop of 'ora.registry.acfs' on 'jystdrac1' succeeded
    CRS-2673: Attempting to stop 'ora.crsd' on 'jystdrac1'
    CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'jystdrac1'
    CRS-2673: Attempting to stop 'ora.oc4j' on 'jystdrac1'
    CRS-2673: Attempting to stop 'ora.OCR.dg' on 'jystdrac1'
    CRS-2677: Stop of 'ora.OCR.dg' on 'jystdrac1' succeeded
    CRS-2673: Attempting to stop 'ora.asm' on 'jystdrac1'
    CRS-2677: Stop of 'ora.asm' on 'jystdrac1' succeeded
    CRS-2677: Stop of 'ora.oc4j' on 'jystdrac1' succeeded
    CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'jystdrac1' has completed
    CRS-2677: Stop of 'ora.crsd' on 'jystdrac1' succeeded
    CRS-2673: Attempting to stop 'ora.ctssd' on 'jystdrac1'
    CRS-2673: Attempting to stop 'ora.evmd' on 'jystdrac1'
    CRS-2673: Attempting to stop 'ora.asm' on 'jystdrac1'
    CRS-2677: Stop of 'ora.evmd' on 'jystdrac1' succeeded
    CRS-2677: Stop of 'ora.asm' on 'jystdrac1' succeeded
    CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'jystdrac1'
    CRS-2677: Stop of 'ora.ctssd' on 'jystdrac1' succeeded
    CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'jystdrac1' succeeded
    CRS-2673: Attempting to stop 'ora.cssd' on 'jystdrac1'
    CRS-2677: Stop of 'ora.cssd' on 'jystdrac1' succeeded
    CRS-2672: Attempting to start 'ora.cssdmonitor' on 'jystdrac1'
    CRS-2676: Start of 'ora.cssdmonitor' on 'jystdrac1' succeeded
    CRS-2672: Attempting to start 'ora.cssd' on 'jystdrac1'
    CRS-2672: Attempting to start 'ora.diskmon' on 'jystdrac1'
    CRS-2676: Start of 'ora.diskmon' on 'jystdrac1' succeeded
    CRS-2676: Start of 'ora.cssd' on 'jystdrac1' succeeded
    CRS-4611: Successful deletion of voting disk +OCR.
    ASM de-configuration trace file location: /tmp/asmcadc_clean2018-04-24_02-45-36-PM.log
    ASM Clean Configuration START
    ASM Clean Configuration END
    
    ASM with SID +ASM1 deleted successfully. Check /tmp/asmcadc_clean2018-04-24_02-45-36-PM.log for details.
    
    CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'jystdrac1'
    CRS-2673: Attempting to stop 'ora.crf' on 'jystdrac1'
    CRS-2673: Attempting to stop 'ora.ctssd' on 'jystdrac1'
    CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'jystdrac1'
    CRS-2673: Attempting to stop 'ora.mdnsd' on 'jystdrac1'
    CRS-2677: Stop of 'ora.crf' on 'jystdrac1' succeeded
    CRS-2677: Stop of 'ora.mdnsd' on 'jystdrac1' succeeded
    CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'jystdrac1' succeeded
    CRS-2677: Stop of 'ora.ctssd' on 'jystdrac1' succeeded
    CRS-2673: Attempting to stop 'ora.cssd' on 'jystdrac1'
    CRS-2677: Stop of 'ora.cssd' on 'jystdrac1' succeeded
    CRS-2673: Attempting to stop 'ora.gipcd' on 'jystdrac1'
    CRS-2677: Stop of 'ora.gipcd' on 'jystdrac1' succeeded
    CRS-2673: Attempting to stop 'ora.gpnpd' on 'jystdrac1'
    CRS-2677: Stop of 'ora.gpnpd' on 'jystdrac1' succeeded
    CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'jystdrac1' has completed
    CRS-4133: Oracle High Availability Services has been stopped.
    Removing Trace File Analyzer
    Successfully deconfigured Oracle clusterware stack on this node
    [root@jystdrac1 ~]# 
    

    至此,就成功删除了GI。

  • 相关阅读:
    $.ajax({}) 方法 参数
    JS原生ajax函数写法
    jQuery Ajax封装通用类
    200 300 400 500各代表的服务器状态码
    MySQL添加用户、删除用户与授权
    mysql事务回滚
    javascript 基础知识(部分对象和js dom操作)
    GC垃圾回收机制
    Java基础篇
    数据库中事务的ACID特性
  • 原文地址:https://www.cnblogs.com/jyzhao/p/8930715.html
Copyright © 2011-2022 走看看